CN117669503A - Stream PDF processing method and system - Google Patents

Stream PDF processing method and system Download PDF

Info

Publication number
CN117669503A
CN117669503A CN202311614047.2A CN202311614047A CN117669503A CN 117669503 A CN117669503 A CN 117669503A CN 202311614047 A CN202311614047 A CN 202311614047A CN 117669503 A CN117669503 A CN 117669503A
Authority
CN
China
Prior art keywords
node
pdf
flow
streaming
pdf file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311614047.2A
Other languages
Chinese (zh)
Inventor
肖辉
葛侬
唐小兴
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Artron Art Printing Co ltd
Shanghai Artron Art Printing Co ltd
Artron Art Group Co ltd
Original Assignee
Beijing Artron Art Printing Co ltd
Shanghai Artron Art Printing Co ltd
Artron Art Group Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Artron Art Printing Co ltd, Shanghai Artron Art Printing Co ltd, Artron Art Group Co ltd filed Critical Beijing Artron Art Printing Co ltd
Priority to CN202311614047.2A priority Critical patent/CN117669503A/en
Publication of CN117669503A publication Critical patent/CN117669503A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a method and a system for processing PDF in a streaming mode, wherein the method comprises the following steps: creating and configuring a processing flow, and setting a plurality of sequentially executed nodes and corresponding parameters for the flow; creating and configuring nodes, namely assigning PDF operation and corresponding execution parameters for each node; wherein the operations include: merging, inserting, extracting, modifying the size, adding marks and imposition; and loading a parameter flow, inputting a source PDF file, enabling the source PDF file to pass through each node in sequence, executing corresponding PDF operation on each node according to corresponding execution parameters, and finally outputting a target PDF file. The invention can realize automatic treatment, thereby greatly saving cost, improving the accuracy and consistency of operation and improving the treatment efficiency.

Description

