Secure systems and methods for interacting with dynamic form data in portable documents

The system uses a trusted folder on the server to load scripts for a reader application, enabling secure and efficient data insertion and extraction in reflowable PDF documents, addressing the limitations of existing PDF automation software and GUI automation methods.

US12818108B1Active Publication Date: 2026-12-01CGP TECHNOLOGIES LLC
View PDF 19 Cites 0 Cited by

Patent Information

Application Number
US18/798161
Authority / Receiving Office
US · United States
Patent Type
Patents(United States)
Current Assignee / Owner
Priority Date
2023-08-08
Filing Date
2024-08-08
Publication Date
2026-12-01
Estimated Expiration
2045-05-15

AI Technical Summary

Technical Problem

Existing PDF automation software struggles to programmatically interact with form data in XFA PDF documents due to security restrictions, leading to limited support and loss of functionality when converting to Acroforms, and existing GUI automation methods are cumbersome and unreliable for reflowable PDFs with variable formfields.

Method used

A system and method that utilizes a trusted folder on the server to load scripts for a reader application, allowing secure insertion and extraction of data into and from portable documents by using fixed-name files and scripting language extensions, bypassing the need for administrative privileges and avoiding security risks.

Benefits of technology

Enables efficient and secure insertion and extraction of data into and from reflowable PDF documents without compromising security, overcoming the limitations of existing technologies and maintaining document integrity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure US12818108-D00000_ABST
    Figure US12818108-D00000_ABST
Patent Text Reader

Abstract

The present invention involves methods and systems for programmatically interacting with form data inside portable documents where programmatic access has been disabled or limited due to security concerns while maintaining security for the end-user.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application claims priority to U.S. Provisional Application No. 63 / 518,105 filed Aug. 8, 2023, the subject matter of which is incorporated by reference herein in its entirety.BACKGROUND

[0002] Portable document format (PDF) documents provide a reliable way to present and share information that does not depend on the machine being used by the user. PDF documents can incorporate forms that allow users to enter data into the document and store the data for later retrieval. The original PDF-based fillable forms are called Acroforms based on the PDF architecture, which was released in 1997. Form data for Acroform PDFs can be stored in simple key / value pairs and the native format for such data is called a Forms Data Format (FDF). Another related format is XML-based Forms Data Format (XFDF) which also contains key / value data.

[0003] A number of different software platforms exist for developing PDF documents with Acroforms, including Foxit PhantomPDF, Adobe Acrobat, Nitro Pro, Nuance Power PDF, etc. The form data is accessible and can be imported and exported programmatically using open-source packages such as the Python package, PyPDF4. The fields in Acroforms are static and cannot be dynamically enlarged or reduced. Although XML is capable of representing variable nested data, Acroform PDF documents are incapable of utilizing variable nested data due to the static nature of the forms architecture.

[0004] The ability to reflow PDF documents and include dynamic forms was introduced with the XML Forms Architecture (“XFA”), which is an open, public specification that defines how a form will appear and act in an XML environment. See http: / / www.w3.org / 1999 / 05 / XFA / xfa-template.html for details of XFA. The data in these XFA-based PDF documents can be imported and exported in standard XML format, which is capable of representing nested data and supporting dynamic form creation. Often these forms include security restrictions that prevent the above-mentioned third party software packages from interacting with these documents programmatically.

[0005] These deficiencies among others have led vendors that provide PDF automation software to abandon efforts to support XFA PDF documents. For example, Apryse Docs has indicated that it currently offers very limited support for XFA (i.e., Adobe LiveCycle) forms. See “Does the Apryse SDK support XFA / LifeCycle PDF forms?,” available at https: / / docs.apryse.com / documentation / web / faq / xfa-lifecycle-support / (accessed Aug. 6, 2023). Foxit states that content flow is overrated, acknowledges that JavaScript support for XFA documents is limited, and recommends a number of tools that can be used to convert XFA to Acroforms. See “Acroforms vs. XFA Forms,” FOXITBLOG (Jun. 7, 2019), available at https: / / www.foxit.com / blog / acroforms-vs-xfa-forms / (accessed Aug. 6, 2023). Converting an XFA form to an Acroform results in a loss of functionality.

