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

A method and device for synchronizing association between xml file and pdf file

A file synchronization and file technology, applied in the XML field, can solve problems such as complicated operation steps, inability to understand corresponding relationships, and low efficiency

Active Publication Date: 2018-12-18
北京仁和汇智信息技术有限公司
View PDF4 Cites 0 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
  • A method and device for synchronizing association between xml file and pdf file
  • A method and device for synchronizing association between xml file and pdf file
  • A method and device for synchronizing association between xml file and pdf file

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0055] The embodiment of the present application provides a method for synchronously associating an XML file with a PDF file, such as figure 1 A flowchart of the method is shown, including:

[0056] S101. Set a corresponding tag identifier for a text segment tag in the Extensible Markup Language XML file.

[0057] In the embodiment of the present application, in the process of converting an XML file into a PDF file, detect whether the text segment tag in the XML file has a tag identifier, if so, obtain the tag identifier; if not, set the tag for the segment The corresponding tag identifier.

[0058] It includes setting a tag identifier for each text segment tag; or judging whether the text segment is the head of an associated text segment, and if so, setting a tag identifier for the text segment and the associated text segment adjacent to the text segment. For example, when a text segment titled "2.1.1" corresponds to only a text segment A, you can set a tag identifier for "...

Embodiment 2

[0084] The embodiment of this application provides a device for synchronously associating XML files with PDF files, such as image 3 Shown is a schematic diagram of the structure of the device, including:

[0085] The setting module 201 is used for setting the corresponding label identifier for the text segment label in the XML file;

[0086] The first obtaining module 202 is used to obtain the tag identifier during the typesetting process of converting the XML file into a PDF file;

[0087] The second acquiring module 203 is configured to acquire typesetting position information of the tag in the PDF file;

[0088] A construction module 204, configured to construct a synchronous association mapping relationship between the label identifier and the typesetting position information.

[0089] Optionally, the second obtaining module 203 is used for:

[0090] Recording the page number of the label in the PDF file; obtaining the starting line and the ending line of the label 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 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] The present application relates to the technical field of XML, in particular to a method and device for synchronously associating XML files with PDF files. 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 limitation of this method is that we cannot directly locate the content that needs to be edited and modified through the PDF, but open the editor, locate and modify it in the editor and then generate the PDF, that is to say, the PDF only starts When it comes to the function of reading, there is no quick positioning function for auxiliary modification. [0003] That is to say, the original common method is to generate PDF files from XML files through the typesetting system. If users find text that needs to be changed in the process of reading the PDF files, they need to open the XML file and browse the source code of the XML file...

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 Patents(China)
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