Automatic archiving method for converting webpage into PDF (Portable Document Format) based on chromium

CN118820179APending Publication Date: 2024-10-22HENAN ZHONGYUAN CONSUMER FINANCE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411015067.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-26
Publication Date
2024-10-22

AI Technical Summary

Technical Problem

[0002]公司数字档案系统建设完成后,需要归档OA系统上大量的表单和流程记录,并且每月公司在OA系统上又会产生大量的新的单据和流程审批记录,这就需要管理员一个一个的在网页中将其打印成PDF,并且还要针对不同的单据配置打印模版,最后还要将PDF上传到数字档案系统,上述动作都需要人工去完成,导致耗费大量的人力和时间,且归档的效率以及准确性较低

Benefits of technology

[0008] According to the chromium-based webpage to PDF automatic archiving method of the present invention, every time a preset time point is reached, the unique identification of each file to be archived uploaded within the preset historical time period is obtained to obtain the unique identification list A of the files to be archived; according to A , generate the web page link corresponding to each unique identifier in A, to obtain the web page link list LA; according to A, determine the PDF template corresponding to each file to be archived, to obtain the PDF template list PA corresponding to A; use the default chromium command Access each web page link in LA, and convert the file to be archived corresponding to each web page link in LA into the corresponding PDF file to be archived, so as to obtain the list of PDF files to be archived DA corresponding to A; based on DA, create each file to be archived Archive the download link corresponding to the PDF file to obtain the download link list HA of PDF files to be archived; send HA and A to the default digital file system, so that the digital file system classifies and archives all files to be archived based on HA and A; Through the method of the present invention, there is no need to configure printing templates. The system automatically converts web pages of different files to be archived into PDF files, and there is no need to manually archive PDF files. Data transmission and matching archiving between systems are automatically performed, thereby reducing manpower and time. Save time and improve archiving efficiency and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118820179A_ABST
    Figure CN118820179A_ABST
Patent Text Reader

Abstract

The invention provides a webpage-to-PDF automatic archiving method based on chromium, and relates to the technical field of automatic archiving, the method comprises the following steps: obtaining a unique identifier of each to-be-archived file uploaded in a preset historical time period to obtain a unique identifier list A of the to-be-archived files; obtaining a webpage link list LA; determining a PDF template corresponding to each to-be-archived file to obtain a PDF template list PA corresponding to the A; converting a to-be-archived file corresponding to each webpage link in the LA into a corresponding to-be-archived PDF file to obtain a to-be-archived PDF file list DA corresponding to the A; establishing a download link corresponding to each PDF file to be archived to obtain a download link list HA of the PDF files to be archived; the HA and the A are sent to a preset digital archive system, and classified archiving is carried out; according to the method, the consumption of manpower and time can be reduced, and the filing efficiency and accuracy are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of automatic archiving, and in particular to a Chromium-based webpage-to-PDF automatic archiving method. Background Art

[0002] After the company's digital archive system is built, a large number of forms and process records on the OA system need to be archived, and every month the company will generate a large number of new documents and process approval records on the OA system. This requires the administrator to print them into PDF one by one on the web page, and configure printing templates for different documents. Finally, the PDF must be uploaded to the digital archive system. The above actions need to be completed manually, resulting in a lot of manpower and time consumption, and the efficiency and accuracy of archiving are low. Summary of the invention

[0003] In view of the above technical problems, the technical solution adopted by the present invention is: According to the first aspect of the present application, a method for automatically archiving a web page to PDF based on Chromium is provided, and the method comprises the following steps: S100, at each preset time point, obtaining a unique identifier of each file to be archived uploaded within a preset historical time period, so as to obtain a unique identifier list A of the files to be archived = (A 1 , A 2 , …, A i , …, A n ), i=1, 2,...,n; among them, A i is the unique identifier corresponding to the i-th file to be archived uploaded in the historical time period, and n is the number of files to be archived uploaded in the historical time period; S200, based on A, generate a web page link corresponding to each unique identifier in A to obtain a web page link list LA=(LA 1 , L.A. 2 , …, LA i , …, LA n ); where LA i A i The web link of the corresponding file to be archived; S300, according to A, determine the PDF template corresponding to each to-be-archived file, so as to obtain a PDF template list PA corresponding to A = (PA 1 , P.A. 2 , …, P A i , …, P A n ); Among them, PA i A i Corresponding PDF template; S400, using a preset chromium command to access each web link in LA, converting the to-be-archived file corresponding to each web link in LA into a corresponding to-be-archived PDF file, so as to obtain a to-be-archived PDF file list DA corresponding to A = (DA 1 , D.A. 2 , …, DA i , …, DA n ); where DA i A i The corresponding PDF file to be archived; DA i According to P.A. i Convert to get; S500: According to DA, a download link corresponding to each PDF file to be archived is established to obtain a list of download links of PDF files to be archived HA=(HA 1 , HA 2 ,…,HA i ,…,HA n ); Among them, HA i for DA i Corresponding download link; S600, sending HA and A to a preset digital archive system, so that the digital archive system classifies and archives all the files to be archived according to HA and A.