[0006] There is a need for systems and methods of programmatically interacting with form data inside portable documents where programmatic access has been disabled or limited due to security concerns while maintaining the same level of security for the end-user.SUMMARY OF THE INVENTION

[0007] The present invention relates to systems, methods, and computer readable media capable of implementing those methods for interacting with formfields and data in portable documents while maintaining security and other advanced features of the documents for the client. In one aspect, the invention relates to methods of for inserting data into a formfield of a portable document file. In another aspect, extracting data from a formfield of a portable document file.

[0008] In one aspect, the invention relates to a system capable of insertion of data into the formfields of a portable document, the server including a processor, memory, and a file system, the file system comprising a trusted folder; a loading script residing in the trusted folder; a reader application, the reader application residing on the server and configured to display the contents of the portable document file; and a program in the memory, wherein execution of the program by the processor configures the server to perform functions, including functions to: (a) after receiving a request including data to be inserted into the formfield of the portable document file, save the data in a first location on the file system of the server; (b) open the reader application, the reader application having one or more scripting language extensions, wherein the reader application is configured to execute the loading script upon opening, wherein upon opening of the reader application, the loading script causes the reader application to: (i) execute a file-open method and pass a first document path pointing to a location of the portable document file on the file system to the file-open method thereby associating the portable document file with a document object of the reader application; (ii) execute a data-import method on the document object and pass a second document path pointing to the first location on the file system to the data-import method thereby importing data from the datafile into the document object; and (iii) execute a file-save method on the document object thereby saving the document object to a second portable document file; and (c) send a response to the request, the response comprising the second portable document file which comprises at least one formfield populated with data from the request.

[0009] In one aspect, the invention relates to methods and non-transitory computer-readable medium storing program code which, when executed, is operative to cause an electronic processor to execute methods for inserting data to the formfields of a portable document. In this aspect, the methods comprise inserting data into a formfield of a portable document file, the method comprising: (a) after receiving a request on a server including data to be inserted into a formfield of the portable document file, saving the data in a first location on a file system of the server; (b) opening a reader application residing on the server and configured to display the contents of the portable document file, the reader application having one or more scripting language extensions, wherein the reader application is configured to execute a loading script upon opening, wherein upon opening of the reader application, the loading script causes the reader application to: (i) execute a file-open method and pass a first document path pointing to a location of the portable document file on the file system to the file-open method thereby associating the portable document file with a document object of the reader application; (ii) execute a data-import method on the document object and pass a second document path pointing to the first location on the file system to the data-import method thereby importing data from the datafile into the document object; and (iii) execute a file-save method on the document object thereby saving the document object to a second portable document file; (c) sending a response to the request, the response comprising the second portable document file which comprises at least one formfield populated with data from the request.

[0010] In one aspect, the invention relates to a system capable of extraction of data from the formfields of a portable document, the server including a processor, memory, and a file system, the file system comprising a trusted folder; a loading script residing in the trusted folder; a reader application, the reader application residing on the server and configured to display the contents of the portable document file; and a program in the memory, wherein execution of the program by the processor configures the server to perform functions, including functions to: (a) after receiving a request including a portable document file containing data to be extracted from on or more formfields of the portable document file, save the portable document file in a first location on the file system of the server; (b) open the reader application, the reader application having one or more scripting language extensions, wherein the reader application is configured to execute the loading script upon opening, wherein upon opening of the reader application, the loading script causes the reader application to: (i) execute a file-open method and pass a first document path pointing to a location of the portable document file on the file system to the file-open method thereby associating the portable document file with a document object of the reader application; and (ii) execute a data-export method on the document object and pass a second document path pointing to a second location on the file system to the data-export method thereby exporting data from the document object to a datafile at the second location on the file system; (c) send a response to the request, the response comprising the data file which comprises data retrieved from at least one formfield of the portable document file from the request.

