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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com