Stream PDF processing method and system
[ field of technology ]
The invention relates to the technical field of publishing design, in particular to a streaming PDF processing method and system.
[ background Art ]
Currently, pre-print PDF (Portable Document Format, portable file format) document processing work is a critical ring in the printing industry, involving a complex series of operations. These operations include merging, inserting, extracting, modifying dimensions, adding marks, imposition, etc., with the aim of ensuring the quality and accuracy of the print. However, these operations typically require specialized software tools to accomplish, such as Adobe Acrobat software and related plug-ins. And these operations are usually dependent on manual operations, which are not only repeated and tedious, but also inefficient and prone to error.
In view of the foregoing, it is desirable to provide a method and a system for processing PDF in a streaming manner to overcome the above-mentioned drawbacks.
[ invention ]
The invention aims to provide a streaming PDF processing method and system, which aim to solve the problem that the existing PDF file processing work before printing is too dependent on manual operation, realize a series of PDF processing operations automatically, improve the processing efficiency and avoid mistakes.
In order to achieve the above object, a first aspect of the present invention provides a streaming PDF processing method, including:
step S10: creating and configuring a processing flow, and setting a plurality of sequentially executed nodes and corresponding parameters for the flow;
step S20: creating and configuring nodes, namely assigning PDF operation and corresponding execution parameters for each node; wherein the operations include: merging, inserting, extracting, modifying the size, adding marks and imposition;
step S30: and loading a parameter flow, inputting a source PDF file, enabling the source PDF file to pass through each node in sequence, executing corresponding PDF operation on each node according to corresponding execution parameters, and finally outputting a target PDF file.
In a preferred embodiment, the step S20 includes:
a node list configuration table is established, wherein the configuration table comprises a plurality of nodes, which are sequentially numbered as node 1, node 2, … and node n.
In a preferred embodiment, the step S30 includes:
taking the source PDF file as input of the node 1, executing PDF operation preset by the node 1 according to the execution parameters of the node 1, and taking the execution result as output of the node 1;
taking the output of the node 1 as the input of the node 2, executing PDF operation preset by the node 2 according to the execution parameters of the node 2, and taking the execution result as the output of the node 2;
and by analogy, taking the output of the node n-1 as the input of the node n, executing PDF operation preset by the node n according to the execution parameters of the node n, and taking the execution result as the output of the node n;
the output of the node n is the target PDF file.
In a preferred embodiment, in the step S30, the execution environment is initialized after the parameter flow is loaded, and the source PDF file is input after a new processing task is triggered.
The second invention provides a streaming PDF processing system, which comprises:
the flow configuration module is used for creating and configuring a processing flow and setting a plurality of sequentially executed nodes and corresponding parameters for the flow;
the node configuration module is used for creating and configuring nodes, and assigning PDF operation and corresponding execution parameters for each node; wherein the operations include: merging, inserting, extracting, modifying the size, adding marks and imposition;
and the operation execution module is used for loading the parameter flow, inputting the source PDF file, enabling the source PDF file to pass through each node in turn, executing corresponding PDF operation on each node according to the corresponding execution parameters, and finally outputting the target PDF file.
A third aspect of the present invention provides a terminal comprising a memory, a processor and a computer program stored in the memory, which when executed by the processor, implements the steps of the streaming PDF processing method according to any of the above embodiments.
A fourth aspect of the present invention provides a computer-readable storage medium storing a computer program which, when executed by a processor, implements the steps of a streaming PDF processing method according to any of the above embodiments.
A fifth aspect of the invention provides a computer program product comprising a computer program or instructions which, when processed for execution, implement the steps of a streaming PDF processing method according to any of the embodiments described above.
According to the stream type PDF processing method and system, a plurality of nodes are established, PDF operation is assigned to each node, execution parameters are set, flow triggering conditions are set to enable automatic execution, source PDF files flow among the nodes in sequence and corresponding operation is executed, finally, a target PDF file is obtained, automatic processing can be achieved, accordingly cost is saved greatly, operation accuracy and consistency are improved, and processing efficiency is improved. In addition, the method can also establish corresponding processes according to different processing capacity requirements, and can also realize parallel multitasking so as to meet the requirements of different products.
[ description of the drawings ]
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a flow PDF processing method provided by the invention;
FIG. 2 is a schematic diagram of a node list configuration table in step S20 of the method shown in FIG. 1;
fig. 3 is a frame diagram of a streaming PDF processing system provided by the present invention.
[ detailed description ] of the invention
In order to make the objects, technical solutions and advantageous technical effects of the present invention more apparent, the present invention will be further described in detail with reference to the accompanying drawings and detailed description. It should be understood that the detailed description is intended to illustrate the invention, and not to limit the invention.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in the present specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
Example 1
In the embodiment of the invention, a streaming PDF processing method is provided to replace manual operation to process PDF files before printing, thereby realizing automatic processing, saving cost, improving operation accuracy and consistency and improving processing efficiency.
As shown in fig. 1, the streaming PDF processing method includes steps S10 to S30.
Step S10: creating and configuring a processing flow, and setting a plurality of sequentially executed nodes and corresponding parameters for the flow.
The trigger condition can be set at the same time when the processing flow is configured, and the PDF file can be operated after the trigger condition is triggered. In addition, parallel multitasking flows can be set to further improve the processing efficiency of PDF files.
Step S20: creating and configuring nodes, namely assigning PDF operation and corresponding execution parameters for each node; the PDF operation comprises the following steps: merging, inserting, extracting, modifying the size, adding marks and imposition.
Specifically, as shown in fig. 2, a node list configuration table is established, where the configuration table includes a plurality of nodes, which are numbered as node 1, node 2, …, and node n in sequence. Each node is sequentially carried out according to the number. Each node is configured with a PDF operation different from other nodes, and corresponding execution parameters are preset according to the operation and the printing requirements.
Step S30: and loading a parameter flow, inputting a source PDF file, enabling the source PDF file to pass through each node in sequence, executing corresponding PDF operation on each node according to corresponding execution parameters, and finally outputting a target PDF file.
And initializing an execution environment after loading the parameter flow, triggering a new processing task, and inputting a source PDF file.
Specifically, step S30 includes:
taking the source PDF file as input of the node 1, executing PDF operation preset by the node 1 according to the execution parameters of the node 1, and taking the execution result as output of the node 1;
taking the output of the node 1 as the input of the node 2, executing PDF operation preset by the node 2 according to the execution parameters of the node 2, and taking the execution result as the output of the node 2;
and by analogy, taking the output of the node n-1 as the input of the node n, executing PDF operation preset by the node n according to the execution parameters of the node n, and taking the execution result as the output of the node n;
the output of the node n is the target PDF file.
Example two
The present invention provides a streaming PDF processing system 100 for replacing a manual operation to process a PDF file before printing, thereby realizing an automated process. It should be noted that, the implementation principle and the specific implementation of the streaming PDF processing system 100 may refer to the streaming PDF processing method described above, and the disclosure is not repeated here.
As shown in fig. 3, the streaming PDF processing system 100 includes:
the flow configuration module 10 is used for creating and configuring a processing flow, and setting a plurality of sequentially executed nodes and corresponding parameters for the flow;
the node configuration module 20 is configured to create and configure nodes, and assign PDF operations and corresponding execution parameters for each node; the PDF operation comprises the following steps: merging, inserting, extracting, modifying the size, adding marks and imposition;
the operation execution module 30 is configured to load the parameter flow, input the source PDF file, make the source PDF file pass through each node in turn, execute the corresponding PDF operation at each node according to the corresponding execution parameters, and finally output the target PDF file.
Example III
The present invention provides a terminal comprising a memory, a processor and a computer program stored in the memory, which when executed by the processor, implements the steps of the streaming PDF processing method according to any of the above embodiments.
Example IV
The present invention provides a computer-readable storage medium storing a computer program which, when executed by a processor, implements the steps of the streaming PDF processing method according to any one of the above embodiments.
Example five
The present invention provides a computer program product comprising a computer program or instructions which, when processed for execution, implement the steps of a streaming PDF processing method according to any of the embodiments described above.
In summary, according to the method and system for processing the streaming PDF provided by the invention, a PDF operation is assigned to each node by establishing a plurality of nodes, execution parameters are set, a process triggering condition is set to enable automatic execution, source PDF files flow among the nodes in sequence and execute corresponding operations, and finally a target PDF file is obtained, so that automatic processing can be realized, cost is greatly saved, operation accuracy and consistency are improved, and processing efficiency is improved. In addition, the method can also establish corresponding processes according to different processing capacity requirements, and can also realize parallel multitasking so as to meet the requirements of different products.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the system is divided into different functional units or modules to perform all or part of the above-described functions. The functional units and modules in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working process of the units and modules in the above system may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
Those of ordinary skill in the art will appreciate that the elements and method steps of the examples described in connection with the embodiments disclosed herein can be implemented as electronic hardware, or as a combination of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed system or system/terminal device and method may be implemented in other manners. For example, the system or system/terminal device embodiments described above are merely illustrative, e.g., the division of the modules or elements is merely a logical functional division, and there may be additional divisions in actual implementation, e.g., multiple elements or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection via interfaces, systems or units, which may be in electrical, mechanical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The present invention is not limited to the details and embodiments described herein, and thus additional advantages and modifications may readily be made by those skilled in the art, without departing from the spirit and scope of the general concepts defined in the claims and the equivalents thereof, and the invention is not limited to the specific details, representative apparatus and illustrative examples shown and described herein.

