Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

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

A text and document technology, applied in the field of document editing, can solve the problem that the system cannot display text normally, and achieve the effect of convenient use

Inactive Publication Date: 2012-09-19
WONDERSHARE TECH CO LTD
View PDF3 Cites 18 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] The present invention provides a method and system for displaying text in a PDF document, which is used to solve the problem in the prior art that the system cannot display the text normally when the user uses the PDF document to edit the text

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and system for displaying text in PDF (portable document format) document
  • Method and system for displaying text in PDF (portable document format) document
  • Method and system for displaying text in PDF (portable document format) document

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0024] figure 1 It is a flowchart of a method for displaying text in a PDF document according to Embodiment 1 of the present invention.

[0025] like figure 1 As shown, the method includes the following steps:

[0026] Step 101: Find the same font as the text font in the PDF file system font library;

[0027] In this step, the same font as the text font can be searched in the font library of the PDF document system according to the font information, specifically, the information of the font includes at least one of the following: the name of the font, whether the font is an embedded font, the type of the font , the encoding method of the font and the encoding type supported by the font.

[0028] Step 102: If the search fails, match the font name of the text with the font name in the system font library;

[0029] Step 103: Obtain the font with the highest similarity to the name of the text font;

[0030] Among them, the font with the highest degree of similarity is the fon...

Embodiment 2

[0033] figure 2 It is a flowchart of a method for displaying text in a PDF document according to Embodiment 2 of the present invention.

[0034] Step 201: start the font matching process;

[0035] Step 202: Find the same font as the text font in the PDF file system font library;

[0036] Step 203: If the search in the font library fails, then search for the font corresponding to the font of the text in the pre-stored mapping table; if the search is successful in the mapping table, then perform step 205, and use the found font to display the text;

[0037] Step 204: If the lookup in the mapping table fails, perform an approximate match, that is, match the name of the font of the text with the name of the font in the system font library to obtain the font with the highest similarity to the name of the text font; if the match is successful , then step 205 is executed to display the text using the acquired font.

[0038] Step 206: End the process.

[0039] Before performing t...

Embodiment 3

[0042] image 3 It is a structural block diagram of a system for displaying text in a PDF document according to Embodiment 3 of the present invention.

[0043] like image 3 As shown, the system 30 for displaying text in a PDF document includes:

[0044] The first search module 31 is used to search for the same font as the text font in the PDF file system font storehouse;

[0045] Wherein, the first search module 31 is specifically configured to search the font library of the PDF document system for the same font as the text font according to the font information.

[0046] The matching module 32 is used to match the name of the font of the text with the name of the font in the system font library when the search of the search module fails;

[0047] An acquisition module 33, configured to acquire the font with the highest similarity to the name of the text font;

[0048] The acquiring module 33 is specifically configured to acquire fonts with the most identical identifiers in...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

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

technical field [0001] The invention relates to the field of document editing, in particular to a method and system for displaying text in a PDF document. Background technique [0002] When editing text in a PDF document, only when the font of the text matches the font in the current system font library can it be edited and displayed normally. However, due to the embedded fonts in the text and the lack of text font information, the text cannot be edited and displayed normally. [0003] Because there are a large number of embedded fonts in PDF documents, these embedded fonts are not exactly the same as the fonts in the system font library. When editing text containing embedded fonts, the editor cannot find the corresponding fonts in the system's font library, resulting in the text being edited not being displayed or displaying unrecognizable garbled characters. [0004] During the generation of PDF documents, font information in some texts may be lost due to different syste...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F17/24G06F17/21G06F17/30
Inventor 原野
Owner WONDERSHARE TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products