A method for ensuring the validity of a signature in an original document based on an OFD standard document page addition

By creating a new document entry file in the OFD document and adopting an incremental modification mode, the problem of signature verification failing after appending pages was solved, thus ensuring the validity of signature verification and compatibility with readers from various manufacturers.

CN115510818BActive Publication Date: 2026-03-03JIANGXI KINGGRID TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-22
Publication Date
2026-03-03

AI Technical Summary

Technical Problem

An issue arises where existing signature verification fails after a new page is added to an OFD document.

Method used

By creating a new document entry file under the OFD standard and using incremental modification mode, the original signatures are ensured to remain unaffected, the content of newly added pages is described independently in the new file, and the rules of the OFD standard are followed.

Benefits of technology

After the page is added, the original signature remains valid, and readers from various manufacturers can display the document normally, ensuring the consistency and interoperability of the signature verification effect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115510818B_ABST
    Figure CN115510818B_ABST
Patent Text Reader

Abstract

The application provides a method for ensuring the validity of a signature in an original document when a page is added to the document based on an OFD standard. Based on the OFD document format standard, when a page is added to the document, the document structure is modified, the verification result of the signature in the original document is affected, the original document cannot be modified incrementally, and the verification result of the signature is not affected. In view of this situation, the application introduces a new mode based on the existing standard format and the original document, increases an addition mode under the condition that the original document structure and related content are kept unchanged. In the addition mode, a new entry file is created, the incremental modification part is described separately, and the incremental part can be normally parsed and displayed, and meets the related standards of OFD.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of document processing technology, and in particular to a method for appending pages to a document based on the OFD standard to ensure that the signatures in the original document are valid. Background Technology

[0002] In OFD documents, based on existing standards, adding new pages to a signed document will cause the original signature verification to become invalid. Therefore, it is necessary to study a method that, while complying with OFD standards, can both add new pages to the document and ensure that the original signature remains valid, and then stamp the new pages to protect the newly added parts.

[0003] In summary, this invention proposes a method for adding pages to a document based on the OFD standard to ensure the validity of signatures in the original document. Summary of the Invention

[0004] The purpose of this invention is to provide a method for adding pages to a document based on the OFD standard to ensure that the signatures in the original document are valid.

[0005] To achieve the above objectives, the present invention provides a method for adding pages to a document based on the OFD standard to ensure the validity of signatures in the original document, comprising the following steps:

[0006] S1. Determine the new page mode for the document. If it is the append mode, find the entry file OFD.xml.

[0007] S2. Modify the DocRoot entry node of the entry file OFD.xml to ensure that other related information in OFD.xml is not affected;

[0008] S3, the document entry in DocRoot points to the newly created document entry Document_XX.XML (where _XX is a unique ID that ensures uniqueness throughout the entire document);

[0009] S4. When attaching pages, if related content and resources are involved, an incremental change mode is adopted. The incremental change mode means that when attaching pages involves Annotations, CustomTags, Attachments, and Extensions, firstly, the original files are not modified. Secondly, the contents of these files are copied to a newly created file. Then, the newly added changes are added to this newly created file. Finally, the relevant entry points in document_xx.xml are modified to point to this newly added file.

[0010] S5. Confirm that the scope of signature protection in the original document is not affected by the signature verification operation;

[0011] S6. When adding new page content, the description adopts the Page_Merger_X_X rule in the existing standard;

[0012] S7. After the document is attached, manually confirm by sampling that all manufacturers' readers can open and display the document normally;

[0013] S8. Verify the validity of the signature verification in the original document through the signature verification operation;

[0014] S9. When confirming a signature in a new document, it can protect the entire document, the original document, and any attachments.

[0015] Furthermore, the rule for establishing the new document entry point in step S3 is as follows:

[0016] S31, Pages: Copy the page tree of the original document's main entry point, and then add new pages incrementally here;

[0017] For nodes such as S32, Annotations, CustomTags, Attachments, and Extensions that have a unique entry point, a new node entry point is created to replace the original node entry point if the node is not empty. Taking Annotations as an example: if the original Annotations node points to Anotation.xml, a new entry point Anotation_XX.xml is created, where _XX is a unique ID. The content of the original Anotation.xml is copied into Anotation_XX.xml, and then the new content is added incrementally.

[0018] For nodes such as S33, PublicRes, DocumentRes, and TemplatePage that are not unique entry points, add them incrementally. When you need to add a new resource or template, create a new resource file or template file and then add a new node in document_xx.xml to point to this new resource file or template file.

[0019] The beneficial effects of the above scheme are:

[0020] This invention is based on the OFD document format standard. Adding pages to a document modifies its structure, affecting the signature verification results in the original document. It does not support incremental modifications to the original document without affecting signature verification results. To address this, this invention introduces a new mode based on the existing standard format and original document. This mode adds an append mode while maintaining the original document structure and related content. In append mode, a new entry file is created to describe the incremental modifications separately, ensuring that the incremental parts can be parsed and displayed correctly, and conforming to the relevant OFD standards.

[0021] Furthermore, while adhering to the OFD standard, this invention creatively disconnects the original document main entry link and creates a new document main entry link (and its ancillary facilities) to ensure that the content within the scope of signature protection will not be touched or changed, thus ensuring the effectiveness of signature verification and interoperability among various vendors.

