CN102681978A - Method and system for displaying text in PDF (portable document format) document - Google Patents

Method and system for displaying text in PDF (portable document format) document Download PDF

Info

Publication number
CN102681978A
CN102681978A CN2012101499450A CN201210149945A CN102681978A CN 102681978 A CN102681978 A CN 102681978A CN 2012101499450 A CN2012101499450 A CN 2012101499450A CN 201210149945 A CN201210149945 A CN 201210149945A CN 102681978 A CN102681978 A CN 102681978A
Authority
CN
China
Prior art keywords
font
text
title
pdf document
mapping table
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.)
Pending
Application number
CN2012101499450A
Other languages
Chinese (zh)
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.)
Shenzhen Wondershare Software Co Ltd
Original Assignee
Shenzhen Wondershare Software 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 Shenzhen Wondershare Software Co Ltd filed Critical Shenzhen Wondershare Software Co Ltd
Priority to CN2012101499450A priority Critical patent/CN102681978A/en
Publication of CN102681978A publication Critical patent/CN102681978A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Document Processing Apparatus (AREA)

Abstract

The invention discloses a method and system for displaying a text in a PDF document, which are used for solving the problem that the system can not normally display the document when a user edits the text by a PDF document in the prior art. According to the technical scheme disclosed by the invention, a font same with a text font is looked up from a PDF document system font library; if failed, the name of the text font is matched with the name of the font in the system font library to obtain the font which has the highest similar degree with the name of the text font; and the text is displayed by the obtained font. According to the technical scheme, a purpose that the text font can be normally displayed when the user edits the text in the PDF document, thereby bringing convenience for users.

Description

