CN103631968B - Method and device for realizing font imbedding of document - Google Patents

Method and device for realizing font imbedding of document Download PDF

Info

Publication number
CN103631968B
CN103631968B CN201310702927.5A CN201310702927A CN103631968B CN 103631968 B CN103631968 B CN 103631968B CN 201310702927 A CN201310702927 A CN 201310702927A CN 103631968 B CN103631968 B CN 103631968B
Authority
CN
China
Prior art keywords
font
document
character library
information
new
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310702927.5A
Other languages
Chinese (zh)
Other versions
CN103631968A (en
Inventor
刘永博
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Sursen Electronic Technology Co., Ltd.
Original Assignee
TIANJIN SCHOLAR SOFTWARE TECHNOLOGY Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by TIANJIN SCHOLAR SOFTWARE TECHNOLOGY Co Ltd filed Critical TIANJIN SCHOLAR SOFTWARE TECHNOLOGY Co Ltd
Priority to CN201310702927.5A priority Critical patent/CN103631968B/en
Publication of CN103631968A publication Critical patent/CN103631968A/en
Application granted granted Critical
Publication of CN103631968B publication Critical patent/CN103631968B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/103Formatting, i.e. changing of presentation of documents
    • G06F40/109Font handling; Temporal or kinetic typography

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Document Processing Apparatus (AREA)

Abstract

The invention provides a method and a device for realizing font imbedding of a document, which can realize rapid batch processing of fonts needing to be imbedded and can generate the document with a small volume. The embodiment of the invention provides the method for realizing the font imbedding of the document. The method comprises the following steps: printing the document by adopting virtual printing to obtain font information of all characters of the document; extracting information corresponding to the font information from a system font library; establishing a new font library according to the extracted corresponding information; imbedding the new font library into a new document.

Description

A kind of realize document font embed method and device
Technical field
The present invention relates to font technical field, realize, particularly to a kind of, the method and device that document font embeds.
Technical background
Word is the main contents of a electronic document, and any word all can not depart from font and individualism, at present A lot of platforms, including on mobile phone, panel computer, system default is mounted with the character library much commonly used, with easy-to-read document, but There are some special fonts in some documents, and these font stream are not installed, and leads to system can not correctly show that document is believed Breath, brings a lot of inconvenience to user's reading documents.
In order to the font that the word ensureing electronic document is adopted shows correctly under different soft and hardware environment, just need These fonts are embedded in document, to ensure that document also can normally show these in the platform being fitted without these fonts Font.
In the middle of prior art, by virtual printing, extract the information of embedded word, be saved according to certain specific form In font file, finally it is embedded in document, but the volume of embedded rear electronic document would generally be significantly increased.
Content of the invention
The invention provides the method and device that a kind of document font embeds, can be to the rapid batch needing embedded font Process, and the document volume generating is less.
Embodiment of the present invention offer is a kind of to realize the method that document font embeds, comprising: using virtual printing, document is entered Row prints, and obtains the font information of all words of described document;From system character library, extraction is corresponding with described font information believes Breath, creates new character library according to the corresponding information extracting;Described new character library is embedded in new document.
Wherein, the font information of described word includes: font name and literal code.
Wherein, described literal code encodes for unicode.
Wherein, extract information corresponding with described font information from system character library to include: extract system according to font name Font file in system character library simultaneously extracts corresponding word according to literal code.
Wherein, extract information corresponding with described font information the described character library from system to further include: extract specific The embedded data bitmap of font.
Wherein, the described corresponding information according to extraction creates new character library and includes: is simplified according to certain specification and changes Create new character library.
Wherein, described certain specification is opentype specification.
The embodiment of the present invention additionally provide a kind of realize document font embed device, comprising: virtual printing module, be used for Virtual printing is carried out to pending document;Data acquisition module, the font for obtaining all words of described pending document is believed Breath;Data processing module, for extraction information corresponding with described font information from system character library and corresponding according to extract The new character library of information creating;Data embedding module, for being embedded into described new character library in new document.
The method and device being embedded using a kind of document font provided in an embodiment of the present invention, is obtained with virtual printing technology Take the font information of document, new character library is generated according to the font information obtaining, and the new character library generating is embedded document, realize The rapid batch needing embedded font is processed, and the document volume generating is less.
Brief description
Fig. 1 show provided in an embodiment of the present invention realize document font embed method flow diagram.
Fig. 2 show the structural representation realizing document font flush mounting provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation describes.
Fig. 1 show provided in an embodiment of the present invention realize document font embed method flow diagram.As shown in figure 1, should Method includes:
Step 100: using virtual printing, document is printed, obtain the font information of all words of document.
Using virtual printing technology, document is printed, and by printing the font letter obtaining all words of the document Breath, including font name information and word unicode coding information, generates new document simultaneously.
Step 200: extract information corresponding with font information from system character library, created according to the corresponding information extracting new Character library.
According to font file corresponding in font name extraction system character library, deleting other does not need embedded font, There is the font of embedded data bitmap (can be shown on screen with bitmap during some particular sizes) for some, such as Song typeface etc., can extract the embedded data bitmap needing as needed;Then according to literal code information from corresponding font Extract corresponding word in file, and simplified according to opentype specification and changed the new character library of establishment.
Step 300: new character library is embedded in new document.
By new character library together with printing the new document generating and being bundled into, thus the font realizing document embeds.
Due to taking opentype specification when creating new character library, and opentype technical support is cross-platform, should this incite somebody to action The character library that the present invention creates is embedded in document, is capable of the reading in different platform, such as supports numerous dissimilar Browser.
Provided in an embodiment of the present invention a kind of realize document font embed method, with virtual printing technical limit spacing document The new character library generating simultaneously is embedded document by font information, realizes the rapid batch needing embedded font is processed, and the literary composition generating Shelves volume is less.
The embodiment of the present invention also provides a kind of realizes the device that document font embeds, as shown in Fig. 2 this device includes: empty Intend print module 201, data acquisition module 202, data processing module 203 and data embedding module 204.
Virtual printing module 201 is used for carrying out virtual printing to pending document;Data acquisition module 202 is to pending Document obtains the font information of all words of pending document during carrying out virtual printing;Data processing module 203 is according to obtaining The font information taking extracts information corresponding with font information from system character library, and utilizes the new character library of corresponding information creating; This new character library is embedded in new document data embedding module 204, and the font realizing document embeds.
The invention provides the method and device that a kind of document font embeds, with virtual printing technical limit spacing document font The new character library generating simultaneously is embedded document by information, realizes the rapid batch needing embedded font is processed, and the document body generating Long-pending less.
The foregoing is only presently preferred embodiments of the present invention, not in order to limit the present invention, all essences in the present invention Within god and principle, any modification of being made, equivalent etc., should be included within the scope of the present invention.

Claims (2)

1. a kind of realize document font embed method it is characterised in that include:
Using virtual printing, document is printed, obtain the font information of all words of described document, generate new document simultaneously;
Described font information includes: font name and literal code;
Described literal code encodes for unicode;
Extract information corresponding with described font information from system character library, new character library is created according to the corresponding information extracting;
Corresponding information includes: according to the font file in described font name extraction system character library, and is compiled according to described word Code extracts corresponding word, also includes extracting the embedded data bitmap of specific font;
Simplified according to opentype specification and changed, created described new character library;
Described new character library is embedded in described new document.
2. a kind of realize document font embed device it is characterised in that include:
Virtual printing module, for carrying out virtual printing to pending document;
Data acquisition module, for obtaining the font information of all words of described pending document, generates new document simultaneously;Described Font information includes: font name and literal code;Described literal code encodes for unicode;
Data processing module, for extraction information corresponding with described font information from system character library and corresponding according to extract The new character library of information creating;Corresponding information includes: according to the font file in described font name extraction system character library, and according to Corresponding word is extracted in described literal code, also includes extracting the embedded data bitmap of specific font;According to opentype specification Simplified and changed, created described new character library;
Data embedding module, for being embedded into described new character library in new document.
CN201310702927.5A 2013-12-17 2013-12-17 Method and device for realizing font imbedding of document Active CN103631968B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310702927.5A CN103631968B (en) 2013-12-17 2013-12-17 Method and device for realizing font imbedding of document

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310702927.5A CN103631968B (en) 2013-12-17 2013-12-17 Method and device for realizing font imbedding of document

Publications (2)

Publication Number Publication Date
CN103631968A CN103631968A (en) 2014-03-12
CN103631968B true CN103631968B (en) 2017-01-18

Family

ID=50213009

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310702927.5A Active CN103631968B (en) 2013-12-17 2013-12-17 Method and device for realizing font imbedding of document

Country Status (1)

Country Link
CN (1) CN103631968B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111476001A (en) * 2019-01-04 2020-07-31 珠海金山办公软件有限公司 Method and device for exporting document, computer storage medium and terminal

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6966029B1 (en) * 1999-12-08 2005-11-15 Koninklijke Philips Electronics N.V. Script embedded in electronic documents as invisible encoding
CN101089813A (en) * 2006-06-13 2007-12-19 上海新纳广告传媒有限公司 Flash embedded character method based on shared base resource
CN101155249A (en) * 2006-09-28 2008-04-02 富士通株式会社 Electronic watermark embedding apparatus and electronic watermark detection apparatus
CN101187939A (en) * 2007-11-22 2008-05-28 北大方正集团有限公司 A font file built-in method and device
CN101477516A (en) * 2008-09-10 2009-07-08 北京书生国际信息技术有限公司 Electronic data processing method and system
CN101520728A (en) * 2008-02-25 2009-09-02 北京书生国际信息技术有限公司 Method for processing document meeting document library standard by third-party software
CN102063416A (en) * 2009-11-16 2011-05-18 北大方正集团有限公司 Method and system for embedding double-byte fonts into PDF file
CN102495833A (en) * 2011-11-30 2012-06-13 哈尔滨工业大学 Document watermark copyright information protection device based on Opentype vector outline fonts
CN103365894A (en) * 2012-03-29 2013-10-23 天津书生软件技术有限公司 Font format conversion method and device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6966029B1 (en) * 1999-12-08 2005-11-15 Koninklijke Philips Electronics N.V. Script embedded in electronic documents as invisible encoding
CN101089813A (en) * 2006-06-13 2007-12-19 上海新纳广告传媒有限公司 Flash embedded character method based on shared base resource
CN101155249A (en) * 2006-09-28 2008-04-02 富士通株式会社 Electronic watermark embedding apparatus and electronic watermark detection apparatus
CN101187939A (en) * 2007-11-22 2008-05-28 北大方正集团有限公司 A font file built-in method and device
CN101520728A (en) * 2008-02-25 2009-09-02 北京书生国际信息技术有限公司 Method for processing document meeting document library standard by third-party software
CN101477516A (en) * 2008-09-10 2009-07-08 北京书生国际信息技术有限公司 Electronic data processing method and system
CN102063416A (en) * 2009-11-16 2011-05-18 北大方正集团有限公司 Method and system for embedding double-byte fonts into PDF file
CN102495833A (en) * 2011-11-30 2012-06-13 哈尔滨工业大学 Document watermark copyright information protection device based on Opentype vector outline fonts
CN103365894A (en) * 2012-03-29 2013-10-23 天津书生软件技术有限公司 Font format conversion method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
文档中内嵌字库的转换方法和优化技术;邢国锋;《道客巴巴》;20131122;第2.5.2节第20页,第2.1节第10页第2段,第4.1节第40页,第4.1.1节第41页表4-1,第4.1.2节第44页 *

Also Published As

Publication number Publication date
CN103631968A (en) 2014-03-12

Similar Documents

Publication Publication Date Title
US8201088B2 (en) Method and apparatus for associating with an electronic document a font subset containing select character forms which are different depending on location
CN101996160B (en) Method and system for processing script data
EP1416394B1 (en) Method for selecting a font
WO2018071403A1 (en) Systems and methods for optical charater recognition for low-resolution ducuments
CN102722479B (en) A kind of method of implementation language translation and device
CN101364216B (en) Method and device for displaying electronic book documentary on mobile terminal
CN102037494A (en) Systems and methods for font file optimization for multimedia files
EP2071493A3 (en) Image processing device, image processing method, and program and recording medium thereof
WO2011072434A1 (en) System and method for web content extraction
CN100444150C (en) Electronic mail equipment
EP1634135A4 (en) Systems and methods for source language word pattern matching
EP3210190A1 (en) A system and method for dynamically combining images to display textual content in the form of an image
EP2328098A3 (en) Apparatus and method for extracting circumscribed rectangles of characters in transplantable electronic document
EP2778949A3 (en) Font delivery service
CN103150293A (en) Electronic device with messy code recovery function and messy code recovery method
CN104820962B (en) A kind of printing watermark generation method instead of artificial signature
CN101008940A (en) Method and device for automatic processing font missing
CN103631968B (en) Method and device for realizing font imbedding of document
WO2005001675A3 (en) Algorithmic generation of afu calligraphy
US10157238B2 (en) Transformation of marked-up content to a reversible file format for automated browser based pagination
EP1855209A3 (en) System and method for using divided fonts to achieve proportional spacing
CN105335346B (en) A kind of Text Extraction and device of PDF document
EP1139275A3 (en) A method and system of print stream address extraction
CN104424184B (en) Generate the method and system of font character library
Anderson Bridging the Divide: Supporting Minority and Historic Scripts in Fonts: Problems and Recommendations

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20181210

Address after: 100029 Changxin Building 408-409, 39 Anding Road, Chaoyang District, Beijing

Patentee after: Beijing Sursen Electronic Technology Co., Ltd.

Address before: 300308 Tianjin Binhai New Area Airport Economic Zone

Patentee before: Tianjin Scholar Software Technology Co., Ltd.

TR01 Transfer of patent right