[0004] Further, step S300 includes the following steps: S310, obtaining the designated string corresponding to each unique identifier in A, so as to obtain a designated string list ZA corresponding to A=(ZA 1 , ZA 2 , …, ZA i , …, ZA n ); Among them, ZA i A i The corresponding specified string; the specified string corresponding to the unique identifier is the first m digits of the unique identifier; S320, traverse ZA, if ZA i If the name is the same as any PDF template in the preset PDF template table, it will be i The PDF template corresponding to the same PDF template name is determined as PA i .

[0005] Furthermore, D.A. i Obtained through the following steps: S410, Get LA i The information corresponding to each preset label in the file to be archived is obtained by i Corresponding tag information group list Q i =(Q i1, Q i 2, …, Q i j , …, Q i f(i) ), j = 1, 2, …, f (i); where Q i j For LA i The corresponding j-th label information group, f(i) is LA i The number of corresponding tag information groups; Q i j =(Q i j,1 , Q i j,2 );Q i j,1 For LA i The label in the corresponding j-th label information group, Q i j,2 For LA i The information corresponding to the label in the corresponding j-th label information group; S420, traverse Q i , if Q i j,1 With PA i If any label in Q is the same, i j,2 Fill in PA i Zhong and Q i j,1 The same label corresponds to the information box to get the DA i .

[0006] Further, step S600 includes the following steps: S610, after receiving HA and A, the digital archive system downloads each PDF file to be archived through HA to obtain a list of PDF files to be archived DA = (DA 1 , D.A. 2 , …, DA i , …, DA n ); S620, according to A, obtain the classification information corresponding to each PDF file to be archived, so as to obtain a classification information list FA=(FA 1 , F.A. 2 ,…,FA i ,…,FA n ); where FA i for DA i Corresponding classification information; FA i =(FA i,1 , F.A. i,2);FA i,1 for DA i Corresponding file type, FA i,2 for DA i The corresponding classification identifier; S630: Classify the PDF files to be archived corresponding to the classification information with the same file type and classification identifier in the FA into one category.

[0007] Furthermore, the files to be archived include documents and process records of preset types.

[0008] The Chromium-based webpage to PDF automatic archiving method of the present invention obtains the unique identification of each to-be-archived file uploaded within a preset historical time period at each preset time point to obtain a unique identification list A of the to-be-archived files; generates a webpage link corresponding to each unique identification in A according to A to obtain a webpage link list LA; determines a PDF template corresponding to each to-be-archived file according to A to obtain a PDF template list PA corresponding to A; uses a preset Chromium command to access each webpage link in LA, converts the to-be-archived file corresponding to each webpage link in LA into a corresponding to-be-archived PDF file to obtain a to-be-archived PDF file list DA corresponding to A; establishes a download link corresponding to each to-be-archived PDF file according to DA to obtain a to-be-archived PDF file download link list HA; sends HA and A to a preset digital archive system, so that the digital archive system classifies and archives all to-be-archived files according to HA and A; through the method of the present invention, there is no need to configure a printing template, the system automatically converts webpages of different to-be-archived files into PDF files, and there is no need to manually archive PDF files, and automatically performs data transmission and matching archiving between systems, thereby reducing the consumption of manpower and time and improving the efficiency and accuracy of archiving. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0010] Figure 1 The present invention provides a flowchart of a Chromium-based method for automatically archiving web pages to PDF. DETAILED DESCRIPTION

[0011] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only 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 those skilled in the art without creative work are within the scope of protection of the present invention.