[0011] In one aspect, the invention relates to methods and non-transitory computer-readable medium storing program code which, when executed, is operative to cause an electronic processor to execute methods for extracting data from the formfields of a portable document. In this aspect, the methods comprise (a) after receiving a request on a server including the portable document file containing data to be extracted from on or more formfields of the portable document file, saving the portable document file in a first location on a file system of the server; (b) opening a reader application residing on the server and configured to display the contents of the portable document file, the reader application having one or more scripting language extensions, wherein the reader application is configured to execute the loading script upon opening, wherein upon opening of the reader application, the loading script causes the reader application to: (i) execute a file-open method and pass a first document path pointing to a location of the portable document file on the file system to the file-open method thereby associating the portable document file with a document object of the reader application; and (ii) execute a data-export method on the document object and pass a second document path pointing to a second location on the file system to the data-export method thereby exporting data from the document object to a datafile at the second location on the file system; (c) sending a response to the request, the response comprising the data file which comprises data retrieved from at least one formfield of the portable document file from the request.BRIEF DESCRIPTION OF THE DRAWINGS

[0012] FIG. 1A shows a folder location for a trusted folder of a portable document reader application on a Windows operating system.

[0013] FIG. 1B shows an alert that is generated if anyone other than an administrative user attempts to conduct a file write operation on the trusted folder for the portable document reader application on a Windows operating system.

[0014] FIG. 2A depicts a system for filling client data into a portable document and returning the filled portable document file to the client according to an embodiment of the present invention.

[0015] FIG. 2B provides pseudocode showing the steps for implementing the file system operations for the system shown in FIG. 3A.

[0016] FIG. 2C provides a non-liming example of a script for the reader app of the system shown in FIG. 3A.

[0017] FIG. 3A depicts a system for obtaining client data from the fields of a portable document and returning the datafile to the client according to an embodiment of the present invention.

[0018] FIG. 3B provides pseudocode showing the steps for implementing the file system operations for the system shown in FIG. 3A.

[0019] FIG. 3C provides a non-liming example of a script for the reader app of the system shown in FIG. 3A.

[0020] FIG. 4 depicts a system for filling a client portable document with client data both received from the client and returning the filled portable document to the client according to an embodiment of the present invention.

[0021] FIG. 5 depicts a system for obtaining client data from the fields of a portable document and returning the datafile to the client according to an embodiment of the present invention.

[0022] FIG. 6 depicts a system for filling a library of portable documents with client data and returning an identified document to the client according to an embodiment of the present invention.

[0023] FIG. 7 provides a non-liming example of a script for the reader app that is capable of implementing several potential algorithms depending on the name of the files provided by the server file system algorithm.DETAILED DESCRIPTION

[0024] The reader devices for portable document files allow display of those files independent of the operating system, software and hardware on a users machine. Portable document format files (PDFs) have become popular due to this flexibility. Often portable documents include formfields that can be populated with data. In one common scenario, a provider of good or services makes forms available to its customers. The customers can then fill their data into the form, which is then submitted to the supplier and processed by the supplier.

[0025] There is a general desire to reduce redundancy in the entry of data into such forms, and therefore a desire to automate the entry of data into the form. For example, the user may desire to enter their data into a computer interface that then stores the data in a database. Once the data is available, it is desirable to programmatically insert the data into the form. When the form data of a given portable document is static, this is straight forward. There are several software packages that allow filling of Acroforms that includes static formfields. With the advent of reflowable PDF documents including provision of dynamic formfields introduced with the XML Forms Architecture (“XFA”), the ability to fill such forms has become more restrictive.