A kind of in the PDF document method and system of videotex
Technical field
The present invention relates to the documents editing field, in particular to a kind of in the PDF document method and system of videotex.
Background technology
When PDF document inediting text, when having only font and the font in the current system font storehouse coupling of text, just can edit and normally show.And because embedded font that exists in the text and text font loss of learning all can cause text can't edit and normal demonstration.
Because have a large amount of embedded fonts in the PDF document, the font in font that these are embedded and the system font storehouse is incomplete same.When editor was contained the text of embedded font, editing machine was searched the font less than correspondence in the fontlib of system, and the text that causes editing can't show or show the mess code that can't discern.
The PDF document is in the process that generates, because system environments or Core Generator are different, the font information in some texts possibly lost.When the text of editor's font loss of learning, editing machine is searched the font less than correspondence in the fontlib of system, and the text that causes editing can't show or show the mess code that can't discern.
In sum, because embedded font and font information in the text are lost, can cause when PDF document inediting text, system is videotex normally, causes the user not edit text, and user's use is brought inconvenience.
Summary of the invention
The invention provides a kind of in the PDF document method and system of videotex, in order to solve in the prior art, the user is when using PDF documents editing text, system is the problem of videotex normally.
According to an aspect of the present invention, provide a kind of in the PDF document method of videotex, comprising: in PDF document system fontlib, search the font identical with text font; If search failure, then the title of font in the title of text font and the system font storehouse is mated; Obtain the highest font of title similarity degree with text font; The font videotex that use gets access to.
Wherein, in PDF document system fontlib, searching the font identical with text font comprises: in PDF document system fontlib, search the font identical with text font according to font information.
Wherein, above-mentioned font information comprises following at least a: whether the title of font, font are the type of embedded font, font, the type of coding that the coded system of font and font are supported.
Further, said method also comprises: with the man-to-man mapping of font in embedded font in the text and the PDF document system fontlib, generate mapping table; Memory map assignments; Before the title of font is mated in the title of text font and system font storehouse, also comprise:, then in mapping table, search the font corresponding with text font if in fontlib, search failure; If in mapping table, search successfully, then use the font videotex that finds; If in mapping table, search failure, then carry out the step that the title of font in the title of the font of text and the system font storehouse is mated.
Wherein, memory map assignments comprises: mapping table is stored in the PDF system font storehouse.
Wherein, the highest font of obtaining with text font of title similarity degree comprises: obtain the maximum font of like-identified that the title with text font comprises.
According to another aspect of the present invention, provide a kind of in the PDF document system of videotex, comprising: first searches module, is used for searching the font identical with text font at PDF document system fontlib; Matching module was used for when when failure of searching of searching module, and the title of font in the title of text font and the system font storehouse is mated; Acquisition module is used to obtain the highest font of title similarity degree with text font; First display module is used to use the font videotex that gets access to.
Wherein above-mentioned first searches module specifically is used for, and in PDF document system fontlib, searches the font identical with text font according to font information.
Further, said system also comprises: generation module, be used for the embedded font of text and the man-to-man mapping of font in the PDF document system fontlib, and generate mapping table; Memory module is used for memory map assignments; Second searches module, is used for searching module after fontlib is searched failure first, in mapping table, searches the font corresponding with the font of text; Second display module is used for searching module after mapping table is searched successfully second, uses the font videotex that finds; Execution module is used for searching module after mapping table is searched failure second, carries out the operation that the title of font in the title of the font of text and the system font storehouse is mated.
Wherein, above-mentioned acquisition module specifically is used for, and obtains the maximum font of like-identified that comprises in the title with text font.
Through technical scheme of the present invention, be employed in the PDF document system fontlib and search the font identical with text font; If search failure, then the title of font in the title of the font of text and the system font storehouse is mated, obtain the highest font of title similarity degree with text font; The font videotex that use gets access to.Can realize the user when PDF document inediting text, the normal purpose of videotex font, so that convenient for users to use.
Description of drawings
Fig. 1 is the process flow diagram of the method for videotex in the PDF document according to the embodiment of the invention 1;
Fig. 2 is the process flow diagram of the method for videotex in the PDF document according to the embodiment of the invention 2;
Fig. 3 is the structured flowchart of the system of videotex in the PDF document according to the embodiment of the invention 3; And
Fig. 4 is the structured flowchart according to another kind system of videotex in the PDF document of the embodiment of the invention 3.
Embodiment
For make above-mentioned purpose of the present invention, feature and advantage can be more obviously understandable, below in conjunction with accompanying drawing and embodiment the embodiment of the invention done further detailed explanation.
Embodiment 1
Fig. 1 is the process flow diagram of the method for videotex in the PDF document according to the embodiment of the invention 1.
As shown in Figure 1, this method may further comprise the steps:
Step 101: in PDF document system fontlib, search the font identical with text font;
In this step; Can in PDF document system fontlib, search the font identical according to font information with text font; Particularly, the information of font comprises following at least a: whether the title of font, font are the type of embedded font, font, the coded system of font and the type of coding that font is supported.
Step 102:, then the title of font in the title of the font of text and the system font storehouse is mated if search failure;
Step 103: obtain the highest font of title similarity degree with text font;
Wherein, the font that similarity degree is the highest is the maximum font of like-identified that the title with text font comprises, for example; The name of certain font is called Ariat, then the font name in this title and the PDF system font storehouse is carried out font and matees, and matches that to comprise the maximum font name of same letter with this font in the system font storehouse be Arial; Then Arial then is and the highest font of Ariat similarity degree; In addition, also the similarity degree matching list can be set in advance, can list a plurality of similar letters in this table; For example i is a pair of similar letter with l; The number of the similar font that comprises according to certain font and font in the fontlib calculates the similarity degree value of the two, when similarity degree reaches predetermined threshold value, can confirm with the highest font of font similarity degree to be identified be the font that matches.The method of videotex in the PDF document of present embodiment can solve the problem that the text that causes owing to text font information dropout can not show in the PDF document, through this matching process, can improve the efficient at PDF document inediting text.
Step 104: use the font videotex that gets access to.
Embodiment 2
Fig. 2 is the process flow diagram of the method for videotex in the PDF document according to the embodiment of the invention 2.
Step 201: start font coupling flow process;
Step 202: in PDF document system fontlib, search the font identical with text font;
Step 203:, then searching the font corresponding in the stored mapping table in advance with the font of text if in fontlib, search failure; If in mapping table, search successfully, then execution in step 205, use the font videotex that finds;
Step 204: if in mapping table, search failure, then carry out approximate match, promptly then the title of font in the title of the font of text and the system font storehouse is mated, obtain the highest font of title similarity degree with text font; If mate successfully, then execution in step 205, use the font videotex that gets access to.
Step 206: process ends.
Before carrying out above-mentioned steps; Can set up the mapping table of the font in embedded font and the PDF system font storehouse in advance, particularly, with text in embedded font and the man-to-man mapping of font in the PDF document system fontlib; Generate mapping table; Further, can also be directed against different embedded fonts, set up the mapping table of different types of embedded font.Simultaneously; For the ease of follow-up use; The mapping table of at every turn setting up is stored to PDF document system fontlib, can when follow-up use, in system font storehouse and mapping table, searches the needed font of Edit Text simultaneously like this; Improved PDF document Chinese version editor's efficient, convenient for users to use.
The method of videotex in the PDF document of present embodiment can solve owing to comprising the problem that embedded font causes text in system, can not normally show in the text.
Embodiment 3
Fig. 3 is the structured flowchart of the system of videotex in the PDF document according to the embodiment of the invention 3.
As shown in Figure 3, should in the PDF document, the system 30 of videotex comprise:
First searches module 31, is used for searching the font identical with text font at PDF document system fontlib;
Wherein, this first is searched module 31 and specifically is used for, and in PDF document system fontlib, searches the font identical with text font according to font information.
Matching module 32 was used for when when failure of searching of searching module, and the title of font in the title of the font of text and the system font storehouse is mated;
Acquisition module 33 is used to obtain the highest font of title similarity degree with text font;
This acquisition module 33 specifically is used for, and obtains the maximum font of like-identified that comprises in the title with text font.
First display module 34 is used to use the font videotex that gets access to.
Fig. 4 is the structured flowchart according to another kind system of videotex in the PDF document of the embodiment of the invention 3.
This system 40 comprises with lower module:
Generation module 41, be used for embedded font and the man-to-man mapping of font in the PDF document system fontlib of text, generate mapping table;
Memory module 42 is used for memory map assignments;
First searches module 43, is used for searching the font identical with text font at PDF document system fontlib;
Second searches module 44, is used for searching module after fontlib is searched failure first, in mapping table, searches the font corresponding with the font of text;
Second display module 45 is used for searching module after mapping table is searched successfully second, uses the font videotex that finds;
Execution module 46 is used for searching module after mapping table is searched failure second, carries out the operation that the title of font in the title of the font of text and the system font storehouse is mated.
Need to prove; In this article; Relational terms such as first and second grades only is used for an entity or operation are made a distinction with another entity or operation, and not necessarily requires or hint relation or the order that has any this reality between these entities or the operation.And; Term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability; Thereby make and comprise that process, method, article or the equipment of a series of key elements not only comprise those key elements; But also comprise other key elements of clearly not listing, or also be included as this process, method, article or equipment intrinsic key element.Under the situation that do not having much more more restrictions, the key element that limits by statement " comprising ... ", and be not precluded within process, method, article or the equipment that comprises said key element and also have other identical element.
The above is merely preferred embodiment of the present invention, is not to be used to limit protection scope of the present invention.All any modifications of within spirit of the present invention and principle, being done, be equal to replacement, improvement etc., all be included in protection scope of the present invention.