[0012] It should be noted that, based on the present disclosure, those skilled in the art should understand that an aspect described herein can be implemented independently of any other aspect, and two or more of these aspects can be combined in various ways. For example, any number of aspects described herein can be used to implement a device and / or practice a method. In addition, other structures and / or functionalities other than one or more of the aspects described herein can be used to implement this device and / or practice this method.

[0013] In the description of this application specification and the appended claims, the terms "first", "second", "third", etc., are only used to distinguish the description and are not to be understood as indicating or implying relative importance, nor are they used to describe a specific order or sequence.

[0014] In the description of the present application specification and the appended claims, if the term "a memory stores a list of XX information LBi = (LB i 1 , L.B. i 2 , ..., LB i j , ..., LB i f(i) ), i=1, 2,..., n, j=1, 2,..., f(i); LB i j is the jth XX information in the i-th XX information list” and similar descriptions. It can be understood that the memory stores n XX information lists LB1, LB2, …, LBi …, LBn; and in the i-th XX information list LBi, there is LB i 1 , L.B. i 2 , ..., LB i j , ..., LB i f(i) These f(i) XX information.

[0015] It is worth noting that the "f(i)" used in the above description cannot be simply understood as a fixed value. Instead, it should be understood that the value of "f(i)" changes with the value of i. For example, if the value range of i is 1 to 2, "f(1)" may be equal to "f(2)" or may not be equal to "f(2)". That is, the number of XX information in different XX information lists may be the same or different, and is generally determined according to the actual application scenario. Other similar expressions such as "g(j)" should be understood in the same way and will not be elaborated on.

[0016] Furthermore, if the numbers or symbols in the above description are in the form of "superscripts" or "subscripts", the corresponding explanatory descriptions should be followed to understand them, and they should not be simply understood in terms of mathematical or physical concepts. For example, in the above description, "1, 2, ..., j, ..., f(i)" in the form of superscripts should be understood according to "LB i j The explanatory description of "is the jth XX information in the i-th XX information list" is to understand that "1, 2, ..., j, ..., f(i)" is only an identification value used to identify different XX information. i j "Understand as LB i to the jth power.

[0017] At the same time, in the above-mentioned form of description, both "n" and "f(i)" should be understood as natural numbers that are 1 or greater than 1, and the specific values ​​can be determined according to the actual application scenario.

[0018] Furthermore, in the description of the present application and the appended claims, if the symbol "=" appears together with "brackets", unless there is a specific limitation, "=" should be understood as "including". That is, the above description should be understood as XX information list LBi includes LB i 1 , L.B. i 2 , ..., LB i j , ..., LB i f(i) In actual implementation, technicians in the relevant technical field can add other information or data to LBi according to actual needs.

[0019] The following will refer to Figure 1 The flowchart of the Chromium-based automatic web page to PDF archiving method shown in the figure introduces a Chromium-based automatic web page to PDF archiving method.

[0020] The Chromium-based webpage to PDF automatic archiving method may include the following steps: S100, at each preset time point, obtaining a unique identifier of each file to be archived uploaded within a preset historical time period, so as to obtain a unique identifier list A of the files to be archived = (A 1 , A 2 , …, A i , …, A n ), i=1, 2,...,n; among them, A i is the unique identifier corresponding to the i-th file to be archived uploaded in the historical time period, and n is the number of files to be archived uploaded in the historical time period.

[0021] In this embodiment, the preset time point can be a fixed time of each month, for example, the preset time point is 21:00 on the 1st of each month; it can be understood that in the process of automated office, a large number of archived files will be generated within the preset historical time period, such as documents and process records, etc.; each file to be archived has a corresponding unique identifier, which can be a string of several digits; the unique identifier of each file to be archived can be obtained to obtain A.

[0022] S200, based on A, generate a web page link corresponding to each unique identifier in A to obtain a web page link list LA=(LA 1 , L.A. 2 , …, LA i , …, LA n ); where LA i A i The web link of the corresponding file to be archived.

[0023] In this embodiment, the files to be archived are all displayed in the form of web pages. Therefore, the web page link corresponding to each file to be archived can be obtained, thereby obtaining LA; it can be understood that there is a one-to-one mapping relationship between each web page link in LA and each unique identifier in A, and this mapping relationship can separately generate a unique identifier and web page link mapping table.

