Form filling auxiliary method and system
A RESTful interface standardizes form filling operations across diverse PDFs, addressing inefficiencies and file corruption in tax service halls by integrating form assistance, stamping, and electronic signing, thus improving efficiency and reducing manual coding.
Patent Information
- Application Number
- CN202411957450.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-30
- Publication Date
- 2025-04-18
AI Technical Summary
Current tax service halls face inefficiencies in handling diverse PDF files for remote services, requiring manual code construction and risking file corruption when using PDF.js-dist, which hinders electronic signature integration.
A RESTful interface is provided to standardize the integration of a form filling system, enabling operations such as form assistance, stamping, and electronic signing through external device parameters, using Token, pdf save, form fill, actual width and height retrieval, and electronic signing interfaces.
This approach enhances form filling efficiency by standardizing operations across different PDFs, reducing manual coding and file corruption issues, and enabling seamless integration of electronic signatures.
Smart Images

Figure CN119849457A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of form filling assistance, and in particular to a form filling assistance method and system. Background Art
[0002] In the current environment, tax service halls in many places have multiple counters that can handle business remotely. However, the contents of the PDF files used are varied and there is no unified standard. Each PDF file needs to be rebuilt with code before it can be filled in, signed, and other operations, which consumes a lot of manpower and time. Directly connecting to the pdfjs-dist plug-in has the problem that the internal attributes of the file are damaged after editing and saving, resulting in the inability to write the electronic signature. In order to solve these problems encountered in PDF editing, a form filling function that can adapt to different PDFs is now needed. Summary of the invention
[0003] The purpose of the present invention is to provide a form filling assistance method and system, so as to provide a set of RESTful standard interface services for the integrated use of the counter form filling system, and implement the file parameters passed in by the external device inside the interface, obtain the corresponding file and perform a series of operations on the file, mainly including form filling, document stamping, electronic signature, etc.
[0004] In a first aspect, the present invention provides a form filling assistance method, which is implemented through an interface service platform, wherein the interface service platform includes a Token interface and a functional interface, wherein the functional interface includes a PDF saving interface, a form filling input interface, an interface for obtaining the actual width and height of a PDF file, a file stamping interface, and an electronic signature interface, wherein the method includes:
[0005] When the uploaded PDF file and the interface call request corresponding to this auxiliary task are obtained, the authentication information uploaded by the user is obtained through the Token interface, and it is determined whether the user has passed the authentication of calling the function interface according to the authentication information;
[0006] If the user passes the authentication of calling the functional interface, the corresponding interface service is entered according to the interface calling request, wherein the interface calling request includes calling at least one functional interface, and each functional interface corresponds to one interface service.
[0007] Furthermore, when the auxiliary task is to assist in editing and filling in a form, the interface request includes a PDF saving interface and a form filling input interface in sequence;
[0008] When the auxiliary task is to edit and stamp a form, the interface requests include the PDF saving interface, the form filling interface, the interface for obtaining the actual width and height of the PDF file, and the file stamping interface;
[0009] When the auxiliary task is the electronic signature of a form, the interfaces are requested in sequence: the pdf saving interface, the form filling interface, the interface for obtaining the actual width and height of the pdf file, and the electronic signature interface.
[0010] Furthermore, when the PDF saving interface is called, the corresponding interface service is:
[0011] The file access path is returned within a first preset time, and a form file stream is generated and stored in a local server.
[0012] When calling the form filling interface, the corresponding interface service is:
[0013] The file path and the modified text field name and value data returned by pdfjs-dist are passed in as parameters through the form filling interface, and the corresponding pdf file is found according to the file path;
[0014] Use Maven to integrate itextpdf, call the read and write methods inside itextpdf to write the value corresponding to the text field name in the key-value pair into the PDF file;
[0015] Furthermore, the method further comprises:
[0016] Access pdfjs-dist through iframe to render the incoming pdf file and generate an operable pdf module;
[0017] Adjust the text field element modification monitoring method of pdfjs-dist to store the name and value of each modified text field in the form of a key-value pair in the store;
[0018] Adjust the saving method of pdfjs-dist to: retrieve the modified text field name and value after this rendering from the store and pass them back to the external page.
[0019] Furthermore, when the interface for obtaining the actual width and height of a PDF file is called, the corresponding interface service is:
[0020] The interface uses the integrated pdfbox to obtain the rotation angle, width and height of each page of the pdf file;
[0021] If the rotation angle of the current page is the first preset angle or the second preset angle, the width and height are swapped.
[0022] Furthermore, when the file stamping interface is called, the corresponding interface service is:
[0023] Call the file stamping interface with the relative coordinates of the current page (Px, Py), the current page number, the PDF path, and the stamp image path as parameters;
[0024] The interface finds the corresponding page number of the PDF file according to the current page number and PDF path, and finds the image file to be embedded in the PDF file according to the stamp image path. All parameters are passed in according to the interface input specification through the PDFbox integrated by Maven to write image information to the PDF file to complete the embedding of the stamp image.
[0025] Furthermore, the method further comprises:
[0026] Integrate the vuedraggable control, which is used to nest the loaded stamp image and control its movement within the width and height of the parent node, and obtain its coordinate attributes (x, y) and width and height (w, h) relative to the parent node;
[0027] The pdfjs control is integrated, and the pdfjs control is used to convert the pdf file into image data, and display the image data with an image control, and then control the subscript switching of the image array with two button controls, wherein one button control is used to control the subscript switching to display the previous page of the pdf file, and the other button control is used to control the subscript switching to display the next page of the pdf file.
[0028] Furthermore, the step of obtaining the relative coordinates (Px, Py) of the current page includes:
[0029] Get the actual width and height (Cw, Ch) of each page of PDF and the width and height (Iw, Ih) of the current image control to calculate the ratio (Rw, Rh) of the actual width and height (Cw, Ch) and the width and height (Iw, Ih);
[0030] And according to the ratio (Rw, Rh), the relative coordinates (Px, Py) of the vuedraggable control relative to the current page of the pdf file are calculated.
[0031] Furthermore, when the electronic signature interface is called, the corresponding interface service is:
[0032] The electronic signature interface is called with the relative coordinates (Px, Py), the current page number, and the PDF path as parameters. The interface finds the corresponding page number of the corresponding PDF file based on the current page number and the PDF path, and reads the certificate file information.
[0033] Through the pdfbox integrated with Maven, all parameters are passed into the pdf file and the electronic signature is written.
[0034] In a second aspect, the present invention provides a form filling auxiliary system, the system includes an interface service platform, the interface service platform includes a Token interface and a functional interface, the functional interface includes a PDF saving interface, a form filling input interface, an interface for obtaining the actual width and height of a PDF file, a file stamping interface, and an electronic signature interface, the system also includes:
[0035] The authentication module is used to obtain the authentication information uploaded by the user through the Token interface when the uploaded PDF file and the interface call request corresponding to the auxiliary task are obtained, and determine whether the user has passed the authentication of calling the function interface according to the authentication information;
[0036] The interface service module is used to enter the corresponding interface service according to the interface call request if the user passes the authentication of calling the functional interface. The interface call request includes the call of at least one functional interface, and each functional interface corresponds to an interface service.
[0037] In a third aspect, the present invention provides a storage medium, wherein the storage medium stores one or more programs, which, when executed by a processor, implement the above-mentioned form filling assistance method.
[0038] In a fourth aspect, the present invention provides an electronic device, the electronic device comprising a memory and a processor, wherein:
[0039] The memory is used to store computer programs;
[0040] When the processor is used to execute the computer program stored in the memory, the above-mentioned form filling auxiliary method is implemented.
[0041] Compared with the prior art, the present invention has the following advantages:
[0042] 1. By providing a set of RESTful standard interface services for the counter form filling system to be integrated, the interface implements the file parameters passed in through external devices, obtains the corresponding files and performs a series of operations on the files, mainly including form filling, document stamping, electronic signature, etc., thereby greatly improving the efficiency of form filling and being applicable to the form filling function of different PDFs.
[0043] 2. Through the integrated pdfjs, a set of rendering standards for pdf files is provided, which can render the correct text fields and images for filling operations for different pdfs, without the need to write code in the background for each pdf before it can be put into use.
[0044] 3. After editing the PDF with the pdfjs plug-in, you need to use its own download to get the PDF, and the downloaded PDF will be damaged. By modifying the download of the pdfjs plug-in, the key-value pair of the edited text field name-value is passed to the background, and the background is written through the inherited pdfbox to obtain the purpose of the edited PDF. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 A flowchart of a form filling assistance method proposed in one embodiment of the present invention;
[0046] Figure 2 This is an overall framework diagram of a form filling auxiliary method proposed in one embodiment of the present invention;
[0047] Figure 3 A schematic diagram of the structure of a form filling assistance system proposed in one embodiment of the present invention.
[0048] The following specific implementation manner will further illustrate the present invention in conjunction with the above-mentioned drawings. DETAILED DESCRIPTION
[0049] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention. Unless otherwise defined, the technical terms or scientific terms used herein should be understood by people with general skills in the field to which the present invention belongs. "Including" and similar words used in this article mean that the elements or objects appearing before the word include the elements or objects listed after the word and their equivalents, without excluding other elements or objects.
[0050] like Figure 1 and Figure 2 As shown, an embodiment of the present invention provides a form filling assistance method, which is implemented through an interface service platform, the interface service platform includes a Token interface and a functional interface, the functional interface includes a PDF saving interface, a form filling input interface, an interface for obtaining the actual width and height of the PDF file, a file stamping interface, and an electronic signature interface, the method includes steps S101 to S102, wherein:
[0051] Step S101: when the uploaded PDF file and the interface call request corresponding to the current auxiliary task are obtained, the authentication information uploaded by the user is obtained through the Token interface, and it is determined whether the user has passed the authentication of calling the function interface according to the authentication information;
[0052] It should be noted that when calling a functional interface, you need to obtain a Token successfully before you can make subsequent calls to other interfaces, that is, you need to pass it carefully. The authentication information mainly includes appId, user name, password, timestamp and other information. When the authentication information is verified, you can call other functional interfaces. If the verification fails, you cannot call other interfaces.
[0053] In some embodiments, the specific process of obtaining a Token is as follows: first, the encrypted string parameter (authentication information) passed in by the user is obtained through the token interface. The first three parameters are provided by the interface provider, mainly appId+user name+password+timestamp (for example: 21106043100-GZ001-PWD00889-1669799637114) and RSA algorithm data encryption and decryption are performed through an agreed unified encryption and decryption key; then the obtained parameters are decrypted by the RSA algorithm, and the timestamp data is verified. If the verification fails, the process is terminated. If the verification passes, the appId, user name, and password are entered into the database for matching. If the same user name and password are matched in the database, the three parameters are used to create a token and store it in the Redis cache and then returned to the user. If the same user name and password are not matched, the authentication fails and the interface call process is terminated.
[0054] In addition, it should be noted that the function interface to be called is determined according to the auxiliary task. In some embodiments, when the auxiliary task is to edit and fill in the auxiliary form, the interface request includes a PDF saving interface and a form filling interface in sequence;
[0055] When the auxiliary task is to edit and stamp a form, the interface requests include the PDF saving interface, the form filling interface, the interface for obtaining the actual width and height of the PDF file, and the file stamping interface;
[0056] When the auxiliary task is the electronic signature of a form, the interfaces are requested in sequence: the pdf saving interface, the form filling interface, the interface for obtaining the actual width and height of the pdf file, and the electronic signature interface.
[0057] Step S102: If the user passes the authentication of calling the functional interface, the corresponding interface service is entered according to the interface calling request, wherein the interface calling request includes calling at least one functional interface, and each functional interface corresponds to one interface service.
[0058] It should be noted that after the auxiliary tasks are determined, the order of the called interfaces and interface services is determined immediately. The following is a detailed description of various interface services:
[0059] 1. When calling the PDF saving interface, the specific process is as follows:
[0060] Step 1: Execute the process of obtaining an access token.
[0061] Step 2: Get the Token passed by the user through the Access Token interface, first check whether the Token is valid, if the check fails, terminate the process, if the check passes, call the PDF save interface to store the file stream to the local server, and return the path to the front end within the first preset time for subsequent use. The first preset time is set to respond in time so that the file path can be returned in a shorter time.
[0062] 2. Call the form to fill in the interface, that is, write data information to the PDF file. The specific process is as follows:
[0063] Step 1. Follow the procedure in step 1.1 to obtain the access token.
[0064] Step 2. Get the Token passed by the user by obtaining the access Token interface (1.1). First check whether the Token is valid. If the check fails, terminate the process. If the check passes, call the form filling interface to pass in the file path and the modified text field name and value data returned by pdfjs-dist as parameters. The interface finds the corresponding PDF file according to the file path, and uses Maven to integrate itextpdf to write the corresponding value into the document according to the text field name, so as to avoid the internal attribute error of the PDF file caused by directly saving with pdfjs-dist.
[0065] In addition, the prerequisites need to be set: the front end accesses pdfjs-dist through iframe to render the incoming pdf file to generate an operational pdf module, modifies the modification method of the text field element monitoring of pdfjs-dist, so that the text field name and value after each modification are stored in the store in the form of key-value, and modifies the saving method of pdfjs-dist so that it changes from the original direct pop-up download save box to taking out the modified text field name and value after this rendering from the store, and passing it back to the external page for subsequent use.
[0066] 3. Call the interface to obtain the actual width and height of the PDF file. The specific process is as follows:
[0067] Step 1: Execute the process of obtaining an access token.
[0068] Step 2. Get the Token passed in by the user by getting the access Token interface. First check whether the Token is valid. If the check fails, terminate the process. If the check passes, call the interface for getting the actual width and height of the PDF file. Internally, use the integrated PDFbox to get the rotation angle and specific width and height of each page of the PDF file. If the rotation angle is 90° (the first preset angle) or 270° (the second preset angle), swap the width and height (ignoring this step will cause the final calculated coordinates to swap the horizontal and vertical coordinates). Finally, return the array (width and height data of each page) to the front end for subsequent use.
[0069] 4. Call the file stamping interface, that is, embed the stamp image. The specific process is as follows:
[0070] Step 1: Execute the process of obtaining an access token.
[0071] Step 2. Get the Token passed in by the user by obtaining the access Token interface, first verify whether the Token is valid, if the verification fails, terminate the process, if the verification passes, take the relative coordinates (Px, Py), current page number, PDF path, and stamp image path calculated in the prerequisite as parameters to call the file stamp interface, inside the interface, first find the corresponding page number of the corresponding PDF file through the current page number and PDF path, find the image file to be embedded in the PDF file through the stamp image path, and then call the pdfbox integrated by Maven to pass these parameters according to its interface input parameters to write image information to the PDF file, and complete the embedding of the stamp image.
[0072] In addition, the prerequisites need to be set: the front-end integrates the vuedraggable control, which can be moved within a specified range and can be freely dragged to change its width and height. The control is used to nest and load the stamp image and control the movement within the width and height of the parent node. The control can obtain its coordinate attributes (x, y) and width and height (w, h) relative to the parent node in real time. The front-end also needs to integrate the pdfjs control, which is used to convert the pdf file into specific image data (array), and display the image data array with an image control (the default display sequence is 0 elements). Use two button controls to control the subscript switching of the image array to achieve the effect of displaying the previous and next pages of the pdf.
[0073] Embed the vuedraggable control under the same parent node (which can be a div) to display the stamp image and the pdf image displayed by the image. The parent node needs to have the same width and height as the image to control the vuedraggable control not to exceed the width and height range of the image. Call the interface (1.4) to obtain the actual width and height of the pdf file to obtain the actual width and height of each page of the pdf, calculate the ratio of the width and height (Iw, Ih) of the current image control to the width and height (Cw, Ch) of the current page returned by the interface (Rw = Cw / Iw, Rh = Ch / Ih), calculate the current coordinates (x, y) of the vuedraggable to the coordinates of the actual pdf page according to the ratio (Px = x*Rw, Py = y*Rh), and use the last calculated relative coordinates (Px, Py), the current page number, the pdf path, and the stamp image path as parameters for use.
[0074] 5. Call the electronic signature interface, that is, write the electronic signature. The specific process is as follows:
[0075] Step 1: Execute the process of obtaining an access token.
[0076] Step 2. Get the Token passed in by the user by getting the access Token interface, first verify whether the Token is valid, if the verification fails, terminate the process, if the verification passes, call the electronic signature interface with the relative coordinates (Px, Py), current page number, and PDF path calculated in the prerequisite as parameters. The interface first finds the corresponding page number of the corresponding PDF file through the current page number and PDF path, reads the certificate file information, and then calls the PDFbox integrated by Maven to pass these parameters to write the electronic signature to the PDF file, completing the writing of the electronic signature.
[0077] In addition, prerequisites need to be set: the front-end processes the prerequisites of the file stamping interface (the stamped image is replaced with an example image of an electronic signature), the background needs to prepare the certificate file (pfx) and the corresponding key file (pin), and use the last calculated relative coordinates (Px, Py), current page number, and pdf path as parameters for use.
[0078] Compared with the prior art, the embodiments of the present invention have the following advantages:
[0079] 1. By providing a set of RESTful standard interface services for the counter form filling system to be integrated, the interface implements the file parameters passed in through external devices, obtains the corresponding files and performs a series of operations on the files, mainly including form filling, document stamping, electronic signature, etc., thereby greatly improving the efficiency of form filling and being applicable to the form filling function of different PDFs.
[0080] 2. Through the integrated pdfjs, a set of rendering standards for pdf files is provided, which can render the correct text fields and images for filling operations for different pdfs, without the need to write code in the background for each pdf before it can be put into use.
[0081] 3. After editing the PDF with the pdfjs plug-in, you need to use its own download to get the PDF, and the downloaded PDF will be damaged. By modifying the download of the pdfjs plug-in, the key-value pair of the edited text field name-value is passed to the background, and the background is written through the inherited pdfbox to obtain the purpose of the edited PDF.
[0082] like Figure 3 As shown, an embodiment of the present invention further provides a form filling assistance system, the system includes an interface service platform, the interface service platform includes a Token interface and a functional interface, the functional interface includes a PDF saving interface, a form filling input interface, an interface for obtaining the actual width and height of a PDF file, a file stamping interface, and an electronic signature interface, the system also includes:
[0083] The authentication module 10 is used to obtain the authentication information uploaded by the user through the Token interface when the uploaded PDF file and the interface call request corresponding to the current auxiliary task are obtained, and determine whether the user has passed the authentication of calling the function interface according to the authentication information;
[0084] The interface service module 20 is used to enter the corresponding interface service according to the interface calling request if the user passes the authentication of calling the functional interface. The interface calling request includes the calling of at least one functional interface, and each functional interface corresponds to an interface service.
[0085] Furthermore, in some embodiments, the system further comprises:
[0086] The front-end module is used to access pdfjs-dist through iframe to render the incoming pdf file and generate an operable pdf module;
[0087] Adjust the text field element modification monitoring method of pdfjs-dist to store the name and value of each modified text field in the form of a key-value pair in the store;
[0088] Adjust the saving method of pdfjs-dist to: retrieve the modified text field name and value after this rendering from the store and pass them back to the external page.
[0089] Furthermore, the front-end module is also used for:
[0090] Integrate the vuedraggable control, which is used to nest the loaded stamp image and control its movement within the width and height of the parent node, and obtain its coordinate attributes (x, y) and width and height (w, h) relative to the parent node;
[0091] The pdfjs control is integrated, and the pdfjs control is used to convert the pdf file into image data, and display the image data with an image control, and then control the subscript switching of the image array with two button controls, wherein one button control is used to control the subscript switching to display the previous page of the pdf file, and the other button control is used to control the subscript switching to display the next page of the pdf file.
[0092] Another aspect of the present invention further provides a storage medium on which one or more programs are stored, and when the programs are executed by a processor, the above-mentioned form filling auxiliary method is implemented.
[0093] Another aspect of the present invention further provides an electronic device, comprising a memory and a processor, wherein the memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory to implement the above-mentioned form filling auxiliary method.
[0094] Those skilled in the art will appreciate that the logic and / or steps represented in the flowchart or otherwise described herein, for example, may be considered as an ordered list of executable instructions for implementing logical functions, and may be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in conjunction with such instruction execution systems, devices or apparatuses. For purposes of this specification, "computer-readable medium" may be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in conjunction with such instruction execution systems, devices or apparatuses.
[0095] More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be a paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering or, if necessary, processing in another suitable manner, and then stored in a computer memory.
[0096] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or a combination thereof: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0097] Although the embodiments of the present invention are described in detail above, it is obvious to those skilled in the art that various modifications and variations can be made to these embodiments. However, it should be understood that such modifications and variations are within the scope and spirit of the present invention as described in the claims. Moreover, the present invention described herein may have other embodiments and may be implemented or realized in a variety of ways.
Claims
1. A form filling auxiliary method, characterized in that: The method is implemented through an interface service platform, which includes a Token interface and a functional interface. The functional interface includes a PDF saving interface, a form filling interface, an interface for obtaining the actual width and height of a PDF file, a file stamping interface, and an electronic signature interface. The method includes: When the uploaded PDF file and the interface call request corresponding to this auxiliary task are obtained, the authentication information uploaded by the user is obtained through the Token interface, and it is determined whether the user has passed the authentication of calling the function interface according to the authentication information; If the user passes the authentication of calling the functional interface, the corresponding interface service is entered according to the interface calling request, wherein the interface calling request includes calling at least one functional interface, and each functional interface corresponds to one interface service.
2. The form filling auxiliary method according to claim 1, characterized in that: When the auxiliary task is to assist in the editing and filling of the form, the interface request includes the PDF saving interface and the form filling input interface in sequence; When the auxiliary task is to edit and stamp a form, the interface requests include the PDF saving interface, the form filling interface, the interface for obtaining the actual width and height of the PDF file, and the file stamping interface; When the auxiliary task is the electronic signature of a form, the interfaces are requested in sequence: the pdf saving interface, the form filling interface, the interface for obtaining the actual width and height of the pdf file, and the electronic signature interface.
3. The form filling auxiliary method according to claim 2, characterized in that: When calling the PDF saving interface, the corresponding interface service is: The file access path is returned within a first preset time, and a form file stream is generated and stored in a local server. When calling the form filling interface, the corresponding interface service is: The file path and the modified text field name and value data returned by pdfjs-dist are passed in as parameters through the form filling interface, and the corresponding pdf file is found according to the file path; Use Maven to integrate itextpdf, and call the read and write methods inside itextpdf to write the value corresponding to the text field name in the key-value pair into the PDF file.
4. The form filling auxiliary method according to claim 3, characterized in that: The method further comprises: Access pdfjs-dist through iframe to render the incoming pdf file and generate an operable pdf module; Adjust the text field element modification monitoring method of pdfjs-dist to store the name and value of each modified text field in the form of a key-value pair in the store; Adjust the saving method of pdfjs-dist to: retrieve the modified text field name and value after this rendering from the store and pass them back to the external page.
5. The form filling auxiliary method according to claim 2, characterized in that: When calling the interface for obtaining the actual width and height of a PDF file, the corresponding interface service is: The interface uses the integrated pdfbox to obtain the rotation angle, width and height of each page of the pdf file; If the rotation angle of the current page is the first preset angle or the second preset angle, the width and height are swapped.
6. The form filling auxiliary method according to claim 2, characterized in that: When calling the file stamping interface, the corresponding interface service is: Call the file stamping interface with the relative coordinates of the current page (Px, Py), the current page number, the PDF path, and the stamp image path as parameters; The interface finds the corresponding page number of the PDF file according to the current page number and PDF path, and finds the image file to be embedded in the PDF file according to the stamp image path. All parameters are passed in according to the interface input specification through the PDFbox integrated by Maven to write image information to the PDF file to complete the embedding of the stamp image.
7. The form filling auxiliary method according to claim 6, characterized in that: The method further comprises: Integrate the vuedraggable control, which is used to nest the loaded stamp image and control its movement within the width and height of the parent node, and obtain its coordinate attributes (x, y) and width and height (w, h) relative to the parent node; The pdfjs control is integrated, and the pdfjs control is used to convert the pdf file into image data, and display the image data with an image control, and then control the subscript switching of the image array with two button controls, wherein one button control is used to control the subscript switching to display the previous page of the pdf file, and the other button control is used to control the subscript switching to display the next page of the pdf file.
8. The form filling auxiliary method according to claim 7, characterized in that: The steps of obtaining the relative coordinates (Px, Py) of the current page include: Get the actual width and height (Cw, Ch) of each page of PDF and the width and height (Iw, Ih) of the current image control to calculate the ratio (Rw, Rh) of the actual width and height (Cw, Ch) and the width and height (Iw, Ih); And according to the ratio (Rw, Rh), the relative coordinates (Px, Py) of the vuedraggable control relative to the current page of the pdf file are calculated.
9. The form filling assistance method according to claim 2, characterized in that: When calling the electronic signature interface, the corresponding interface service is: The electronic signature interface is called with the relative coordinates (Px, Py), the current page number, and the PDF path as parameters. The interface finds the corresponding page number of the corresponding PDF file based on the current page number and the PDF path, and reads the certificate file information. Through the pdfbox integrated with Maven, all parameters are passed into the pdf file and the electronic signature is written.
10. A form filling auxiliary system, characterized in that: The system includes an interface service platform, which includes a Token interface and a functional interface, wherein the functional interface includes a PDF saving interface, a form filling interface, an interface for obtaining the actual width and height of a PDF file, a file stamping interface, and an electronic signature interface. The system also includes: The authentication module is used to obtain the authentication information uploaded by the user through the Token interface when the uploaded PDF file and the interface call request corresponding to the auxiliary task are obtained, and determine whether the user has passed the authentication of calling the function interface according to the authentication information; The interface service module is used to enter the corresponding interface service according to the interface call request if the user passes the authentication of calling the functional interface. The interface call request includes the call of at least one functional interface, and each functional interface corresponds to an interface service.