[0026] Reflowable PDF documents often include features that guide users to enter appropriate data by validating form entries or prompting the user to select features. A user can click a button to enlarge the number of fields in a form. This is often desirable since real world data can be deeply nested and variable. For example, listing the number of items owned by a person can vary greatly and it could be difficult to predict at the time a form is designed how many entries should be included in a particular table. The data in these reflowable PDF documents can be imported and exported in standard XML format (e.g., in the case of XFA forms), which is capable of representing nested data and supporting dynamic form creation.

[0027] Reflowable PDF documents can also include programmatic functionality by extending access to the objects of the documents by way of a scripting language, e.g., javascript. The scripts can be designed into the reflowable document at the time of its creation, and can be used to validate user data, expand or reduce the number of rows in a table, and / or provide calculations based on user inserted data. The PDF reader program includes functionality that can be accessed by these scripts, such as providing a user notification or requiring certain fields to be populated before the document can be saved.

[0028] Often these documents include security restrictions that prevent the above-mentioned third party software packages from interacting with these documents programmatically. These restrictions have arisen due to the need of the provider of the application reader software to protect its users from malicious attacks the vulnerability to which is enhanced by the added functionality of these documents. It has also resulted from the form designer placing restrictions on access to the document's objects such as formfields or methods of inserting data into the form (e.g., insert methods) and extracting data (e.g. extract methods) in the scripting software language embedded in the reader, such as Adobe javascript.

[0029] These deficiencies among others have led vendors that provide PDF automation software to abandon efforts to support XFA PDF documents. For example, Apryse Docs has indicated that it currently offers very limited support for XFA (i.e., Adobe LiveCycle) forms. See “Does the Apryse SDK support XFA / LifeCycle PDF forms?,” available at https: / / docs.apryse.com / documentation / web / faq / xfa-lifecycle-support / (accessed Aug. 6, 2023). Foxit states that content flow is overrated, acknowledges that javascript support for XFA documents is limited, and recommends a number of tools that can be used to convert XFA to Acroforms. See “Acroforms vs. XFA Forms,” FOXITBLOG (Jun. 7, 2019), available at https: / / www.foxit.com / blog / acroforms-vs-xfa-forms / (accessed Aug. 6, 2023). Converting an XFA form to an Acroform results in a loss of functionality.

[0030] Other potential standard software automation solutions such as graphical user interface automation have particular well-known disadvantages. Although almost always available to fill documents, these systems are cumbersome to program and unreliable in operation. These problems are exacerbated by reflowable PDFs with variable formfields. GUI automation is also often slow where documents with a large number of fields must be filled one field at a time. For many modern applications, these methods are impractical. The present invention in one aspect overcomes these shortcomings by increasing the efficiency with which certain portable documents can be filled with data, or data extracted from those documents without disabling security restrictions for the end user.

[0031] The present invention relates to systems, methods, and computer readable media capable of implementing those methods for interacting with formfields and data in portable documents while maintaining security and other advanced features of the documents for the user. In one aspect, the invention relates to methods of for inserting data into a formfield of a portable document file. In another aspect, the invention relates to methods of extracting data from a formfield of a portable document file. Although insertion and extraction of data from Acroforms that include static formfields is well know, those methods do not work for reflowable portable document files such as XFA pdf files.

[0032] The present invention relies on a feature of the reader application software that allow loading of scripts into the application on startup that are capable of executing in a privileged context. This privileged context is often referred to as folder-level context. The application is programmed to recognize a trusted folder where it will load only on startup each of the script files that are placed within this trusted folder. In the case of Adobe Acrobat, this folder is often located in a JavaScript folder, e.g. “C: \Program Files\Adobe\Acrobat DC\Acrobat\Javascripts.” In some examples, the system may include an “app” script folder and a “user” script folder, although the “user” script folder is less common due to the simple fact that the vast majority of users do not require a scripts folder.