Claims (10)

1. the method for a videotex in the PDF document is characterized in that, comprising:
In PDF document system fontlib, search the font identical with text font;
If search failure, then the title of font in the title of said text font and the said system font storehouse is mated;
Obtain the highest font of title similarity degree with said text font;
The font videotex that use gets access to.
2. method according to claim 1 is characterized in that, saidly in PDF document system fontlib, searches the font identical with text font and comprises:
In said PDF document system fontlib, search the font identical according to font information with said text font.
3. method according to claim 2 is characterized in that, said font information comprises following at least a:
Whether the title of font, font are the type of embedded font, font, the type of coding that the coded system of font and font are supported.
4. method according to claim 1 is characterized in that, said method also comprises:
With the man-to-man mapping of font in embedded font in the text and the said PDF document system fontlib, generate mapping table;
Store said mapping table;
Said before the title of font is mated in the title of said text font and said system font storehouse, also comprise:
If in said fontlib, search failure, then in said mapping table, search the font corresponding with said text font;
If in said mapping table, search successfully, then use the font that finds to show said text;
If in said mapping table, search failure, then carry out the step that the title of font in the title of the font of said text and the said system font storehouse is mated.
5. method according to claim 4 is characterized in that, the said mapping table of said storage comprises:
Said mapping table is stored in the said PDF system font storehouse.
6. method according to claim 1 is characterized in that, the said the highest font of obtaining with said text font of title similarity degree comprises:
Obtain the maximum font of like-identified that the title with said text font comprises.
7. the system of a videotex in the PDF document is characterized in that, comprising:
First searches module, is used for searching the font identical with text font at PDF document system fontlib;
Matching module is used for when failure of searching of searching module when said, and the title of font in the title of said text font and the said system font storehouse is mated;
Acquisition module is used to obtain the highest font of title similarity degree with said text font;
First display module is used to use the font that gets access to show said text.
8. system according to claim 7 is characterized in that, said first searches module specifically is used for,
In said PDF document system fontlib, search the font identical according to font information with said text font.
9. system according to claim 7 is characterized in that, said system also comprises:
Generation module is used for the embedded font of text and the man-to-man mapping of font in the said PDF document system fontlib, generates mapping table;
Memory module is used to store said mapping table;
Second searches module, is used for searching module after said fontlib is searched failure said first, in said mapping table, searches the font corresponding with the font of said text;
Second display module is used for searching module after said mapping table is searched successfully said second, uses the font that finds to show said text;
Execution module is used for searching module after said mapping table is searched failure said second, carries out the operation that the title of font in the title of the font of said text and the said system font storehouse is mated.
10. system according to claim 7 is characterized in that said acquisition module specifically is used for, and obtains the maximum font of like-identified that comprises in the title with said text font.
CN2012101499450A 2012-05-15 2012-05-15 Method and system for displaying text in PDF (portable document format) document Pending CN102681978A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012101499450A CN102681978A (en) 2012-05-15 2012-05-15 Method and system for displaying text in PDF (portable document format) document

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012101499450A CN102681978A (en) 2012-05-15 2012-05-15 Method and system for displaying text in PDF (portable document format) document

Publications (1)

Publication Number Publication Date
CN102681978A true CN102681978A (en) 2012-09-19

Family

ID=46813931

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012101499450A Pending CN102681978A (en) 2012-05-15 2012-05-15 Method and system for displaying text in PDF (portable document format) document

Country Status (1)

Country Link
CN (1) CN102681978A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104063365A (en) * 2013-03-19 2014-09-24 福建福昕软件开发股份有限公司北京分公司 Method for inserting object in PDF document
CN105488471A (en) * 2015-11-30 2016-04-13 北大方正集团有限公司 Character pattern recognition method and device
CN106033412A (en) * 2015-03-20 2016-10-19 广州金山移动科技有限公司 Text conversion method and device
CN106776552A (en) * 2016-12-06 2017-05-31 掌阅科技股份有限公司 File identification method, device, server and computer-readable storage medium
CN107943760A (en) * 2017-11-22 2018-04-20 万兴科技股份有限公司 Font optimization method, device, terminal device and the storage medium of PDF document editor
US20180365536A1 (en) * 2017-06-19 2018-12-20 Adobe Systems Incorporated Identification of fonts in an application
CN109992749A (en) * 2017-12-29 2019-07-09 珠海金山办公软件有限公司 A kind of character displaying method, device, electronic equipment and readable storage medium storing program for executing
CN110795258A (en) * 2018-07-17 2020-02-14 珠海金山办公软件有限公司 Font library matching method, device and equipment
CN111460760A (en) * 2019-01-03 2020-07-28 珠海金山办公软件有限公司 PDF document editing method and device
WO2022001408A1 (en) * 2020-06-28 2022-01-06 荣耀终端有限公司 Character display method, character display apparatus, and terminal device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100555272C (en) * 2006-02-20 2009-10-28 佳能株式会社 Signal conditioning package and control method thereof
CN102375883A (en) * 2010-08-02 2012-03-14 塞拉特姆股份有限公司 Font matching
CN102541963A (en) * 2010-12-31 2012-07-04 北大方正集团有限公司 Method and device for inquiring character identification

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100555272C (en) * 2006-02-20 2009-10-28 佳能株式会社 Signal conditioning package and control method thereof
CN102375883A (en) * 2010-08-02 2012-03-14 塞拉特姆股份有限公司 Font matching
CN102541963A (en) * 2010-12-31 2012-07-04 北大方正集团有限公司 Method and device for inquiring character identification

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104063365A (en) * 2013-03-19 2014-09-24 福建福昕软件开发股份有限公司北京分公司 Method for inserting object in PDF document
CN104063365B (en) * 2013-03-19 2018-08-21 福建福昕软件开发股份有限公司 The method that object is inserted into PDF document
CN106033412B (en) * 2015-03-20 2019-07-26 广州金山移动科技有限公司 A kind of text conversion method and device
CN106033412A (en) * 2015-03-20 2016-10-19 广州金山移动科技有限公司 Text conversion method and device
CN105488471A (en) * 2015-11-30 2016-04-13 北大方正集团有限公司 Character pattern recognition method and device
CN105488471B (en) * 2015-11-30 2019-03-29 北大方正集团有限公司 A kind of font recognition methods and device
CN106776552A (en) * 2016-12-06 2017-05-31 掌阅科技股份有限公司 File identification method, device, server and computer-readable storage medium
US20180365536A1 (en) * 2017-06-19 2018-12-20 Adobe Systems Incorporated Identification of fonts in an application
US10783408B2 (en) * 2017-06-19 2020-09-22 Adobe Inc. Identification of fonts in an application
CN107943760A (en) * 2017-11-22 2018-04-20 万兴科技股份有限公司 Font optimization method, device, terminal device and the storage medium of PDF document editor
CN109992749A (en) * 2017-12-29 2019-07-09 珠海金山办公软件有限公司 A kind of character displaying method, device, electronic equipment and readable storage medium storing program for executing
CN110795258A (en) * 2018-07-17 2020-02-14 珠海金山办公软件有限公司 Font library matching method, device and equipment
CN110795258B (en) * 2018-07-17 2023-03-24 珠海金山办公软件有限公司 Font library matching method, device and equipment
CN111460760A (en) * 2019-01-03 2020-07-28 珠海金山办公软件有限公司 PDF document editing method and device
CN111460760B (en) * 2019-01-03 2024-04-30 珠海金山办公软件有限公司 PDF document editing method and device
WO2022001408A1 (en) * 2020-06-28 2022-01-06 荣耀终端有限公司 Character display method, character display apparatus, and terminal device

Similar Documents

Publication Publication Date Title
CN102681978A (en) Method and system for displaying text in PDF (portable document format) document
US20140324883A1 (en) Generating a Summary Based on Readability
CN105404680A (en) Searching recommendation method and apparatus
CN103200293A (en) Method of automatically combining tautonomy contacts in process of guiding contacts into contact list
CN104423623B (en) It is a kind of to select word treatment method and electronic equipment
CN105574092A (en) Information mining method and device
CN102609500A (en) Question push method, question answering system using same and search engine
CN104462307A (en) Searching method and device for object in terminal
CN104424165A (en) Messy code detection method and system for text documents
CN102937949A (en) Method and system for checking English spelling in rich text editor
CN103164388A (en) Method and device for obtaining structuring information in layout files
CN104572685A (en) Data ranking method
CN103177039A (en) Data processing method and data processing device
CN110704608A (en) Text theme generation method and device and computer equipment
CN101008940A (en) Method and device for automatic processing font missing
CN104007836A (en) Handwriting input processing method and terminal device
CN103678554A (en) Character substituting method and device
CN104238951A (en) Net label input prompting device
CN103927176A (en) Method for generating program feature tree on basis of hierarchical topic model
CN113360685A (en) Method, device, equipment and medium for processing note content
CN105955986A (en) Character converting method and apparatus
CN102710833A (en) Mobile phone test case and automatic generation method thereof
CN103106584A (en) Processing non-uniformed book information data system and method thereof
CN117033816A (en) Parking recommendation method and device, electronic equipment and storage medium
CN104182479A (en) Method and device for processing information

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C53 Correction of patent of invention or patent application
CB02 Change of applicant information

Address after: 518063 Guangdong city of Shenzhen province Nanshan District Gao Xin Road, room 9 building on the north side of block A901 No. 006 TCL Industry Research Institute building A A Building 8 floor

Applicant after: Shenzhen Wondershare Information Technology Co., Ltd.

Address before: 518057 Guangdong city of Shenzhen province Nanshan District Gao Xin Road TCL building A block 8 layer

Applicant before: Shenzhen Wondershare Software Co., Ltd.

COR Change of bibliographic data

Free format text: CORRECT: APPLICANT; FROM: SHENZHEN WONDERSHARE SOFTWARE CO., LTD. TO: SHENZHEN WONDERSHARE INFORMATION TECHNOLOGY CO., LTD.

C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20120919