[0022] Furthermore, under the premise of effective signature protection, this invention re-establishes document links, ensuring that the presentation of new and existing pages remains consistent across different vendors. While guaranteeing the integrity and security of the original content, it allows for the incremental overlay of other content on the document. This invention has wide applications in the financial and bidding industries, ensuring the presentation effects and interoperability of different vendors. Attached Figure Description

[0023] Figure 1 This is a schematic diagram of the original document of this invention;

[0024] Figure 2 This is a schematic diagram illustrating the operation of adding a new page in this invention. Detailed Implementation

[0025] The present invention will be further described clearly and completely below with reference to the accompanying drawings, but the scope of protection of the present invention is not limited thereto.

[0026] Example 1:

[0027] The explanation combines the original document with the newly added pages, such as... Figures 1 to 2 As shown, a method for ensuring the validity of signatures in the original document when appending pages based on the OFD standard includes the following steps:

[0028] S1. Determine the new page mode for the document. If it is the append mode, find the entry file OFD.xml.

[0029] S2. Modify the DocRoot entry node of the entry file OFD.xml to ensure that other related information in OFD.xml is not affected;

[0030] S3, the document entry in DocRoot points to the newly created document entry Document_XX.XML (where _XX is a unique ID that ensures uniqueness throughout the entire document);

[0031] S4. When attaching pages, if related content and resources are involved, an incremental change mode is adopted. The incremental change mode means that when attaching pages involves Annotations, CustomTags, Attachments, and Extensions, firstly, the original files are not modified. Secondly, the contents of these files are copied to a newly created file. Then, the newly added changes are added to this newly created file. Finally, the relevant entry points in document_xx.xml are modified to point to this newly added file.

[0032] S5. Confirm that the scope of signature protection in the original document is not affected by the signature verification operation;

[0033] S6. When adding new page content, the description adopts the Page_Merger_X_X rule in the existing standard;

[0034] S7. After the document is attached, manually confirm by sampling that all manufacturers' readers can open and display the document normally. In this step, the manufacturers' readers include mainstream readers such as Digital China and Foxit.

[0035] S8. Verify the validity of the signature verification in the original document through the signature verification operation;

[0036] S9. When confirming a signature in a new document, it can protect the entire document, the original document, and any attachments.

[0037] In this embodiment, the rule for establishing the new document entry in step S3 is:

[0038] The rule for establishing the new document entry in step S3 is:

[0039] S31, Pages: Copy the page tree of the original document's main entry point, and then add new pages incrementally here;

[0040] For nodes such as S32, Annotations, CustomTags, Attachments, and Extensions that have a unique entry point, a new node entry point is created to replace the original node entry point if the node is not empty. Taking Annotations as an example: if the original Annotations node points to Anotation.xml, a new entry point Anotation_XX.xml is created, where _XX is a unique ID. The content of the original Anotation.xml is copied into Anotation_XX.xml, and then the new content is added incrementally.

[0041] For nodes such as S33, PublicRes, DocumentRes, and TemplatePage that are not unique entry points, add them incrementally. When you need to add a new resource or template, create a new resource file or template file and then add a new node in document_xx.xml to point to this new resource file or template file.

[0042] The embodiments disclosed herein are preferred embodiments, but are not limited thereto. Those skilled in the art can readily grasp the spirit of the present invention based on the above embodiments and make different extensions and variations, but as long as they do not depart from the spirit of the present invention, they are all within the protection scope of the present invention.

Claims

1. A method for guaranteeing the validity of a signature in an original document by appending a page to an OFD standard-based document, characterized by, The method comprises the following steps: S1, determining a document new page mode, if it is an additional mode, finding an entry file OFD.xml; S2, modifying a description entry node DocRoot of the entry file OFD.xml, ensuring that other related information of OFD.xml is not affected; S3, a document entry in DocRoot points to a newly established document entry Document_XX.XML, wherein _XX is a unique ID ensuring that the whole document is unique; S4, when the additional page involves Annotations, CustomTags, Attachments and Extensions, firstly, ensuring that the original file is not changed, secondly, copying the content of these files into a newly created file, then adding the new changed content in the newly created file, and finally modifying the related entry point in Document_XX.XML, pointing to the newly added file; S5, confirming that the signature protection range in the original document is not affected through a signature verification operation; S6, when the new page content is added, the description adopts the Page_Merger_X_X rule in the existing standard; S7, after the document is added, it is manually confirmed through sampling that the reader can normally open and display the document; S8, confirming that the signature verification in the original document is effective through a signature verification operation; S9, confirming that the signature in the new document can protect the whole document and protect the original document and the additional part; The establishment rule of the newly established document entry in step S3 comprises: S31, copying the page tree of the main entry of the original document to the page tree of the newly added page, and then incrementally adding the newly added page; S32, in the case that the node is not empty, the four nodes of Annotations, CustomTags, Attachments and Extensions with unique entry are newly established to replace the original node entry; S33, the three nodes of PublicRes, DocumentRes and TemplatePage with non-unique entry are directly increased in an incremental manner, when a resource or a template needs to be newly added, a resource file or a template file is directly newly established, and then a node is newly added in Document_XX.XML to point to the newly established resource file or template file.

Citation Information

Patent Citations

  • An incremental modification method based on an OFD document

    CN109165198A

  • Method and device for combining multi-format files into OFD file

    CN113961531A