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

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.

Active Publication Date: 2018-06-08
北京仁和汇智信息技术有限公司
View PDF4 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In view of this, the embodiment of the present application provides a method for synchronously associating an XML file with a PDF file, so as to solve the operation steps during modification caused by the inability to understand the corresponding relationship between the source code in the XML file and the text in the PDF file in the prior art complex, inefficient problem

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
  • XML file and PDF file synchronous association method and apparatus
  • XML file and PDF file synchronous association method and apparatus
  • XML file and PDF file synchronous association method and apparatus

Examples

Experimental program
Comparison scheme
Effect test

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 ...

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 provides an XML file and PDF file synchronous association method and apparatus. The method comprises the steps of setting corresponding tag identifiers for text segment tags in an XML file; in a typesetting process of converting the XML file into a PDF file, obtaining the tag identifiers; obtaining typesetting position information of the tags in the PDF file; and establishing a synchronous association mapping relationship between the tag identifiers and the typesetting position information. Through the method, a user can know the specific positions, in the PDF file, of the tags in the XML file; and synchronous association of the XML file and the PDF file is realized, so that the use convenience is enhanced and the working efficiency is improved.

Description

Technical field [0001] This application relates to the field of XML technology, and in particular to a method and device for synchronizing and associating an XML file and a PDF file. Background technique [0002] In the prior art, each typesetting system uses its own editor for content editing, and generates PDF files through the typesetting engine. The main application scenario of this work is that users read through PDF and edit through XML (Extensible Markup Language). The limitation of this method is that we cannot directly locate the content that needs to be edited and modified through the PDF. Instead, open the editor, locate and modify in the editor, and then generate the PDF, which means that the PDF only starts When it comes to reading, it does not provide a quick positioning function for auxiliary modification. [0003] That is to say, the original common way is to generate PDF files from XML files through the typesetting system. If users find the text that needs to be c...

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
IPC IPC(8): G06F17/22G06F17/24G06F17/30
CPCG06F16/835G06F16/84G06F40/14G06F40/154G06F40/166
Inventor 王盛华周祖胜李艳红
Owner 北京仁和汇智信息技术有限公司
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