[0024] S300, according to A, determine the PDF template corresponding to each to-be-archived file, so as to obtain a PDF template list PA corresponding to A = (PA 1 , P.A. 2 , …, P A i , …, P A n ); Among them, PA i A i The corresponding PDF template.

[0025] In this embodiment, it should be noted that the files to be archived are displayed in the form of a web page, which not only contains the information corresponding to the files to be archived, but also contains other web page information. Therefore, corresponding PDF templates are required to convert PDF files for different types of files to be archived.

[0026] Further, step S300 may include the following steps: S310, obtaining the designated string corresponding to each unique identifier in A, so as to obtain a designated string list ZA corresponding to A=(ZA 1 , ZA 2 , …, ZA i , …, ZA n ); Among them, ZA i A i The corresponding specified string; the specified string corresponding to the unique identifier is the first m digits of the unique identifier.

[0027] In this embodiment, the first m characters of the unique identifier of the file to be archived are used to characterize the type of the file to be archived. For example, the first 3 characters of the string of the file to be archived are LCD, indicating that the file to be archived is a process record sheet. The first m characters of the string corresponding to the unique identifier of each file to be archived can be obtained to obtain ZA.

[0028] S320, traverse ZA, if ZA i If the name is the same as any PDF template in the preset PDF template table, it will be i The PDF template corresponding to the same PDF template name is determined as PA i .

[0029] In this embodiment, several types of PDF templates are preset to accommodate different types of files to be archived. Each type of PDF template is preset with a unique name. i If the name is the same as any PDF template in the preset PDF template table, it will be i The PDF template corresponding to the same PDF template name is determined as PA i .

[0030] S400, using a preset chromium command to access each web link in LA, converting the to-be-archived file corresponding to each web link in LA into a corresponding to-be-archived PDF file, so as to obtain a to-be-archived PDF file list DA corresponding to A = (DA 1 , D.A. 2 , …, DA i , …, DA n ); where DA i A i The corresponding PDF file to be archived; DAi According to P.A. i Converted.

[0031] Furthermore, D.A. i Obtained through the following steps: S410, Get LA i The information corresponding to each preset label in the file to be archived is obtained by i Corresponding tag information group list Q i =(Q i 1, Q i 2, …, Q i j , …, Q i f(i) ), j = 1, 2, …, f (i); where Q i j For LA i The corresponding j-th label information group, f(i) is LA i The number of corresponding tag information groups; Q i j =(Q i j,1 , Q i j,2 );Q i j,1 For LA i The label in the corresponding j-th label information group, Q i j,2 For LA i The information corresponding to the label in the corresponding j-th label information group.

[0032] S420, traverse Q i , if Q i j,1 With PA i If any label in Q is the same, i j,2 Fill in PA i Zhong and Q i j,1 The same label corresponds to the information box to get the DA i .

[0033] In this embodiment, for each file to be archived, the background data statistics are in the form of a label plus corresponding information, and the label can be understood as the information category in the document; and when establishing a PDF template, it will also be established according to the type of document, and the PDF template contains each label of the corresponding type of file to be archived; thereby, the same type of files to be archived can be converted into PDF files of the same form to facilitate subsequent classification and archiving.

[0034] S500: According to DA, a download link corresponding to each PDF file to be archived is established to obtain a list of download links of PDF files to be archived HA=(HA 1 , HA 2 ,…,HA i ,…,HA n ); Among them, HA i for DA i The corresponding download link.

[0035] In this embodiment, for each PDF file to be archived, it can be stored in a preset storage location, and a corresponding download link can be established to obtain HA.

[0036] S600, sending HA and A to a preset digital archive system, so that the digital archive system classifies and archives all the files to be archived according to HA and A.

[0037] In this embodiment, the above steps S100-S500 can be completed by the OA system. After the OA system completes the PDF conversion of the file to be archived and establishes a download link, the download link and the corresponding unique identifier are sent to the preset digital archive system, and the digital archive system classifies and archives the file to be archived.

[0038] Further, step S600 may include the following steps: S610, after receiving HA and A, the digital archive system downloads each PDF file to be archived through HA to obtain a list of PDF files to be archived DA = (DA 1 , D.A. 2 , …, DA i , …, DA n ).