[0033] The system in which the reader application is installed is configured to recognize the scripting folder. FIG. 1A. Due to security concerns arising from the possibility of malicious scripts being placed into the trusted folder, the system in which the reader application is installed typically restricts access to the trusted folder to those who possess administrator privileges on the system. FIG. 1 B. Even when a user has administrative privileges, any file operations occurring in the trusted folder results in a message pop up on the graphical user interface warning the user. The typical use case for the trusted script folder is to load into the reader application on startup scripts that provide customized functionality to the reader application. For example, if a user desires to have a custom menu bar that provides access to some of the methods or objects of the reader application, it is typical to include such scripts in the trusted script folder for the reader application.

[0034] One aspect of scripting languages associated with portable document reader applications is the lack of broad-based filesystem operations such as the ability to open a folder and read into memory a list of file objects present in the folder. Presumably these methods provide unnecessary risk for malicious scripts. For example, while Adobe Acrobat reader includes support for javascript, the filesystem operations are limited to opening specific files with defined paths on the system. Thus the JavaScript API associated with the reader application is limited relative to the standard scripting language.

[0035] In one aspect the present invention relates to systems and methods that work around these obstacles while providing reliable way to import and export data into portable document files that contain restrictions on programmatic access. For example, FIG. 2 illustrates an embodiment of the invention that allows secure insertion of data into a portable document file. In this case, a system 200 is provided for a client 205 to send a datafile 206 to a server 201. The data in the file is incorporated into a portable document file 212 and then returned from the server 201 to the client 205 as a document file 216 that includes the data populating the formfields of the document 216.

[0036] To accomplish this, the method includes the server 201 receiving the datafile 206 / 207 into the filesystem of the server. The datafile 206 / 207 may preferably be an xml file in either binary or text format. The client request represented by the arrow connecting files 206 and 207 may include only the file, but it may also include metadata about the file that can be used in constructing the filled document 216 returned to the client 205. Alternatively, the file may contain metadata in tags that are adapted to be separated from the data used to file the document file on the server. Either way, the server 201 may be adapted to receive metadata 209 into the memory of the system and / or stored onto the filesystem. The datafile is preferably then stored into a file with a fixed predetermined filename 208 on the filesystem 202. These steps are represented by the pseudocode shown in FIG. 2B.

[0037] The server 201 after receiving the datafile into the fix name file 208 may then launch the reader app 203. Upon launch, the reader app 203 is configured to execute script 204. A non-limiting example of javascript used to implement this is shown in FIG. 2C. The script 204 is present in a trusted folder of the filesystem 202 as noted above. The script opens a fixed name portable document file 212. The script 204 is configured to create an object 213 for the document file 212, and then execute a file import operation that points to the fix name data file 208. After loading the data from the fix name data file 208 into the object 213, the script executes a save operation that saves the object as a fixed name portable document file 214 that includes the data received from the client 205. At this point the server 201 may execute code to close the reader app 203. The server 201 then renames the fix name data doc file 214 on the filesystem 202 of the server 201. This may include receiving metadata about the file 206 received from the client 205.

[0038] This method has an advantage over others for filing documents with data received from a client 205 in that the script 204 by referencing only fix name files that are embedded into the script 204, allows the script 204 to execute a particular method on any files received by the server 201 without knowing the name or metadata included with the request containing the file. The server 201 strips the metadata away and provides the application script 204 raw files and a portable document 212 adapted to receive the data. This allows the method to be repeatably performed without incurring the overhead associated with modifying files in the trusted folder (which require administrative rights), or security concerns raised by allowing the system to have programmatic access to the trusted folder.

[0039] In the case of receiving data 206, it is not necessary that the request actually include a file, e.g., an xml file. The request can include any kind of structured data, such as a Json string, or python dictionary. In such cases, the server 201 must be configured to translate that data to a fixed name file 208 in a format that can be read by the reader app 203 using methods of the scripting language embedded in the reader program. For example, in the case of Adobe Acrobat, the “importXFAData( )” method. Because the method requires importing data into a file object within the reader app, the system must be capable of translating any data received into a form that can be consumed by the scripting language of the reader application 203.

[0040] The script 204 may include a series of scripts that are executed each time the reader app 203 is opened on the system 201. It is desirable that the script 204 be static over the operation of the server 201. This is because the script 204 exists in a trusted folder on the filesystem 202. Although it may be possible for the system 201 to construct a custom script that is designed to read the datafile 207 received into the filesystem 202, such process can introduce security concerns because it requires giving the program operation of the server 201 privileges to modify script 204 files in the trusted folder.

[0041] One way of allowing the server 201 to alter the behavior of the script 204 that is triggered on launch of the reader application 203 is to change the name of the fix name doc 212 present on a folder that is readable by the script 204. For example, the server upon reading the metadata 209 of the file 207 received from the client 205, may move a particular fix name document 212 into a location that can be read by the file-open method of the script 204. The script 204 may then systematically execute file-open methods that are escaped for errors if no file is found, but that trigger a further set of steps to occur when a fix-name file is provided into the location that is tried by each iteration of the script file 204. This allows the server to control the operation of the script 204 upon launch of the reader application 203 while avoiding security concerns associated with modifying scripts in the trusted folder used by the reader application 203. This approach may be advantageous because the reader app often limits the file-open method to opening files that are of type portable document, e.g., ‘pdf’ files. As such, controlling which document file is presented to the script can be used to control the behavior of the reader application 203 when it is launched.

[0042] In one aspect, the server 201 may be adapted to receive data files 206 / 207 with data that correspond to a large number of potential portable documents 212 to be filled. The server may determined which portable document should be filled based on the request and / or metadata 209 extracted from the file and / or request. Upon determining which document should be filled, the appropriate document is moved into the location of the fix name document 212, and the reader application 203 is opened thereby executing the script 204. The execution of the script results in creating the object 213 which is filled with data and then saved as file 204, which is then renamed to data document 215 and send back to the client as the data filled portable document file 216.

[0043] This operation is similar to that shown in FIG. 6 where the client 601 sends a request with datafile 603 to the server. The request makes clear that “doc A” is the one to be filled with the data. Upon reaching the server 602, the server determines that document A 604 residing on the server 602 is to be filled. The server moves doc A into a fix name file and moves the data to a fix name file, and then merges the data with the document and returns filled document 606 to the client 601.

[0044] In another embodiment, the script 204 can be configured to open a series of documents 212 presented (e.g., doc1, doc2, doc3, doc4, doc5) and load data files 208 (e.g., xml1, xml2, xml3, xml4, xml5) each time the reader app 203 is opened. These kind of batch operations may increase efficiency where repeated requests are received since the overhead of the launching of the reader app 203 does slow down the process if required for each file. In this sense, the system 201 may include a read buffer that requires a certain number of request before the reader app 203 launch is requested. Notably, the server 201 may include logic to associate each request with different document files 212, but then arrange the execution sequentially so that the correct data file 208 is associated with the correct portable document file 212.

[0045] In another aspect described in reference to FIG. 4, the client 401 sends to the sever 402 both data 403 and a portable document A 404 to be filled by the server 402. In this case, the server 402 save both the data 403 and the document 404 into fixed name files that can be read by the script provided in the trusted location. In this way, there is no need for the server to be able to determined which portable document file should be filled by the data. In this respect, this embodiment provides additional flexibility. This kind of function can be provided in a batch-like process described above.

[0046] As shown in FIG. 5, present methods and systems may also be implemented in a way that extracts data 505 from filled portable documents 503 received on a server 502 from the client 501. The document file 504 after extraction of the data 505 in this respect is simply deleted as shown by 504. The extracted data 505 is initially extracted in a form that is native to the portable document such as xml, fdf or xfdf. However, the data may be transformed into other forms such as json or python dictionary by the server 502 before being returned to the client 501.

[0047] The details of a particular data extraction method and system is shown in FIG. 3, where a server 301 extracts data from a data-filled portable document 306 and returns the data 312 to the client 305. In this embodiment, the data document 307 is received from the client 305 on the server 301. The data-filled document file 307 may saved onto the filesystem 302. In one aspet, metadata 309 may be extracted from the data-filled document file 307. The data-filled document file is then saved into a fix name data document file 308. These steps are represented by the pseudocode shown in FIG. 3B.

