XML file and PDF file synchronous association method and apparatus
A file synchronization and file technology, applied in the XML field, can solve the problems of complex operation steps, low efficiency, and inability to understand the corresponding relationship.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0055] The embodiment of the application provides a method for synchronizing and associating an XML file and a PDF file, such as figure 1 Shown is the flow chart of the method, including:
[0056] S101. Set a corresponding tag identifier for a text segment tag in an extensible markup language XML file.
[0057] In the embodiment of this application, in the process of converting an XML file to a PDF file, it is detected whether the text segment tag in the XML file has a tag identifier, if so, the tag identifier is obtained; if not, the tag setting is set for the segment The corresponding tag identifier.
[0058] This includes setting a label identifier for each text segment label; or judging whether the text segment is the beginning of an associated text segment, and if so, setting a label identifier for the text segment and the associated text segment adjacent to the text segment. For example, when there is only one text segment A under a text segment titled "2.1.1", you can set a l...
Embodiment 2
[0084] The embodiment of the application provides a device for synchronizing and associating an XML file and a PDF file, such as image 3 Shown is the structure diagram of the device, including:
[0085] The setting module 201 is used to set a corresponding tag identifier for the text segment tag in the XML file;
[0086] The first obtaining module 202 is configured to obtain the tag identifier in the typesetting process of converting the XML file into a PDF file;
[0087] The second obtaining module 203 is configured to obtain the typesetting position information of the label in the PDF file;
[0088] The construction module 204 is configured to construct a synchronous association mapping relationship between the tag identifier and the typesetting position information.
[0089] Optionally, the second obtaining module 203 is configured to:
[0090] Record the page number of the tag in the PDF file; obtain the start line and end line of the tag in the PDF file; determine the range based ...
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