[0039] S620, according to A, obtain the classification information corresponding to each PDF file to be archived, so as to obtain a classification information list FA=(FA 1 , F.A. 2 ,…,FA i ,…,FA n ); where FA i for DA i Corresponding classification information; FA i =(FA i,1 , F.A. i,2 );FA i,1 for DA i Corresponding file type, FA i,2 for DA i The corresponding classification identifier.

[0040] In this embodiment, the digital archive system can obtain the classification information corresponding to each file to be archived from the OA system according to the unique identifier corresponding to each archived file. The classification information includes the type of the file to be archived and the classification identifier. The classification identifier can be the specified string in the above steps.

[0041] S630: Classify the PDF files to be archived corresponding to the classification information with the same file type and classification identifier in the FA into one category.

[0042] In this embodiment, the file type and the classification identifier are used to simultaneously verify whether two files to be archived are of the same category, which can improve the accuracy of classification.

[0043] The Chromium-based web page to PDF automatic archiving method of the present embodiment obtains the unique identifier of each file to be archived uploaded within the preset historical time period at each preset time point to obtain a unique identifier list A of the files to be archived; based on A, a web page link corresponding to each unique identifier in A is generated to obtain a web page link list LA; based on A, a PDF template corresponding to each file to be archived is determined to obtain a PDF template list PA corresponding to A; each web page link in LA is accessed using a preset Chromium command, and the file to be archived corresponding to each web page link in LA is converted into a corresponding PDF file to be archived to obtain a PDF file list DA corresponding to A; based on DA, a download link corresponding to each PDF file to be archived is established to obtain a PDF file download link list HA to be archived; HA and A are sent to a preset digital archive system, so that the digital archive system classifies and archives all the files to be archived according to HA and A; through the method of the present invention, there is no need to configure a printing template, the system automatically converts web pages of different files to be archived into PDF files, and there is no need to manually archive PDF files, and data transmission and matching archiving between systems are automatically performed, thereby reducing the consumption of manpower and time and improving the efficiency and accuracy of archiving.

[0044] In addition, although the steps of the method in the present disclosure are described in a specific order in the drawings, this does not require or imply that the steps must be performed in this specific order, or that all the steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps, etc.

[0045] An embodiment of the present invention also provides a non-transitory computer-readable storage medium, which can be set in an electronic device to store at least one instruction or at least one program related to implementing a method in a method embodiment. The at least one instruction or the at least one program is loaded and executed by the processor to implement the method provided in the above embodiment.

[0046] The program product may adopt any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0047] Computer readable signal media may include data signals propagated in baseband or as part of a carrier wave, in which readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Readable signal media may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0048] The program code embodied on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the foregoing.

[0049] Program code for performing the operations of the present application may be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., using an Internet service provider to connect through the Internet).

[0050] An embodiment of the present invention further provides an electronic device, comprising a processor and the aforementioned non-transitory computer-readable storage medium.

[0051] The electronic device is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0052] The electronic device is presented in the form of a general-purpose computing device. The components of the electronic device may include, but are not limited to: the at least one processor mentioned above, the at least one memory mentioned above, and a bus connecting different system components (including the memory and the processor).

[0053] The memory stores program codes, which can be executed by the processor, so that the processor executes the steps in various embodiments described in this specification.

[0054] The memory may include readable media in the form of volatile memory, such as random access memory (RAM) and / or cache memory, and may further include read only memory (ROM).

[0055] The memory may also include a program / utility having a set (at least one) of program modules, such program modules including but not limited to: an operating system, one or more application programs, other program modules and program data, each of which or some combination may include an implementation of a network environment.

[0056] The bus may represent one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures.

[0057] The electronic device may also communicate with one or more external devices (e.g., keyboards, pointing devices, Bluetooth devices, etc.), may communicate with one or more devices that enable a user to interact with the electronic device, and / or may communicate with any device (e.g., routers, modems, etc.) that enables the electronic device to communicate with one or more other computing devices. Such communication may be performed through an input / output (I / O) interface. Furthermore, the electronic device may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) through a network adapter. The network adapter communicates with other modules of the electronic device through a bus. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, etc.

[0058] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the implementation of the present disclosure.

[0059] An embodiment of the present invention further provides a computer program product, which includes program code. When the program product is run on an electronic device, the program code is used to enable the electronic device to execute the steps of the method according to various exemplary embodiments of the present invention described above in this specification.

[0060] Although some specific embodiments of the present invention have been described in detail by way of example, it should be understood by those skilled in the art that the above examples are only for illustration, not for limiting the scope of the present invention. It should also be understood by those skilled in the art that various modifications may be made to the embodiments without departing from the scope and spirit of the present invention.

Claims

1. A method for automatically archiving web pages to PDF based on Chromium, characterized in that: The method comprises the following steps: S100, at each preset time point, obtaining a unique identifier of each to-be-archived file uploaded within a preset historical time period, so as to obtain a to-be-archived file unique identifier list A=(A1, A2, ..., A i , …, A n ), i=1, 2,...,n; among them, A i is the unique identifier corresponding to the i-th file to be archived uploaded in the historical time period, and n is the number of files to be archived uploaded in the historical time period; S200, based on A, generate a web page link corresponding to each unique identifier in A to obtain a web page link list LA = (LA1, LA2, ..., LA i , …, LA n ); where LA i A i The web link of the corresponding file to be archived; S300, according to A, determine the PDF template corresponding to each to-be-archived file, so as to obtain a PDF template list PA corresponding to A = (PA1, PA2, ..., PA i , …, P A n ); Among them, PA i A i Corresponding PDF template; S400, using a preset chromium command to access each web link in LA, converting the to-be-archived file corresponding to each web link in LA into a corresponding to-be-archived PDF file, so as to obtain a to-be-archived PDF file list DA corresponding to A = (DA1, DA2, ..., DA i , …, DA n ); where DA i A i The corresponding PDF file to be archived; DA i According to P.A. i Convert to get; S500: According to DA, a download link corresponding to each PDF file to be archived is established to obtain a list of download links of PDF files to be archived HA = (HA1, HA2, ..., HA i ,…,HA n ); Among them, HA i for DA i Corresponding download link; S600, sending HA and A to a preset digital archive system, so that the digital archive system classifies and archives all the files to be archived according to HA and A.

2. The method for automatically archiving web pages to PDF based on Chromium according to claim 1, characterized in that: Step S300 includes the following steps: S310, obtaining the designated string corresponding to each unique identifier in A, so as to obtain a designated string list ZA corresponding to A = (ZA1, ZA2, ..., ZA i , …, ZA n ); Among them, ZA i A i The corresponding specified string; the specified string corresponding to the unique identifier is the first m digits of the unique identifier; S320, traverse ZA, if ZA i If the name is the same as any PDF template in the preset PDF template table, it will be i The PDF template corresponding to the same PDF template name is determined as PA i .

3. The method for automatically archiving web pages to PDF based on Chromium according to claim 1, characterized in that: DA i Obtained through the following steps: S410, Get LA i The information corresponding to each preset label in the file to be archived is obtained by i Corresponding tag information group list Q i =(Q i 1, Q i 2, …, Q i j , …, Q i f(i) ), j = 1, 2, …, f (i); where Q i j For LA i The corresponding j-th label information group, f(i) is LA i The number of corresponding tag information groups; Q i j =(Q i j,1 , Q i j,2 );Q i j,1 For LA i The label in the corresponding j-th label information group, Q i j,2 For LA i The information corresponding to the label in the corresponding j-th label information group; S420, traverse Q i , if Q i j,1 With PA i If any label in is the same, Q i j,2 Fill in PA i Zhong and Q i j,1 The same label corresponds to the information box to get the DA i .

4. The method for automatically archiving web pages to PDF based on Chromium according to claim 1, characterized in that: Step S600 includes the following steps: S610, after receiving HA and A, the digital archive system downloads each PDF file to be archived through HA to obtain a list of PDF files to be archived DA = (DA1, DA2, ..., DA i , …, DA n ); S620, according to A, obtain the classification information corresponding to each PDF file to be archived, so as to obtain a classification information list FA=(FA1, FA2, ..., FA i ,…,FA n ); where FA i for DA i Corresponding classification information; FA i =(FA i,1 , F.A. i,2 );FA i,1 for DA i Corresponding file type, FA i,2 for DA i The corresponding classification identifier; S630: Classify the PDF files to be archived corresponding to the classification information with the same file type and classification identifier in the FA into one category.

5. The method for automatically archiving web pages to PDF based on Chromium according to claim 1, characterized in that: The files to be archived include documents and process records of preset types.