[0048] The server 301 then launches the reader application 303. Upon launch, the reader application 303 executes the script 304. A non-limiting example of javascript used to implement this is shown in FIG. 3C. The script includes the fix name data document 308 reference to open the data document file 308, and load the fix name data document file 308 into a file object 313 of the reader application 303. The script then executes a data-extract method on the file object 313 and the data is saved as a fixed name datafile 310 on the filesystem 302. The server 301 may then rename the fix name datafile 310 to a descriptive filename datafile 311. In one aspect, the description can relate to metadata 309 extracted from the request. The data 312 is then sent back to the client 305.

[0049] FIG. 7 shows a script that may be utilized in connection with the above systems that provides three different modes. Upon launch of the reader application, the script is executed and will provide different functions based on the name of the files provided by the server algorithm. In the case where multiple scripts are utilized it is important that the code execute without breaking if one of the filenames is not found. For example, in the case of FIG. 7, if the file XFApdf_file.pdf is not found in the designated path, then the algorithm proceeds to the XFDFpdf_file.pdf, and then to the XMLpdf_file.pdf file. This sequence is performed every time the reader application is opened. In this manner, any one of the algorithms shown by the systems of FIGS. 2-6 or a subset thereof can be designed to work with a single script that can handle differently named files for each algorithm.

[0050] Other embodiments and uses of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. While it is possible to disable the trusted status of a trusted folder, doing so introduces an unacceptable security risk. Allowing software on the system to have write access to a trusted folder also introduces undesirable security risks. Thus while it may be possible automate the filling of pdf files by introducing a custom script file for each portable document that is intended.

[0051] All references cited herein, including all U.S. and foreign patents and patent applications, are specifically and entirely hereby incorporated herein by reference. It is intended that the specification and examples be considered exemplary only, with the true scope and spirit of the invention indicated by the following claims.

Claims

1. A system for inserting data into a formfield of a portable document file comprising:a server including a processor, memory, and a file system, the file system comprising a trusted folder;a loading script residing in the trusted folder;a reader application, the reader application residing on the server and configured to display the contents of the portable document file; anda program in the memory, wherein execution of the program by the processor configures the server to perform functions, including functions to:a) after receiving a request including data to be inserted into the formfield of the portable document file, save the data in a first location on the file system of the server;b) open the reader application, the reader application having one or more scripting language extensions, wherein the reader application is configured to execute the loading script upon opening, wherein upon opening of the reader application, the loading script causes the reader application to:i. execute a file-open method and pass a first document path pointing to a location of the portable document file on the file system to the file-open method thereby associating the portable document file with a document object of the reader application, wherein upon opening the reader application the loading script provide different functions based on the name of the file provided by the server wherein the name of the file is predetermined;ii. execute a data-import method on the document object and pass a second document path pointing to the first location on the file system to the data-import method thereby importing data from the datafile into the document object; andiii. execute a file-save method on the document object thereby saving the document object to a second portable document file;c) send a response to the request, the response comprising the second portable document file which comprises at least one formfield populated with data from the request.

2. The system of claim 1, wherein write-access to the trusted folder requires elevated security privileges and the system when executing the program lacks write access to the trusted folder.

3. The system of claim 1, wherein the step a) of saving the data in a first location on the file system of the server further comprises naming the data file with a first predetermined filename.

4. The system of claim 3, wherein the step ii) of executing the data-import method includes referring to the first predetermined filename.

5. The system of claim 1, wherein the system is configured to name the portable document file with a second predetermined filename.

6. The system of claim 5, wherein the step i) of executing the file-open method includes referring to the second predetermined filename.

7. The system of claim 5, wherein the second predetermined filename includes information that identifies the type of data that can be received by the portable document file.

8. The system of claim 5, wherein the loading script provides instructions to the reader application to open two or more file paths, and the instructions instruct the reader to only execute steps (i) & (iii) if the portable document file having the matching filepath is successfully opened.

