Manuscript file processing method and device, equipment and storage medium
By running the working draft tool created based on the programming language locally, the security risks and low efficiency of draft document processing in the existing technology are solved, and safe and efficient batch processing and upload functions are achieved.
Patent Information
- Application Number
- CN202411853030.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-16
- Publication Date
- 2025-03-25
AI Technical Summary
In the prior art, when processing paper documents, there are problems of security risks and low efficiency, especially when using cloud-based online tools, private information is easily exposed, and multiple tools need to be frequently switched to complete processing tasks.
Provides a method of processing paper files, by running a pre-created working paper tool, which is created based on a programming language, includes a processing operation interface and an upload file operation interface, supports batch processing and upload functions, and does not rely on cloud Internet services to ensure security and privacy.
It realizes batch processing and uploading of draft documents locally, improves processing efficiency, ensures data security and privacy, and avoids the tedious process of multi-tool switching.
Smart Images

Figure CN119690925A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of computer technology, and specifically to a manuscript file processing method, device, equipment and storage medium. Background Art
[0002] Working papers refer to the sum of various important materials and records obtained and compiled by the sponsor or underwriter during the practice process, reflecting the compliance and integrity of the practice process. After business personnel collect a large number of electronic working papers, they need to be properly processed before they can be archived and preserved.
[0003] At present, the manuscript files are generally processed using online file processing tools in the cloud (for example, https: / / www.ilovepdf.com / ) or locally installed client tools (for example, Adobe Acrobat). However, manuscript files have strong privacy and confidentiality. If they are processed using online file processing tools in the cloud, private information is easily exposed; local client tools have problems such as copyright and charges; after processing the manuscript files, business personnel also need to name the files and organize them by folders according to the requirements, and then upload them to the manuscript management system. In this process, other software and tools (for example, batch renaming tools and upload tools, etc.) will be used for processing; that is, the prior art usually requires the use of multiple tool platforms and switching between multiple tool platforms to complete the processing of manuscript files. Since a project usually involves thousands of manuscript files, the above-mentioned processing method is obviously not safe and inefficient. Summary of the invention
[0004] In view of the above problems, an embodiment of the present invention provides a manuscript file processing method, device, equipment and storage medium to solve the problems existing in the prior art.
[0005] According to one aspect of an embodiment of the present invention, a manuscript file processing method is provided, the method comprising:
[0006] Running a pre-created work draft tool, the work draft tool being created based on a predetermined programming language, the work draft tool comprising at least a processing operation interface and an upload file operation interface, the processing operation interface comprising a processing control, and the upload file operation interface comprising an upload control;
[0007] Import the manuscript file to be processed in the processing operation interface;
[0008] triggering a processing event based on the processing control on the processing operation interface, and batch processing the manuscript files to be processed based on the processing event to obtain processed manuscript files;
[0009] Switch from the processing operation interface to the file upload operation interface, trigger an upload event based on the upload control on the file upload operation interface, and upload the processed manuscript file to the manuscript management system based on the upload event for archiving.
[0010] In an optional manner, before running the pre-created work draft tool, the method further includes: creating the work draft tool based on the Python programming language.
[0011] In an optional manner, the step of creating the working draft tool based on the Python programming language includes:
[0012] Create the processing operation interface, the processing controls on the processing operation interface, the file upload operation interface and the upload controls on the file upload operation interface based on a python graphical user interface library;
[0013] Bind a processing event and a processing function to the processing control, and bind an upload event and an upload function to the upload control, wherein the processing function is a function in a predetermined python library, and the upload function is a function in a python HTTP request library;
[0014] Based on the PyInstaller packaging tool, the python graphical user interface library, the python HTTP request library and the predetermined python library are packaged into an executable file to obtain the working draft tool.
[0015] In an optional manner, the processing operation interface includes at least a PDF operation interface, a rename operation interface and a list operation interface, and the tool for creating working drafts based on the Python programming language further includes:
[0016] Based on the Python graphical user interface library, the PDF operation interface and the PDF processing control in the PDF operation interface, the rename operation interface and the rename control in the rename operation interface, the list operation interface and the list control in the list operation interface are created;
[0017] Bind a PDF processing event and a PDF processing function to the PDF processing control, bind a rename event and a rename function to the rename control, bind a list event and a list function to the list control, the PDF processing function is a function in the python PDF library, the rename function and the list function are functions in the python OS library;
[0018] Based on the PyInstaller packaging tool, the python graphical user interface library, the python HTTP request library, the python PDF library and the python OS library are packaged into an executable file to obtain the working draft tool.
[0019] In an optional manner, triggering a processing event based on the processing control on the processing operation interface, batch processing the manuscript files to be processed based on the processing event, and obtaining the processed manuscript files include:
[0020] triggering a processing event based on the processing control on the processing operation interface, calling a function of the python PDF library and / or a function in the python OS library based on the processing event, and batch processing the manuscript files to be processed based on the function of the python PDF library and / or the function in the python OS library to obtain processed manuscript files;
[0021] Switching from the processing operation interface to the file upload operation interface, triggering an upload event based on the upload control on the file upload operation interface, and uploading the processed manuscript file to the manuscript management system based on the upload event for archiving, including:
[0022] Switch from the processing operation interface to the file upload operation interface, trigger an upload event based on the upload control on the file upload operation interface, call the function in the python HTTP request library based on the upload event, and upload the processed manuscript file to the manuscript management system based on the function in the python HTTP request library for archiving.
[0023] In an optional manner, the working draft tool further includes a file download operation interface, the file download operation interface includes a download control, and the tool for creating working drafts based on the Python programming language further includes:
[0024] Create the download file operation interface and the download control based on the Python graphical user interface library;
[0025] Bind a download event and a download function to the download control, where the download function is a function in the Python HTTP request library;
[0026] Based on the PyInstaller packaging tool, the python graphical user interface library, the python HTTP request library, the python PDF library and the python OS library are packaged into an executable file to obtain the working draft tool.
[0027] In an optional manner, after switching from the processing operation interface to the file upload operation interface, triggering an upload event based on the upload control on the file upload operation interface, and uploading the processed manuscript file to the manuscript management system based on the upload event for archiving, the method further includes:
[0028] A download event is triggered based on the download control on the download file operation interface, the download function is called based on the download event, and the manuscript file is downloaded from the manuscript management system to the local based on the download function.
[0029] According to another aspect of an embodiment of the present invention, there is provided a manuscript file processing device, comprising:
[0030] An operation module, used to run a pre-created work draft tool, the work draft tool is created based on a predetermined programming language, the work draft tool at least includes a processing operation interface and an upload file operation interface, the processing operation interface includes a processing control, and the upload file operation interface includes an upload control;
[0031] An import module, used for importing the manuscript file to be processed in the processing operation interface;
[0032] A processing module, used for triggering a processing event based on the processing control on the processing operation interface, batch processing the manuscript files to be processed based on the processing event, and obtaining processed manuscript files;
[0033] The upload module is used to switch from the processing operation interface to the file upload operation interface, trigger an upload event based on the upload control on the file upload operation interface, and upload the processed manuscript file to the manuscript management system based on the upload event for archiving.
[0034] According to another aspect of an embodiment of the present invention, there is provided a computer device, comprising: a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; the memory is used to store at least one executable instruction, and the executable instruction enables the processor to execute the method described above.
[0035] According to another aspect of the embodiments of the present invention, a computer-readable storage medium is provided, wherein at least one executable instruction is stored in the storage medium, and when the executable instruction is executed on a computer device, the computer device executes the method described above.
[0036] In an embodiment of the present invention, a pre-created working draft tool is run. The working draft tool is created based on a predetermined programming language. The working draft tool at least includes a processing operation interface and an upload file operation interface. The processing operation interface includes a processing control, and the upload file operation interface includes an upload control; the draft file to be processed is imported in the processing operation interface; a processing event is triggered based on the processing control on the processing operation interface, and batch processing is performed on the draft files to be processed based on the processing event to obtain the processed draft files; the processing operation interface is switched to the upload file operation interface, and an upload event is triggered based on the upload control on the upload file operation interface, and the processed draft files are uploaded to the draft management system based on the upload event for archiving. The working draft tool of the CS architecture of the embodiment of the present invention works on the user's computer device, does not use any cloud Internet service, and the security and privacy performance are guaranteed. The working draft tool integrates multiple draft file processing functions and upload functions in a one-stop manner, and there is no need to switch back and forth between multiple tools, thereby improving the processing efficiency of the draft files.
[0037] The above description is only an overview of the technical solution of the embodiment of the present invention. In order to more clearly understand the technical means of the embodiment of the present invention, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the embodiment of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] The accompanying drawings are only used to illustrate the embodiments and are not to be considered as limiting the present invention. In addition, the same reference symbols are used to represent the same components throughout the accompanying drawings. In the accompanying drawings:
[0039] Figure 1 A schematic diagram showing the use environment of the manuscript file processing method provided by an embodiment of the present invention;
[0040] Figure 2 A schematic diagram showing a flow chart of a manuscript file processing method provided by an embodiment of the present invention;
[0041] Figure 3 A schematic diagram showing an operation interface of a work draft tool provided by an embodiment of the present invention is shown;
[0042] Figure 4 A schematic diagram showing the structure of a manuscript file processing device provided by an embodiment of the present invention is shown;
[0043] Figure 5 A schematic diagram of the structure of a computer device provided by an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0044] Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present invention are shown in the drawings, it should be understood that the present invention can be implemented in various forms and should not be limited to the embodiments set forth herein.
[0045] Figure 1 A schematic diagram of the use environment of the manuscript file processing method provided by an embodiment of the present invention is shown. Figure 1 As shown, it includes working paper tools and working paper management systems, among which the working paper tools of CS architecture work on the user's computer equipment, do not use any cloud Internet services, and only connect to the internal working paper management system through interfaces, so that security and privacy performance are guaranteed. Business personnel collect or write various electronic working paper files to be processed. For example, for investment banks, business personnel collect various PDF scans from issuers, or business personnel write various electronic disclosure materials and internal control materials, etc., as working paper files to be processed and store them locally. After running the working paper tool, operate in the working paper tool to import the working paper files to be processed into the working paper tool, unify and batch process them in the working paper tool, and upload the processed working paper files in batches to the working paper management system for management, review and archiving. In addition, in order to cope with various internal and external inspections, such as inspections by regulatory units, you can also operate in the working paper tool to directly and quickly download the working paper files in the working paper management system to the local according to the established directory.
[0046] Figure 2 A flowchart of a manuscript file processing method according to an embodiment of the present invention is shown. Figure 2 As shown, the method comprises the following steps:
[0047] Step 101, running the pre-created work draft tool.
[0048] The working draft tool is created based on a predetermined programming language, and the working draft tool at least includes a processing operation interface and an upload file operation interface. The processing operation interface includes processing controls, and the upload file operation interface includes upload controls.
[0049] Optionally, the working draft tool is created based on the Python programming language. It will be appreciated by those skilled in the art that the working draft tool may also be created based on other programming languages, such as C++, which is not limited here.
[0050] In an optional embodiment, the working draft tool is created based on the python programming language, including: creating the processing operation interface, the processing control on the processing operation interface, the file upload operation interface and the upload control on the file upload operation interface based on the python graphical user interface library; binding processing events and processing functions to the processing controls, and binding upload events and upload functions to the upload controls, wherein the processing function is a function in a predetermined python library, and the upload function is a function in a python HTTP request library; packaging the python graphical user interface library, the python HTTP request library and the predetermined python library into an executable file based on the PyInstaller packaging tool to obtain the working draft tool.
[0051] In this embodiment, the python graphical user interface library can be any one of Tkinter, PyQt, PySide2, Kivy and wxPython, which can be used to create the graphical user interface of the working draft tool. Optionally, the python graphical user interface library of this embodiment is Tkinter, which provides components such as windows, buttons and text boxes required for creating a desktop application of the working draft tool. Among them, the processing operation interface and the file upload operation interface can be drawn through controls such as Frame, and the switching of the operation interface by clicking a button can be realized through the Button control.
[0052] Among them, the processing operation interface can import the manuscript files to be processed and perform unified and batch processing. The processing operation interface can include one or more operation interfaces. When the processing operation interface includes only one operation interface, multiple functions are integrated and designed on one operation interface; when the processing operation interface includes multiple operation interfaces, one function can be designed on one operation interface, and multiple operation interfaces can be switched by simple button click operations. In addition, the processing operation interface also includes one or more processing controls, and the processing controls are bound to processing events and processing functions. The processing functions are functions in a predetermined python library. Batch processing of the manuscript files to be processed can be achieved by triggering the processing controls.
[0053] The processing operation interface can integrate commonly used functions such as PDF file splitting, PDF file merging, batch file renaming, and listing files and attributes in an excel table. Of course, other functions can be added according to actual needs, and no excessive restrictions are made here. The working draft tool of this embodiment integrates multiple file processing functions in a one-stop manner, including multiple draft file processing functions and upload functions. Only by using the working draft tool, functions such as file splitting and merging, renaming, listing files and uploading can be completed, without switching back and forth between multiple tools, thereby improving the processing efficiency of draft files.
[0054] In the present embodiment, the upload file operation interface includes an upload control, and the upload control is bound to an upload event and an upload function, and the upload function is a function in a python HTTP request library. The python HTTP request library can be any one of the libraries such as Requests, urllib or requests-toolbelt, and can interact with the manuscript management system, and is used to upload the processed manuscript file to the manuscript management system through an HTTP request. Optionally, the python HTTP request library of the present embodiment is Requests, and after the upload event is triggered by the upload control, the upload function in Requests is called to interact with the server of the manuscript management system for uploading the processed manuscript file, and Requests simplifies the process of interacting with the server of the manuscript management system, and can conveniently send requests and process responses, so as to realize batch uploading of processed manuscript files, without switching back and forth between multiple tools.
[0055] In the present embodiment, PyInstaller packaging tool is a tool that packages Python application and all its dependencies (such as the above-mentioned binding relationship) into an independent executable file, and PyInstaller packaging tool supports operating systems such as Windows, Linux and macOS. PyInstaller packaging tool packages the above-mentioned python graphical user interface library, pythonHTTP request library and predetermined python library into an executable file, for example, generates an exe file in the windows operating system, and the executable file is a working draft tool. In the present embodiment, various libraries and all their dependencies are packaged into independent executable files by PyInstaller packaging tool, so that Python application (i.e., working draft tool) can be run on a computer without Python environment, and the user only needs to double-click to run and use the working draft tool.
[0056] In an optional embodiment, the processing operation interface at least includes a PDF operation interface, a rename operation interface and a list operation interface. Creating a working draft tool based on the python programming language further includes: creating the PDF operation interface and the PDF processing control in the PDF operation interface, the rename operation interface and the rename control in the rename operation interface, the list operation interface and the list control in the list operation interface based on the python graphical user interface library; binding PDF processing events and PDF processing functions to the PDF processing controls, binding rename events and rename functions to the rename controls, binding list events and list functions to the list controls, the PDF processing functions are functions in the python PDF library, the rename functions and the list functions are functions in the python OS library; packaging the python graphical user interface library, the python HTTP request library, the python PDF library and the python OS library into executable files based on the PyInstaller packaging tool to obtain the working draft tool.
[0057] In this embodiment, in addition to the PDF operation interface, the rename operation interface and the list operation interface, more operation interfaces can be added according to actual needs. In the PDF operation interface, various operations of PDF manuscript files can be performed in batches, including PDF file merging, splitting, cutting, converting and adding data, etc. In the rename operation interface, the manuscript files can be renamed in batches. In the list operation interface, the manuscript files can be listed in batches.
[0058] When creating a processing operation interface through the Python graphical user interface library, create a PDF operation interface, a rename operation interface, and a list operation interface, such as Figure 3 As shown in the figure, the operation interface of the working draft tool includes 5 buttons: split PDF file, rename, list files, download files and upload files. Click the button to switch to the corresponding operation interface. In the split PDF file operation interface, the local unprocessed draft file is imported into the working draft tool through the "Select PDF to be split" control, and the unprocessed draft file is split through the "Click to split PDF" control.
[0059] Among them, the PDF processing function is a function in the python PDF library. The PDF processing function includes one or more functions, and the multiple functions can be used to merge, split, crop, convert and add data to PDF files. This embodiment uses the functions in the python PDF library to realize the merging and splitting of PDF files. The rename function and the list function are functions in the python OS library. The rename function can be used to rename the manuscript file, and the list function can be used to list the manuscript file. The python OS library provides many functions for interacting with the operating system, allowing Python programs to access operating system-level functions. This embodiment uses the file and directory management functions in the os library to list and count the manuscript files.
[0060] This embodiment packages various libraries and all their dependencies into independent executable files through the PyInstaller packaging tool, so that users can run and use the working draft tool by simply double-clicking it.
[0061] Step 102: Import the manuscript file to be processed into the processing operation interface.
[0062] In this embodiment, after determining what kind of processing to be performed on the manuscript file to be processed, switch to the corresponding processing operation interface, import the manuscript file to be processed in the processing operation interface and perform corresponding processing, such as Figure 3 In the split PDF file operation interface, use the "Select PDF to split" control to import the local draft files to be processed into the working draft tool.
[0063] Step 103 , triggering a processing event based on the processing control on the processing operation interface, batch processing the manuscript files to be processed based on the processing event, and obtaining processed manuscript files.
[0064] In this embodiment, a processing event is triggered by a processing control, and a processing function in a binding library is called to perform batch processing on the manuscript files to be processed.
[0065] Optionally, triggering a processing event based on the processing control on the processing operation interface, batch processing the manuscript files to be processed based on the processing event to obtain processed manuscript files, includes: triggering a processing event based on the processing control on the processing operation interface, calling a function of the python PDF library and / or a function in the python OS library based on the processing event, batch processing the manuscript files to be processed based on the function of the python PDF library and / or the function in the python OS library to obtain processed manuscript files;
[0066] The processing function is a function of the python PDF library and / or a function in the python OS library, which is a fully encapsulated function. After the processing event is triggered, the function of the python PDF library and / or the function in the python OS library is called to directly perform batch processing on the manuscript files to be processed.
[0067] Step 104, switching from the processing operation interface to the file upload operation interface, triggering an upload event based on the upload control on the file upload operation interface, and uploading the processed manuscript file to the manuscript management system based on the upload event for archiving.
[0068] In this embodiment, after the manuscript file is processed in the processing operation interface, it switches to the file upload operation interface, and triggers the upload event through the upload control on the file upload operation interface, thereby uploading the processed manuscript file to the manuscript management system.
[0069] Optionally, switching from the processing operation interface to the file upload operation interface, triggering an upload event based on the upload control on the file upload operation interface, and uploading the processed manuscript file to the manuscript management system based on the upload event for archiving, including: switching from the processing operation interface to the file upload operation interface, triggering an upload event based on the upload control on the file upload operation interface, calling a function in the python HTTP request library based on the upload event, and uploading the processed manuscript file to the manuscript management system based on the function in the python HTTP request library for archiving.
[0070] The upload function is a function in the Python HTTP request library. It is a fully encapsulated function. After the upload event is triggered, the function in the Python HTTP request library is called to upload the processed draft file to the draft management system.
[0071] In an optional embodiment, creating a working draft tool based on the python programming language further includes: creating the download file operation interface and the download control based on the python graphical user interface library; binding a download event and a download function to the download control, wherein the download function is a function in the python HTTP request library; and packaging the python graphical user interface library, the python HTTP request library, the python PDF library and the python OS library into an executable file based on the PyInstaller packaging tool to obtain the working draft tool.
[0072] In this embodiment, in addition to creating the above-mentioned PDF operation interface, rename operation interface, list operation interface and upload file operation interface, the python graphical user interface library also creates a download file operation interface, which includes a download control, and the download control is bound to a download event and a download function, and the download function is a function in the python HTTP request library. Optionally, the python HTTP request library in this embodiment is Requests.
[0073] In an optional embodiment, after switching from the processing operation interface to the file upload operation interface, triggering an upload event based on the upload control on the file upload operation interface, uploading the processed manuscript file to the manuscript management system based on the upload event for archiving, it also includes: triggering a download event based on the download control on the file download operation interface, calling the download function based on the download event, and downloading the manuscript file from the manuscript management system to the local based on the download function.
[0074] In this embodiment, in the file download operation interface, a download event is triggered by a download control, and a function in the python HTTP request library is called to initiate a request to the manuscript management system, thereby downloading the manuscript file in the manuscript management system to the local computer.
[0075] In an embodiment of the present invention, a pre-created working draft tool is run. The working draft tool is created based on a predetermined programming language. The working draft tool at least includes a processing operation interface and an upload file operation interface. The processing operation interface includes a processing control, and the upload file operation interface includes an upload control; the draft file to be processed is imported in the processing operation interface; a processing event is triggered based on the processing control on the processing operation interface, and batch processing is performed on the draft files to be processed based on the processing event to obtain the processed draft files; the processing operation interface is switched to the upload file operation interface, and an upload event is triggered based on the upload control on the upload file operation interface, and the processed draft files are uploaded to the draft management system based on the upload event for archiving. The working draft tool of the CS architecture of the embodiment of the present invention works on the user's computer device, does not use any cloud Internet service, and the security and privacy performance are guaranteed. The working draft tool integrates multiple draft file processing functions and upload functions in a one-stop manner, and there is no need to switch back and forth between multiple tools, thereby improving the processing efficiency of the draft files.
[0076] Figure 4 FIG. 2 shows a schematic diagram of the structure of a manuscript file processing device according to an embodiment of the present invention. Figure 4 As shown, the manuscript file processing device 300 includes:
[0077] An operation module 301 is used to run a pre-created work draft tool, the work draft tool is created based on a predetermined programming language, the work draft tool at least includes a processing operation interface and an upload file operation interface, the processing operation interface includes a processing control, and the upload file operation interface includes an upload control;
[0078] An import module 302 is used to import the manuscript file to be processed in the processing operation interface;
[0079] A processing module 303 is used to trigger a processing event based on the processing control on the processing operation interface, and batch process the manuscript files to be processed based on the processing event to obtain processed manuscript files;
[0080] The upload module 304 is used to switch from the processing operation interface to the file upload operation interface, trigger an upload event based on the upload control on the file upload operation interface, and upload the processed manuscript file to the manuscript management system based on the upload event for archiving.
[0081] The embodiment of the manuscript file processing device is basically the same as the embodiment of the manuscript file processing method described above, and reference may be made to the embodiment of the manuscript file processing method described above, which will not be described in detail here.
[0082] Figure 5 The schematic diagram of the structure of the computer device embodiment of the present invention is shown. The specific embodiment of the present invention does not limit the specific implementation of the computer device.
[0083] like Figure 5 As shown, the computer device may include: a processor (processor) 402 , a communication interface (Communications Interface) 404 , a memory (memory) 406 , and a communication bus 408 .
[0084] The processor 402, the communication interface 404, and the memory 406 communicate with each other via the communication bus 408. The communication interface 404 is used to communicate with other computer devices such as client or other server network elements. The processor 402 is used to execute the program 410, which can specifically execute the relevant steps in the above-mentioned computer device embodiment.
[0085] Specifically, the program 410 may include program code including computer executable instructions.
[0086] The processor 402 may be a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present invention. The one or more processors included in the computer device may be processors of the same type, such as one or more CPUs; or processors of different types, such as one or more CPUs and one or more ASICs.
[0087] The memory 406 is used to store the program 410. The memory 406 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
[0088] The program 410 may be specifically called by the processor 402 to enable the computer device to perform the following operations:
[0089] Running a pre-created work draft tool, the work draft tool being created based on a predetermined programming language, the work draft tool comprising at least a processing operation interface and an upload file operation interface, the processing operation interface comprising a processing control, and the upload file operation interface comprising an upload control;
[0090] Importing the manuscript file to be processed in the processing operation interface;
[0091] triggering a processing event based on the processing control on the processing operation interface, batch processing the manuscript files to be processed based on the processing event, and obtaining processed manuscript files;
[0092] Switch from the processing operation interface to the file upload operation interface, trigger an upload event based on the upload control on the file upload operation interface, and upload the processed manuscript file to the manuscript management system based on the upload event for archiving.
[0093] In an optional manner, before running the pre-created work draft tool, the method further includes: creating the work draft tool based on the Python programming language.
[0094] In an optional manner, the step of creating the working draft tool based on the Python programming language includes:
[0095] Create the processing operation interface, the processing controls on the processing operation interface, the file upload operation interface and the upload controls on the file upload operation interface based on a python graphical user interface library;
[0096] Bind a processing event and a processing function to the processing control, and bind an upload event and an upload function to the upload control, wherein the processing function is a function in a predetermined python library, and the upload function is a function in a python HTTP request library;
[0097] Based on the PyInstaller packaging tool, the python graphical user interface library, the python HTTP request library and the predetermined python library are packaged into an executable file to obtain the working draft tool.
[0098] In an optional manner, the processing operation interface includes at least a PDF operation interface, a rename operation interface and a list operation interface, and the tool for creating working drafts based on the Python programming language further includes:
[0099] Based on the Python graphical user interface library, the PDF operation interface and the PDF processing control in the PDF operation interface, the rename operation interface and the rename control in the rename operation interface, the list operation interface and the list control in the list operation interface are created;
[0100] Bind a PDF processing event and a PDF processing function to the PDF processing control, bind a rename event and a rename function to the rename control, bind a list event and a list function to the list control, the PDF processing function is a function in the python PDF library, the rename function and the list function are functions in the python OS library;
[0101] Based on the PyInstaller packaging tool, the python graphical user interface library, the python HTTP request library, the python PDF library and the python OS library are packaged into an executable file to obtain the working draft tool.
[0102] In an optional manner, triggering a processing event based on the processing control on the processing operation interface, batch processing the manuscript files to be processed based on the processing event, and obtaining the processed manuscript files include:
[0103] triggering a processing event based on the processing control on the processing operation interface, calling a function of the python PDF library and / or a function in the python OS library based on the processing event, and batch processing the manuscript files to be processed based on the function of the python PDF library and / or the function in the python OS library to obtain processed manuscript files;
[0104] Switching from the processing operation interface to the file upload operation interface, triggering an upload event based on the upload control on the file upload operation interface, and uploading the processed manuscript file to the manuscript management system based on the upload event for archiving, including:
[0105] Switch from the processing operation interface to the file upload operation interface, trigger an upload event based on the upload control on the file upload operation interface, call the function in the python HTTP request library based on the upload event, and upload the processed manuscript file to the manuscript management system based on the function in the python HTTP request library for archiving.
[0106] In an optional manner, the working draft tool further includes a file download operation interface, the file download operation interface includes a download control, and the tool for creating working drafts based on the Python programming language further includes:
[0107] Create the download file operation interface and the download control based on the Python graphical user interface library;
[0108] Bind a download event and a download function to the download control, where the download function is a function in the Python HTTP request library;
[0109] Based on the PyInstaller packaging tool, the python graphical user interface library, the python HTTP request library, the python PDF library and the python OS library are packaged into an executable file to obtain the working draft tool.
[0110] In an optional manner, after switching from the processing operation interface to the file upload operation interface, triggering an upload event based on the upload control on the file upload operation interface, and uploading the processed manuscript file to the manuscript management system based on the upload event for archiving, the method further includes:
[0111] A download event is triggered based on the download control on the download file operation interface, the download function is called based on the download event, and the manuscript file is downloaded from the manuscript management system to the local based on the download function.
[0112] In an embodiment of the present invention, a pre-created working draft tool is run. The working draft tool is created based on a predetermined programming language. The working draft tool at least includes a processing operation interface and an upload file operation interface. The processing operation interface includes a processing control, and the upload file operation interface includes an upload control; the draft file to be processed is imported in the processing operation interface; a processing event is triggered based on the processing control on the processing operation interface, and batch processing is performed on the draft files to be processed based on the processing event to obtain the processed draft files; the processing operation interface is switched to the upload file operation interface, and an upload event is triggered based on the upload control on the upload file operation interface, and the processed draft files are uploaded to the draft management system based on the upload event for archiving. The working draft tool of the CS architecture of the embodiment of the present invention works on the user's computer device, does not use any cloud Internet service, and the security and privacy performance are guaranteed. The working draft tool integrates multiple draft file processing functions and upload functions in a one-stop manner, and there is no need to switch back and forth between multiple tools, thereby improving the processing efficiency of the draft files.
[0113] An embodiment of the present invention provides a computer-readable storage medium, wherein the storage medium stores at least one executable instruction. When the executable instruction is executed on a computer device, the computer device executes any of the above method embodiments.
[0114] An embodiment of the present invention provides a computer program, which can be called by a processor to enable a computer device to execute any of the above method embodiments.
[0115] An embodiment of the present invention provides a computer program product, which includes a computer program stored on a computer-readable storage medium. The computer program includes program instructions. When the program instructions are executed on a computer, the computer is enabled to execute any of the above method embodiments.
[0116] The algorithm or display provided herein is not inherently related to any particular computer, virtual system or other equipment. Various general purpose systems can also be used together with the teachings based on this. According to the above description, it is obvious to construct the structure required for this type of system. In addition, the embodiment of the present invention is not directed to any specific programming language yet. It should be understood that various programming languages can be utilized to realize the content of the present invention described herein, and the description made to specific languages above is for disclosing the best mode of the present invention.
[0117] In the description provided herein, a large number of specific details are described. However, it is understood that embodiments of the present invention can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.
[0118] Similarly, it should be understood that in order to streamline the present invention and aid in understanding one or more of the various inventive aspects, in the above description of exemplary embodiments of the present invention, various features of the embodiments of the present invention are sometimes grouped together into a single embodiment, figure, or description thereof. However, this method of disclosure should not be interpreted as reflecting an intention that the claimed invention requires more features than those expressly recited in each claim.
[0119] Those skilled in the art will appreciate that the modules in the computer device in the embodiment can be adaptively changed and set in one or more computer devices different from the embodiment. The modules or units or components in the embodiment can be combined into one module or unit or component, and they can be divided into multiple sub-modules or sub-units or sub-components. Except that at least some of such features and / or processes or units are mutually exclusive, all features disclosed in this specification (including the accompanying claims, abstracts and drawings) and all processes or units of any method or computer device disclosed in this manner can be combined in any combination. Unless otherwise explicitly stated, each feature disclosed in this specification (including the accompanying claims, abstracts and drawings) can be replaced by an alternative feature that provides the same, equivalent or similar purpose.
[0120] It should be noted that the above embodiments illustrate the present invention rather than limit it, and that those skilled in the art may devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets shall not be construed as a limitation on the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "one" or "an" preceding an element does not exclude the presence of a plurality of such elements. The present invention may be implemented by means of hardware comprising a number of different elements and by means of a suitably programmed computer. In a unit claim enumerating a number of devices, several of these devices may be embodied by the same hardware item. The use of the words first, second, and third, etc. does not indicate any order. These words may be interpreted as names. The steps in the above embodiments, unless otherwise specified, should not be understood as limitations on the order of execution.
Claims
1. A manuscript file processing method, characterized in that: The method comprises: Running a pre-created work draft tool, the work draft tool being created based on a predetermined programming language, the work draft tool comprising at least a processing operation interface and an upload file operation interface, the processing operation interface comprising a processing control, and the upload file operation interface comprising an upload control; Importing the manuscript file to be processed in the processing operation interface; triggering a processing event based on the processing control on the processing operation interface, batch processing the manuscript files to be processed based on the processing event, and obtaining processed manuscript files; Switch from the processing operation interface to the file upload operation interface, trigger an upload event based on the upload control on the file upload operation interface, and upload the processed manuscript file to the manuscript management system based on the upload event for archiving.
2. The method according to claim 1, characterized in that Before running the pre-created work draft tool, the method further includes: creating the work draft tool based on the Python programming language.
3. The method according to claim 2, characterized in that The tool for creating the working draft based on the Python programming language includes: Create the processing operation interface, the processing controls on the processing operation interface, the file upload operation interface and the upload controls on the file upload operation interface based on a python graphical user interface library; Bind a processing event and a processing function to the processing control, and bind an upload event and an upload function to the upload control, wherein the processing function is a function in a predetermined python library, and the upload function is a function in a python HTTP request library; Based on the PyInstaller packaging tool, the python graphical user interface library, the python HTTP request library and the predetermined python library are packaged into an executable file to obtain the working draft tool.
4. The method according to claim 3, characterized in that The processing operation interface at least includes a PDF operation interface, a renaming operation interface and a listing operation interface, and the tool for creating working drafts based on the Python programming language further includes: Based on the Python graphical user interface library, the PDF operation interface and the PDF processing control in the PDF operation interface, the rename operation interface and the rename control in the rename operation interface, the list operation interface and the list control in the list operation interface are created; Bind a PDF processing event and a PDF processing function to the PDF processing control, bind a rename event and a rename function to the rename control, bind a list event and a list function to the list control, the PDF processing function is a function in the pythonPDF library, the rename function and the list function are functions in the python OS library; Based on the PyInstaller packaging tool, the python graphical user interface library, the python HTTP request library, the python PDF library and the python OS library are packaged into an executable file to obtain the working draft tool.
5. The method according to claim 4, characterized in that The triggering of a processing event based on the processing control on the processing operation interface, batch processing of the manuscript files to be processed based on the processing event, and obtaining the processed manuscript files include: triggering a processing event based on the processing control on the processing operation interface, calling a function of the python PDF library and / or a function in the python OS library based on the processing event, and batch processing the manuscript files to be processed based on the function of the python PDF library and / or the function in the python OS library to obtain processed manuscript files; Switching from the processing operation interface to the file upload operation interface, triggering an upload event based on the upload control on the file upload operation interface, and uploading the processed manuscript file to the manuscript management system based on the upload event for archiving, including: Switch from the processing operation interface to the file upload operation interface, trigger an upload event based on the upload control on the file upload operation interface, call the function in the python HTTP request library based on the upload event, and upload the processed manuscript file to the manuscript management system based on the function in the python HTTP request library for archiving.
6. The method according to claim 4 or 5, characterized in that: The working draft tool also includes a file download operation interface, the file download operation interface includes a download control, and the tool for creating working drafts based on the Python programming language further includes: Create the download file operation interface and the download control based on the Python graphical user interface library; Bind a download event and a download function to the download control, where the download function is a function in the Python HTTP request library; Based on the PyInstaller packaging tool, the python graphical user interface library, the python HTTP request library, the python PDF library and the python OS library are packaged into an executable file to obtain the working draft tool.
7. The method according to claim 6, characterized in that After switching from the processing operation interface to the file upload operation interface, triggering an upload event based on the upload control on the file upload operation interface, and uploading the processed manuscript file to the manuscript management system based on the upload event for archiving, the method further includes: A download event is triggered based on the download control on the download file operation interface, the download function is called based on the download event, and the manuscript file is downloaded from the manuscript management system to the local based on the download function.
8. A manuscript file processing device, characterized in that: include: An operation module, used to run a pre-created work draft tool, the work draft tool is created based on a predetermined programming language, the work draft tool at least includes a processing operation interface and an upload file operation interface, the processing operation interface includes a processing control, and the upload file operation interface includes an upload control; An import module, used for importing the manuscript file to be processed in the processing operation interface; A processing module, used for triggering a processing event based on the processing control on the processing operation interface, batch processing the manuscript files to be processed based on the processing event, and obtaining processed manuscript files; The upload module is used to switch from the processing operation interface to the file upload operation interface, trigger an upload event based on the upload control on the file upload operation interface, and upload the processed manuscript file to the manuscript management system based on the upload event for archiving.
9. A computer device, characterized in that: include: A processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; The memory is used to store at least one executable instruction, and the executable instruction enables the processor to execute the method according to any one of claims 1-7.
10. A computer-readable storage medium, characterized in that: The storage medium stores at least one executable instruction, and when the executable instruction is executed on a computer device, the computer device executes the method according to any one of claims 1 to 7.