Claims (7)

1. A streaming PDF processing method, comprising:
step S10: creating and configuring a processing flow, and setting a plurality of sequentially executed nodes and corresponding parameters for the flow;
step S20: creating and configuring nodes, namely assigning PDF operation and corresponding execution parameters for each node; wherein the operations include: merging, inserting, extracting, modifying the size, adding marks and imposition;
step S30: and loading a parameter flow, inputting a source PDF file, enabling the source PDF file to pass through each node in sequence, executing corresponding PDF operation on each node according to corresponding execution parameters, and finally outputting a target PDF file.
2. The streaming PDF processing method of claim 1, wherein the step S20 includes:
a node list configuration table is established, wherein the configuration table comprises a plurality of nodes, which are sequentially numbered as node 1, node 2, … and node n.
3. The streaming PDF processing method of claim 2, wherein the step S30 includes:
taking the source PDF file as input of the node 1, executing PDF operation preset by the node 1 according to the execution parameters of the node 1, and taking the execution result as output of the node 1;
taking the output of the node 1 as the input of the node 2, executing PDF operation preset by the node 2 according to the execution parameters of the node 2, and taking the execution result as the output of the node 2;
and by analogy, taking the output of the node n-1 as the input of the node n, executing PDF operation preset by the node n according to the execution parameters of the node n, and taking the execution result as the output of the node n;
the output of the node n is the target PDF file.
4. The method according to claim 1, wherein in the step S30, the execution environment is initialized after the parameter flow is loaded, and the source PDF file is input after a new processing task is triggered.
5. A streaming PDF processing system comprising:
the flow configuration module is used for creating and configuring a processing flow and setting a plurality of sequentially executed nodes and corresponding parameters for the flow;
the node configuration module is used for creating and configuring nodes, and assigning PDF operation and corresponding execution parameters for each node; wherein the operations include: merging, inserting, extracting, modifying the size, adding marks and imposition;
and the operation execution module is used for loading the parameter flow, inputting the source PDF file, enabling the source PDF file to pass through each node in turn, executing corresponding PDF operation on each node according to the corresponding execution parameters, and finally outputting the target PDF file.
6. A terminal comprising a memory, a processor and a computer program stored in the memory, which when executed by the processor, performs the steps of the streaming PDF processing method according to any of claims 1-4.
7. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program which, when executed by a processor, implements the steps of the streaming PDF processing method according to any of the claims 1-4.
CN202311614047.2A 2023-11-29 2023-11-29 Stream PDF processing method and system Pending CN117669503A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311614047.2A CN117669503A (en) 2023-11-29 2023-11-29 Stream PDF processing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311614047.2A CN117669503A (en) 2023-11-29 2023-11-29 Stream PDF processing method and system