9. The system of claim 5, wherein the loading script attempts to open two or more file paths, and provides a mechanism that avoids causing the reader application to become unresponsive or to close when it attempts to open one or more paths where no file is located.

10. The system of claim 1, wherein the request further comprises the portable document file to be filled, and the system is configured to save the portable document and name the portable document file with a second predetermined filename.

11. A system for retrieving data from a formfield of a portable document file comprising:a server including a processor, memory, and a file system, the file system comprising a trusted folder;a loading script residing in the trusted folder;a reader application, the reader application residing on the server and configured to display the contents of the portable document file; anda program in the memory, wherein execution of the program by the processor configures the server to perform functions, including functions to:a) after receiving a request including a portable document file containing data to be extracted from on or more formfields of the portable document file, save the portable document file in a first location on the file system of the server;b) open the reader application, the reader application having one or more scripting language extensions, wherein the reader application is configured to execute the loading script upon opening, wherein upon opening of the reader application, the loading script causes the reader application to:i. execute a file-open method and pass a first document path pointing to a location of the portable document file on the file system to the file-open method thereby associating the portable document file with a document object of the reader application, wherein upon opening the reader application the loading script provide different functions based on the name of the file provided by the server wherein the name of the file is predetermined; andii. execute a data-export method on the document object and pass a second document path pointing to a second location on the file system to the data-export method thereby exporting data from the document object to a datafile at the second location on the file system;c) send a response to the request, the response comprising the data file which comprises data retrieved from at least one formfield of the portable document file from the request.

12. The system of claim 11, wherein write-access to the trusted folder requires elevated security privileges and the system when executing the program lacks write access to the trusted folder.

13. The system of claim 11, wherein the step a) of saving the portable document file in a first location on the file system of the server further comprises naming the portable document file with a first predetermined filename.

14. The system of claim 13, wherein the step ii) of executing the data-export method includes referring to the first predetermined filename.

15. The system of claim 13, wherein the first predetermined filename includes information that causes the loading script to execute a data export method on the portable document file.

16. The system of claim 11, wherein the loading script provides instructions to the reader application to open two or more file paths, and the instructions instruct the reader to only execute step (ii) if the portable document file having the matching filepath is successfully opened.

17. The system of claim 11, wherein the loading script attempts to open two or more file paths, and provides a mechanism that avoids causing the reader application to become unresponsive or to close when it attempts to open one or more paths where no file is located.

18. The system of claim 11, wherein the portable document file is an XFA document.

19. The system of claim 11, wherein the datafile is an xml document.

20. A method for extracting data from a formfield of a portable document file, the method comprising:a) after receiving a request on a server including the portable document file containing data to be extracted from on or more formfields of the portable document file, saving the portable document file in a first location on a file system of the server;b) opening a reader application residing on the server and configured to display the contents of the portable document file, the reader application having one or more scripting language extensions, wherein the reader application is configured to execute the loading script upon opening, wherein upon opening of the reader application, the loading script causes the reader application to:i. execute a file-open method and pass a first document path pointing to a location of the portable document file on the file system to the file-open method thereby associating the portable document file with a document object of the reader application, wherein upon opening the reader application the loading script provide different functions based on the name of the file provided by the server wherein the name of the file is predetermined; andii. execute a data-export method on the document object and pass a second document path pointing to a second location on the file system to the data-export method thereby exporting data from the document object to a datafile at the second location on the file system;c) sending a response to the request, the response comprising the data file which comprises data retrieved from at least one formfield of the portable document file from the request.

Citation Information

Patent Citations

  • Manipulation of PDF file content through HTTP requests

    US10506017B2

  • Systems and methods for extracting and combining XML files of an XFA document

    US11921783B1

  • Automated report building system

    US20040117731A1

  • Electronic statement preparation

    US20060041494A1

  • Method and apparatus for transacting legal documents

    US20060294002A1