Electronic signature method and device based on DWF document, equipment, medium and product
By converting and storing seal picture data in DWF documents, generating binary summary information, and constructing electronic signature data structure, the problem of incompatibility of electronic signatures and formats of DWF documents is solved, the functions opened in general readers and the integrity and undeniability of the document are realized, and the promotion of digital picture review and delivery is promoted.
Patent Information
- Application Number
- CN202510008909.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-03
- Publication Date
- 2025-05-02
AI Technical Summary
When the existing technology conducts electronic signatures in DWF documents, the signature data is incompatible with the DWF document format and cannot be opened in a general DWF reader, which limits the promotion of digital picture review and digital delivery.
By converting the seal picture data into set graphic data and storing it in the graphics directory of the DWF document, binary summary information is generated, electronic signature data structure is created, signature protection information file is constructed, and signature password is performed on it, signature result file is generated, signature directory structure is constructed, and data files related to electronic signatures are stored.
It realizes the document after opening the electronic signature in a general DWF reader, and displays the original design data and electronic signature, ensuring the integrity, effectiveness and undeniability of the document, and promoting the promotion of digital picture review and digital delivery.
Smart Images

Figure CN119918506A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of DWF signature technology, and in particular, to an electronic signature method, device, equipment, medium and product based on a DWF document. Background Art
[0002] With the development, digital delivery and digital review have been widely used in the housing and construction industry. At present, the existing technology adopts a single format of DWG, DWF and PDF for digital review of engineering drawings. Since the DWG format contains detailed design information, it is generally converted to PDF or DWF format for the purpose of protecting intellectual property rights for subsequent digital delivery and digital review business processes.
[0003] DWF (Design Web Format) is a file format developed by Autodesk, mainly used for exchanging and distributing computer-aided design (CAD) data. It allows users to share and distribute design data in a compact and secure way, and efficiently communicate and collaborate on design projects between different CAD platforms. It can efficiently distribute rich design data to anyone who needs to view, review or print the data. Since DWF documents are highly compressed, they are smaller than the original design file DWG. DWF also supports multi-page drawing sets, which makes it easy for designers to publish drawing sets from multiple DWG source files into a single DWF document.
[0004] For electronic signatures of DWF format files, the commonly used technical method is to append the electronic signature data at the end of the DWF document. Although the existing technology solves the need for electronic signatures of DWF documents, this method mechanically refers to PDF signatures and is completely incompatible with the DWF format. The direct consequence is that if you use a DWF document reading tool, not only can you not see the seal, but you can't even open the document with the electronic signature, which will have certain constraints on the promotion of digital review and digital delivery. Summary of the invention
[0005] The purpose of the embodiments of the present application is to provide an electronic signature method, device, equipment, medium and product based on DWF documents, which can not only ensure the integrity, validity and non-repudiation of the electronically signed document, but also enable the document to be opened in a general DWF reader and display the original design data and electronic signature contained in the document, thereby promoting the promotion of digital review and digital delivery.
[0006] In a first aspect, an embodiment of the present application provides an electronic signature method based on a DWF document, comprising:
[0007] Convert the stamp image data into set graphic data and store it in the graphic directory of the DWF document;
[0008] Generate binary summary information for DWF document files based on set operation rules;
[0009] Create an electronic signature data structure for the DWF document and construct a data file related to the electronic signature; wherein the data file includes a signature protection information file;
[0010] Performing a signature cryptographic operation on the signature protection information file to generate a signature result file;
[0011] Construct a signature directory structure for the DWF document to store data files related to the electronic signature.
[0012] In the above implementation process, the embodiment of the present application converts the seal image data to generate set graphic data and stores it in the graphic directory of the DWF document; generates binary summary information for the file of the DWF document based on the set operation rules; creates the electronic signature data structure of the DWF document, and constructs the data file related to the electronic signature; wherein the data file includes a signature protection information file; performs a signature cryptographic operation on the signature protection information file to generate a signature result file; constructs a signature directory structure for the DWF document to store the data file related to the electronic signature; not only can it ensure the integrity, validity and non-repudiation of the electronically signed document, but also the document can be opened in a general DWF reader, and the original design data and electronic signature contained in the document can be displayed, thereby promoting the promotion of digital review and digital delivery.
[0013] Furthermore, the electronic signature related data files also include: an electronic signature list file and a signature value file.
[0014] In the above implementation process, the data files related to the electronic signature are defined to implement the electronic signature of the DWF document.
[0015] Furthermore, the generating of binary summary information for the DWF document file based on the set operation rules includes:
[0016] DWF uses a container plus document method to describe and store data. The container is a virtual storage system that aggregates various data description files and provides corresponding access interfaces and data compression methods. The container function is implemented through ZIP files.
[0017] For all files that need to be protected in the ZIP file of the DWF document, hash cryptographic operations are performed one by one to generate binary summary information.
[0018] In the above implementation process, generating binary summary information for the DWF document file can efficiently store and read data.
[0019] Furthermore, the creation of the electronic signature data structure of the DWF document and the construction of the data file related to the electronic signature further include:
[0020] The signature protection information file records the binary summary information of all files that need to be protected by the current signature, and the file contains the signature algorithm, signature time and signature result file path.
[0021] In the above implementation process, the binary summary information of all files that need to be protected by the current signature is recorded, so that data can be stored and read efficiently.
[0022] Furthermore, the step of converting the seal image data to generate set graphic data and storing the data in a graphic directory of the DWF document includes:
[0023] For the scenario of displaying seal images for electronic signatures, the seal image data is converted into streaming graphic data of a set format file and stored in the graphic directory of the DWF document;
[0024] The node information and file reference information of the streaming graphic data are added in the editor under the graphic directory.
[0025] In the above implementation process, the visual signature effect is achieved, and it is also convenient to perform summary protection on the streaming graphic data file later.
[0026] Furthermore, it also includes:
[0027] Perform multiple electronic signature operations on DWF documents through electronic signature related data files.
[0028] In the above implementation process, the parent directory, subdirectory and electronic signature list file of the electronic signature data package can support multiple electronic signature or digital signature operations on the DWF document, thereby enhancing practicality.
[0029] Furthermore, the construction of a signature directory structure for the DWF document to store data files related to the electronic signature includes:
[0030] Generate the root directory of the electronic signature storage and the storage directory of the one-time electronic signature related data in the root directory of the ZIP file of the DWF document;
[0031] If there is a pre-existing storage root directory for the electronic signature, the storage root directory of the electronic signature is directly used;
[0032] If the electronic signature storage root directory does not exist, create the electronic signature storage root directory;
[0033] The signature protection information file of the electronic signature and the signature result file of the electronic signature are stored in the storage directory of the electronic signature related data;
[0034] If there is no electronic signature list file in the storage root directory of the electronic signature, you need to construct a new file and add the signature protection information file, ID and operation type of the electronic signature of this signature to the electronic signature list file according to the electronic signature list file structure;
[0035] If there is an electronic signature list file, directly append the signature protection information file, ID and operation type of the electronic signature for this signature.
[0036] In the above implementation process, a signature directory structure is constructed for the electronically signed DWF document to facilitate viewing of the content and information of the DWF document and enhance the visualization effect.
[0037] In a second aspect, an embodiment of the present application provides an electronic signature device based on a DWF document, comprising:
[0038] A graphics generation module is used to convert the seal image data into set graphics data and store it in the graphics directory of the DWF document;
[0039] A summary generation module is used to generate binary summary information for the DWF document file based on the set operation rules;
[0040] A file creation module is used to create an electronic signature data structure of a DWF document and construct a data file related to the electronic signature; wherein the data file includes a signature protection information file;
[0041] The signature generation module is used to perform a signature cryptographic operation on the signature protection information file to generate a signature result file;
[0042] The signature directory construction module is used to construct the signature directory structure for the DWF document and store data files related to the electronic signature.
[0043] In a third aspect, an embodiment of the present application provides an electronic device, including:
[0044] A processor, a memory and a bus, wherein the processor is connected to the memory via the bus, and the memory stores computer-readable instructions. When the computer-readable instructions are executed by the processor, they are used to implement the electronic signature method based on the DWF document as described above.
[0045] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a server, the electronic signature method based on a DWF document as described above is implemented.
[0046] In a fifth aspect, an embodiment of the present application provides a computer program product, which includes instructions, and when the instructions are executed by a computer, the computer implements the method as described above. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0048] Figure 1 A flowchart of an electronic signature method based on a DWF document provided in an embodiment of the present application;
[0049] Figure 2 A schematic diagram of a DWF document hierarchical organization structure of an electronic signature method based on a DWF document provided in an embodiment of the present application;
[0050] Figure 3 A schematic diagram of the hierarchical organizational structure of a DWF document after signing according to an electronic signature method based on a DWF document provided in an embodiment of the present application;
[0051] Figure 4 A schematic diagram of the electronic signature list file structure of an electronic signature method based on a DWF document provided in an embodiment of the present application;
[0052] Figure 5 A schematic diagram of the structure of a signature protection information file of an electronic signature method based on a DWF document provided in an embodiment of the present application;
[0053] Figure 6 It is a structural schematic diagram of an electronic signature device based on a DWF document provided in an embodiment of the present application;
[0054] Figure 7 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0055] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.
[0056] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. At the same time, in the description of this application, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.
[0057] With the development, digital delivery and digital review have been widely used in the housing and construction industry. At present, the existing technology adopts a single format of DWG, DWF and PDF for digital review of engineering drawings. Since the DWG format contains detailed design information, it is generally converted to PDF or DWF format for the purpose of protecting intellectual property rights for subsequent digital delivery and digital review business processes.
[0058] PDF (Portable Document Format) was developed by Adobe Systems in 1993. It is an electronic file format widely used for electronic document distribution and digital information dissemination on the Internet. DWF (Design Web Format) is a file format developed by Autodesk, mainly used for the exchange and distribution of computer-aided design (CAD) data. It allows users to share and distribute design data in a compact and secure way, and efficiently communicate and collaborate on design projects between different CAD platforms. It can efficiently distribute rich design data to anyone who needs to view, review or print this data. PDF graphics are limited to straight lines, cubic Bézier curves, fills, TrueType text, colors and layers, and support for CAD-specific design data is limited. In addition, because DWF documents are highly compressed, they are smaller than the original design file DWG. DWF also supports multi-page drawing sets, which makes it easy for designers to publish drawing sets from multiple DWG source files into a single DWF document. If you need to distribute and view documents across platforms and do not have high requirements for editing functions, then PDF may be a better choice; if you need to distribute design data efficiently and want to keep the data non-editable and secure, then DWF may be more appropriate. DWF format files are more suitable for digital delivery and digital review, and DWF format drawings for review can be separated from the CAD environment, free of genuine software fees, and save costs.
[0059] For electronic signatures of DWF format files, the commonly used technical method is to add the electronic signature data at the end of the DWF document. The specific operation is as follows:
[0060] 1) Preset an electronic signature data structure block behind the original DWF document;
[0061] 2) Put the current seal image into the seal image data part of the electronic signature data structure;
[0062] 3) Perform byte string concatenation processing on the seal image data in the DWF format data and the electronic signature data structure;
[0063] 4) Perform digital signature operation on the byte array concatenated in step 3).
[0064] Although the existing technology has solved the need for electronic signatures in DWF documents, this method mechanically refers to PDF signatures and is completely incompatible with the DWF format. The direct consequence is that if you use the DWF document reading tool Autodesk DWF Viewer, you will not only not be able to see the seal, but you will not even be able to open the electronically signed document. As a result, if you conduct drawing review on the client side, you will have to develop a dedicated reading tool; if you conduct drawing review on the server side, you will have to customize the JavaScript script for the DWF format to adapt to the specific signature data format, which will have certain constraints on the promotion of digital drawing review and digital delivery.
[0065] The root cause of the problem with the prior art is that it mechanically references the PDF signature, which results in the inability to organically associate the signature data with the DWF document format.
[0066] Based on this, the embodiment of the present application first analyzes the document format of DWF, and then refers to the relevant specifications on this basis to design an electronic signature format suitable for DWF documents. The embodiment of the present application realizes: First, for the current common DWF reader, not only can the electronically signed document be opened, but the original design data carried in the document can be displayed without omission, and the visual appearance of the electronic seal and its accurate position can also be seen; second, the integrity and non-repudiation of the electronically signed DWF document must be guaranteed. If the document content is illegally modified, the verification result of the electronic signature must return an error prompt. If the document content has not been modified, a prompt message of successful verification is returned.
[0067] DWG is a drawing saving format created by AutoCAD and is one of the most commonly used file formats in the field of computer-aided design (CAD).
[0068] Please see Figure 1 , Figure 1 A flowchart of an electronic signature method based on a DWF document provided in an embodiment of the present application. The electronic signature method based on a DWF document includes:
[0069] 100. Convert the seal image data into set graphic data and store it in the graphic directory of the DWF document.
[0070] Specifically, for the scenario of displaying seal images for electronic signatures, the seal image data is converted to generate streaming graphic data of a set format file and stored in the graphics directory (ePlot* directory) of the DWF document; the node information and file reference information of the streaming graphic data are added in the editor (descriptor.xml) under the ePlot* directory; thereby, the effect of visual signature is achieved, and it is also convenient to perform summary protection on the streaming graphic data file later.
[0071] 200. Generate binary summary information for the DWF document file based on the set operation rules.
[0072] Optionally, DWF uses a container plus document method to describe and store data; the container is a virtual storage system that aggregates various data description files and provides corresponding access interfaces and data compression methods. The container function is implemented through ZIP files.
[0073] Optionally, a hash cryptographic operation is performed one by one on all files that need to be protected in the ZIP file of the DWF document to generate binary summary information.
[0074] It should be noted that a DWF document consists of multiple XML and binary files, which are packaged together and then compressed using ZIP to create a compressed archive. If you rename the DWF document extension to ZIP, you can view the contents of all files contained in the DWF document. DWF packages can contain a variety of design data types, such as 2D graphics, 3D graphics, package and section metadata, and other resource files. Among them, a package generally refers to a structured way to organize, distribute, and manage resources such as code, data, and documents; section data is data from different entities at the same point in time or the same time period, also known as static data, and is one of the common types of sample data.
[0075] Among them, the structure of the DWF document format is divided into three layers: virtual storage system: including package organization structure and directory organization structure within the package; document model: including document, page, outline, file-level resource and other organizational structures; page content description: including page-level resources, graphics, images and text, etc.
[0076] Among them, there are three most basic graphic objects in the page as follows: graphic object: an area composed of a series of path objects, including points, lines, surfaces, arcs, annotations and other information; image object: composed of pixel values of a rectangular area, each pixel value determines the color value of a specified point in the rectangular area; text object: composed of a series of characters and their positioning information, the shape of each character is determined by its specified font and other parameters.
[0077] The hierarchical structure of DWF documents can be found in Figure 2 As shown, the following is a detailed description:
[0078] manifest.xml: Entry manifest file, which describes all files under the ZIP file of the DWF document and the files under the directory. There can be only one such file.
[0079] ePlotGlobal directory: DWF drawing files can include multiple DWG releases. This directory includes descriptions of drawing set data from multiple DWG releases.
[0080] descriptor.xml (ePlotGlobal directory): describes the indexes of all DWG releases included in the current DWF document.
[0081] Publish drawing set data: This file has the suffix dsd format and can be one or more files. Its content is a general description of the information published by the current DWG.
[0082] ePlot_* directory: This directory includes all the relevant data files published by one of the DWGs. There can be multiple directories. * represents different UUIDs, which are used to distinguish data published by different DWGs.
[0083] descriptor.xml (ePlot_* directory): indexes the information published by a DWG, including not only the attribute information of the DWG (author, subject, description, copyright, and release time, etc.), but also the description and reference of all files in the ePlot_* directory.
[0084] Streaming graphics data: This file has the suffix w2d or w3d, which can be one or more, and includes detailed graphics data information. w2d contains two-dimensional graphics data information, while w3d contains three-dimensional graphics data information.
[0085] Viewport data: This file has the suffix pia and describes the viewport information of the current DWG publication.
[0086] Font file: The file suffix is ef_, which can be one or more, and includes the font files used for the current DWG publishing.
[0087] Thumbnail: This file has a suffix of png and is a complete thumbnail of the current DWG release file.
[0088] 300. Create an electronic signature data structure for the DWF document and construct a data file related to the electronic signature; wherein the data file includes a signature protection information file (which may be named Signature.xml).
[0089] Optionally, the data files related to the electronic signature also include: an electronic signature list file and a signature value file (which may be named Signatures.xml and SignedValue.dat, etc.); thereby, the data files related to the electronic signature are defined to realize the electronic signature of the DWF document.
[0090] On the basis of the above embodiment, the electronic signature method based on the DWF document of the embodiment of the present application can also be embodied as follows: after creating the electronic signature data structure of the DWF document and constructing the data file related to the electronic signature, it also includes:
[0091] The signature protection information file records the binary summary information of all files that need to be protected by the current signature, and the file contains the signature algorithm, signature time and signature result file path.
[0092] It should be noted that the electronic signature data structure is an expansion of the existing file organization structure of DWF, and adds data files related to the signature operation; the overall signature process is to first perform summary operations on all files that need to be protected in the ZIP file of the DWF document, and then combine these summary information with other additional information (signature time, algorithm, signature result file path, etc.) according to Figure 5 The signature protection information file structure is used to construct the signature protection information file (Signature.xml); then the DWF document content is protected by indirect protection of the signature protection information file. In addition, in addition to meeting the function of electronic signature, it can also protect the digital signature without seal image, and can also allow multiple electronic signature or digital signature operations, thus meeting the actual business needs of digital delivery and review.
[0093] 400. Perform a signature cryptographic operation on the signature protection information file to generate a signature result file.
[0094] Optionally, a signature cryptographic operation is performed on the signature protection information file to generate a signature result file (SignedValue.dat).
[0095] For an example of the organization structure of a signed DWF document, see Figure 3 As shown in the figure, the gray parts are directories or files related to signatures, which are described in detail below:
[0096] signs directory: The root directory for storing all electronic signatures. This directory is located at the first level under the DWF ZIP file directory and can contain multiple subdirectories.
[0097] sign_* directory: the storage directory of the data related to an electronic seal / digital signature, * represents the index ID of this operation.
[0098] Signatures.xml: electronic signature list file, which indexes the signature protection information files of all electronic signatures in the current DWF document.
[0099] Signature.xml: Signature protection information file for a one-time electronic signature.
[0100] SignedValue.dat: The signature result file of an electronic signature.
[0101] Streaming graphic data (seal image): Contains the streaming graphic data file of the seal image, with the file suffix w2d.
[0102] 500. Construct a signature directory structure for the DWF document to store data files related to the electronic signature.
[0103] Specifically, in the root directory of the ZIP file of the DWF document, generate the storage root directory of the electronic signature (signs directory) and the storage directory of the electronic signature related data (a sign_* directory); if the signs directory exists in advance, use the signs directory directly; if the signs directory does not exist, create the signs directory.
[0104] Optionally, the signature protection information file (Signature.xml file) of the electronic signature and the signature result file (SignedValue.dat file) of the electronic signature are stored in the sign_* directory.
[0105] If there is no electronic signature list file (Signatures.xml file) in the signs directory, you need to construct a new file according to Figure 4 The electronic signature list file structure adds the Signature.xml information, ID and operation type of this signature in the Signatures.xml file; if the Signatures.xml file already exists, it means that this is a subsequent signature operation, and the Signature.xml information, ID and operation type of this signature are directly appended.
[0106] As described above, a signature directory structure is constructed for the electronically signed DWF document, which facilitates viewing the content and information of the DWF document and enhances the visualization effect.
[0107] Exemplarily, when performing an electronic signature operation on a DWF document, a sign_* subdirectory will first be generated under the signs directory, and related data files will be stored in this directory, which will be explained in detail below. The electronic signature list file, signature protection information file, signature result file and seal image data will be stored.
[0108] The electronic signature list file indexes the signature protection information files of all electronic signatures in the current DWF document. For the specific file structure, see Figure 4 As shown, the following is a detailed description:
[0109] Signatures: The root node of the electronic signature list file.
[0110] Signature: A node that performs an electronic signature operation on data.
[0111] ID: The index of an electronic signature operation.
[0112] Type: Operation type, indicating whether this operation is an electronic signature or a digital signature.
[0113] BaseLoc: The path pointing to the signature protection information file (Signature.xml) of an electronic signature operation.
[0114] The signature protection information file records the binary summary information of all files that need to be protected by this electronic signature, and also includes information such as signature algorithm, signature time, signature result file path, etc. Once the file is protected by signature, the original file in the corresponding package and the additional information corresponding to this signature cannot be changed, thus realizing the protection of the entire DWF document content with one electronic signature.
[0115] For the specific structure of the signature protection information file, see Figure 5 As shown, the following is a detailed description:
[0116] Signature: The root node of the signature protection information file.
[0117] SignedInfo: A node that contains the original summary of the file to be protected by the signature and information related to this signature.
[0118] SignatureMethod: Description of the signature algorithm used in this electronic signature.
[0119] SignatureDateTime: The operation time of this electronic signature.
[0120] References: A list of summary records calculated from files in the DWF document's ZIP package.
[0121] SignedValue: points to the signature result file path obtained by signing the signature protection information file.
[0122] The signature result file is a file generated after the signature protection information file (Signature.xml) is signed. Here are two cases:
[0123] Electronic signature: The content of the signature result file is the signature structure data specified in the specification standard, and the signature data also includes the relevant data of the seal; digital signature: The signature result follows a specification different from the electronic signature, and this specification does not contain information about the seal image.
[0124] Among them, the seal image data does not support the seal format in some standard specifications because the DWF document format does not support the seal format in some standard specifications. If you need to display the seal image data, refer to Figure 3 As shown, a streaming graphic data file containing a seal image is added to the ePlot_* directory, thereby achieving a visual signature effect, and at the same time the streaming graphic data file is digest-protected; if it is only a digital signature, there is no need to add a graphic data file.
[0125] On the basis of the above embodiment, the electronic signature method based on DWF document in the embodiment of the present application can also be embodied as follows:
[0126] Perform multiple electronic signature operations on DWF documents through electronic signature related data files.
[0127] In the above implementation process, the parent directory, subdirectory and electronic signature list file of the electronic signature data package can support multiple electronic signature or digital signature operations on the DWF document, thereby enhancing practicality.
[0128] As described above, the embodiment of the present application converts the seal image data into set graphic data and stores it in the graphic directory of the DWF document; generates binary summary information for the file of the DWF document based on the set operation rules; creates the electronic signature data structure of the DWF document, and constructs the data file related to the electronic signature; wherein the data file includes a signature protection information file; performs a signature cryptographic operation on the signature protection information file to generate a signature result file; constructs a signature directory structure for the DWF document, and stores the data file related to the electronic signature; not only can the integrity, validity and non-repudiation of the electronically signed document be guaranteed, but also the document can be opened in a general DWF reader, and the original design data and electronic signature contained in the document can be displayed, thereby promoting the promotion of digital review and digital delivery.
[0129] The above steps are not to be performed in a strict order as described in the numbers, but should be understood as an overall solution.
[0130] In the second aspect, based on the above embodiments, Figure 6 This is a schematic diagram of the structure of an electronic signature device based on a DWF document provided in an embodiment of the present application. Figure 6 The electronic signature device based on DWF document provided in this embodiment specifically includes: a graphics generation module 601, a summary generation module 602, a file creation module 603, a signature generation module 604 and a signature directory construction module 605.
[0131] Among them, the graphic generation module 601 is used to convert the seal image data into set graphic data and store it in the graphic directory of the DWF document; the summary generation module 602 is used to generate binary summary information for the file of the DWF document based on the set operation rules; the file creation module 603 is used to create the electronic signature data structure of the DWF document and construct data files related to the electronic signature; wherein the data file includes a signature protection information file; the signature generation module 604 is used to perform signature cryptographic operations on the signature protection information file and generate a signature result file; the signature directory construction module 605 is used to construct a signature directory structure for the DWF document and store data files related to the electronic signature.
[0132] As described above, the embodiment of the present application converts the seal image data into set graphic data and stores it in the graphic directory of the DWF document; generates binary summary information for the file of the DWF document based on the set operation rules; creates the electronic signature data structure of the DWF document, and constructs the data file related to the electronic signature; wherein the data file includes a signature protection information file; performs a signature cryptographic operation on the signature protection information file to generate a signature result file; constructs a signature directory structure for the DWF document, and stores the data file related to the electronic signature; not only can the integrity, validity and non-repudiation of the electronically signed document be guaranteed, but also the document can be opened in a general DWF reader, and the original design data and electronic signature contained in the document can be displayed, thereby promoting the promotion of digital review and digital delivery.
[0133] The electronic signature device based on a DWF document provided in the embodiment of the present application can be used to execute the electronic signature method based on a DWF document provided in the above embodiment, and has corresponding functions and beneficial effects.
[0134] In a third aspect, an embodiment of the present application further provides an electronic device that can integrate the DWF document-based electronic signature device provided in an embodiment of the present application. Figure 7 Schematic diagram of the structure of an electronic device provided by an embodiment of the present application. Figure 7The electronic device includes: an input device 73, an output device 74, a memory 72 and one or more processors 71; the memory 72 is used to store one or more programs; when the one or more programs are executed by the one or more processors 71, the one or more processors 71 implement the electronic signature method based on the DWF document as provided in the above embodiment. The input device 73, the output device 74, the memory 72 and the processor 71 can be connected by a bus or other means. Figure 7 The example of connecting through bus is taken in the following.
[0135] The processor 71 executes various functional applications and data processing of the device by running the software programs, instructions and modules stored in the memory 72, that is, realizes the above-mentioned electronic signature method based on the DWF document.
[0136] The electronic device provided above can be used to execute the electronic signature method based on the DWF document provided in the above embodiment, and has corresponding functions and beneficial effects.
[0137] In a fourth aspect, an embodiment of the present application also provides a computer-readable storage medium, which includes a stored computer program; wherein, when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the electronic signature method based on the DWF document as described above, and can achieve the same beneficial effects.
[0138] Of course, the storage medium containing computer executable instructions provided in the embodiment of the present application is not limited to the electronic signature method based on the DWF document as described above, and can also execute related operations in the electronic signature method based on the DWF document provided in any embodiment of the present application.
[0139] In a fifth aspect, the embodiments of the present application also provide a computer program product, and the methods described in the various embodiments of the present application can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer programs or instructions. When the computer program or instruction is loaded and executed on a computer, the process or function described in the various embodiments of the present application is executed in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, a network device, a user device, a core network device, an OAM (Open Application Model) or other programmable device.
[0140] The computer program or instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer program or instructions may be transmitted from one website, computer, server or data center to another website, computer, server or data center by wired or wireless means. The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or data center that integrates one or more available media. The available medium may be a magnetic medium, such as a floppy disk, a hard disk, or a magnetic tape; it may also be an optical medium, such as a digital video disk; it may also be a semiconductor medium, such as a solid-state drive. The computer-readable storage medium may be a volatile or non-volatile storage medium, or may include both volatile and non-volatile types of storage media.
[0141] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0142] In addition, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
[0143] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions for enabling an electronic device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0144] The above description is only an embodiment of the present application and is not intended to limit the scope of protection of the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the scope of protection of the present application. It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings.
[0145] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0146] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
Claims
1. An electronic signature method based on a DWF document, characterized in that: The method comprises: Convert the stamp image data into set graphic data and store it in the graphic directory of the DWF document; Generate binary summary information for DWF document files based on set operation rules; Create an electronic signature data structure for the DWF document and construct a data file related to the electronic signature; wherein the data file includes a signature protection information file; Performing a signature cryptographic operation on the signature protection information file to generate a signature result file; Construct a signature directory structure for the DWF document to store data files related to the electronic signature.
2. The electronic signature method based on DWF document according to claim 1, characterized in that: The data files related to electronic signatures also include: electronic signature list files and signature value files.
3. The electronic signature method based on DWF document according to claim 1, characterized in that: The generating of binary summary information for the DWF document file based on the set operation rules includes: DWF uses a container plus document method to describe and store data. The container is a virtual storage system that aggregates various data description files and provides corresponding access interfaces and data compression methods. The container function is implemented through ZIP files. For all files that need to be protected in the ZIP file of the DWF document, hash cryptographic operations are performed one by one to generate binary summary information.
4. The electronic signature method based on DWF document according to claim 1, characterized in that: After creating the electronic signature data structure of the DWF document and constructing the data file related to the electronic signature, the following steps are also included: The signature protection information file records the binary summary information of all files that need to be protected by the current signature, and the file contains the signature algorithm, signature time and signature result file path.
5. The electronic signature method based on DWF document according to claim 1, characterized in that: The step of converting the seal image data into setting graphic data and storing the data in the graphic directory of the DWF document includes: For the scenario of displaying seal images for electronic signatures, the seal image data is converted into streaming graphic data of a set format file and stored in the graphic directory of the DWF document; The node information and file reference information of the streaming graphic data are added in the editor under the graphic directory.
6. The electronic signature method based on DWF document according to claim 1, characterized in that: Also includes: Perform multiple electronic signature operations on DWF documents through electronic signature related data files.
7. The electronic signature method based on DWF document according to claim 1, characterized in that: The construction of the signature directory structure for the DWF document to store data files related to the electronic signature includes: Generate the root directory of the electronic signature storage and the storage directory of the one-time electronic signature related data in the root directory of the ZIP file of the DWF document; If there is a pre-existing storage root directory for the electronic signature, the storage root directory of the electronic signature is directly used; If the electronic signature storage root directory does not exist, create the electronic signature storage root directory; The signature protection information file of the electronic signature and the signature result file of the electronic signature are stored in the storage directory of the electronic signature related data; If there is no electronic signature list file in the storage root directory of the electronic signature, you need to construct a new file and add the signature protection information file, ID and operation type of the electronic signature of this signature to the electronic signature list file according to the electronic signature list file structure; If there is an electronic signature list file, directly append the signature protection information file, ID and operation type of the electronic signature for this signature.
8. An electronic signature device based on a DWF document, characterized in that: include: A graphics generation module is used to convert the seal image data into set graphics data and store it in the graphics directory of the DWF document; A summary generation module is used to generate binary summary information for the DWF document file based on the set operation rules; A file creation module is used to create an electronic signature data structure of a DWF document and construct a data file related to the electronic signature; wherein the data file includes a signature protection information file; The signature generation module is used to perform a signature cryptographic operation on the signature protection information file to generate a signature result file; The signature directory construction module is used to construct the signature directory structure for the DWF document and store data files related to the electronic signature.
9. An electronic device, characterized in that: include: A processor, a memory and a bus, wherein the processor is connected to the memory via the bus, and the memory stores computer-readable instructions. When the computer-readable instructions are executed by the processor, they are used to implement the electronic signature method based on a DWF document as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by the server, the electronic signature method based on the DWF document as described in any one of claims 1 to 7 is implemented.
11. A computer program product, characterized in that The computer program product comprises instructions which, when executed by a computer, cause the computer to implement the method according to any one of claims 1-7.