Publications (1)

Publication Number Publication Date
CN117669503A true CN117669503A (en) 2024-03-08

Family

ID=90065419

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311614047.2A Pending CN117669503A (en) 2023-11-29 2023-11-29 Stream PDF processing method and system

Country Status (1)

Country Link
CN (1) CN117669503A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109241097A (en) * 2018-08-02 2019-01-18 平安科技(深圳)有限公司 A kind of configuration method of process, computer readable storage medium and terminal device
CN111475564A (en) * 2020-04-13 2020-07-31 恒安嘉新(北京)科技股份公司 Streaming data processing method, system, computer equipment and storage medium
CN116185425A (en) * 2023-03-23 2023-05-30 苏州峰之鼎信息科技有限公司 Event flow arrangement method, device, equipment and medium based on node combination

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109241097A (en) * 2018-08-02 2019-01-18 平安科技(深圳)有限公司 A kind of configuration method of process, computer readable storage medium and terminal device
CN111475564A (en) * 2020-04-13 2020-07-31 恒安嘉新(北京)科技股份公司 Streaming data processing method, system, computer equipment and storage medium
CN116185425A (en) * 2023-03-23 2023-05-30 苏州峰之鼎信息科技有限公司 Event flow arrangement method, device, equipment and medium based on node combination

Similar Documents

Publication Publication Date Title
CN105205117A (en) Data table migrating method and device
CN109375971B (en) Page layout method and device, storage medium and electronic device
CN110489126A (en) Execution method and apparatus, storage medium and the electronic device of compiler task
CN107203401B (en) Front-end project construction method, device and system
EP1770620A3 (en) Method for modelling processing procedures
CN103136364A (en) Cluster database system and data query processing method thereof
CN110188135A (en) Document generating method and equipment
CN114513410A (en) Method and system for equipment to rapidly access Internet of things platform
CN112181522A (en) Data processing method and device and electronic equipment
CN101201833A (en) System and method for filling PDF document data
CN109976751B (en) Model operation method, related device and computer readable storage medium
CN106850559B (en) Extensible network protocol analysis system and method
US7840735B2 (en) Can system
CN108804197B (en) Dynamic componentization implementation method, device, equipment and storage medium
DE112010005509T5 (en) Robotic system control method and apparatus thereof
CN117669503A (en) Stream PDF processing method and system
CN111930512A (en) Optimized grouping method and system for improving edge acquisition efficiency
CN108829440B (en) Method and system for converting logic configuration array into logic execution command
US10620968B2 (en) Parameter determination device, parameter determination method, and medium
CN113076365B (en) Data synchronization method, device, electronic equipment and storage medium
Li et al. Improved net rewriting system-based approach to model reconfiguration of reconfigurable manufacturing systems
CN100518441C (en) Method for realizing reutilization in printed circuit board design
CN112394972A (en) Cloud application publishing method, device, equipment and storage medium
CN111176591A (en) Printing auditing method, device, equipment and medium based on CUPS system
CN110853327A (en) Ship cabin equipment data field debugging and collecting method and device based on single chip microcomputer

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination