CN114281276A - Service document printing method and device and computer readable medium - Google Patents

Service document printing method and device and computer readable medium Download PDF

Info

Publication number
CN114281276A
CN114281276A CN202111476456.1A CN202111476456A CN114281276A CN 114281276 A CN114281276 A CN 114281276A CN 202111476456 A CN202111476456 A CN 202111476456A CN 114281276 A CN114281276 A CN 114281276A
Authority
CN
China
Prior art keywords
document
service
template
word
printing
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
CN202111476456.1A
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.)
Inspur Software Co Ltd
Original Assignee
Inspur Software 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 Inspur Software Co Ltd filed Critical Inspur Software Co Ltd
Priority to CN202111476456.1A priority Critical patent/CN114281276A/en
Publication of CN114281276A publication Critical patent/CN114281276A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention relates to the field of document printing, and particularly provides a service document printing method.A matter list interface and a matter field interface of government affair application are registered in an operation platform, and the operation platform encapsulates a template and configures a relevant API (application programming interface) to perform template online editing operation and storage service; calling an API (application programming interface) provided by the operation platform during document printing, realizing service data replacement by the background of the operation platform, returning to an online WORD (WORD document or portable document format) document or PDF (portable document format) file replaced by service data, and providing functions of online editing, previewing and printing of government affair application. Compared with the prior art, the invention takes the platform as the center, integrates external interfaces, provides template configuration and printing service, supports secondary edition of the printing front file, has more flexible printing mode, has no invasion in butt joint and is independent of the platform.

Description

Service document printing method and device and computer readable medium
Technical Field
The invention relates to the field of document printing, and particularly provides a service document printing method, a service document printing device and a computer readable medium.
Background
There is currently a great demand in the government industry for paper documents, such as: receipt printing, form printing, delivery lists, and the like. The current mainstream document printing mode mainly adopts a mode that a client analyzes a printing template, replaces service data and then prints, and mainly adopts a mode that a browser analyzes a module file or uses an NTKO component.
The method has the problems that the template configuration is complex, the requirement on professional technology is high, the pattern adjustment is difficult during printing and previewing, and printing is inflexible.
Disclosure of Invention
Aiming at the defects of the prior art, the invention provides a service document printing method with strong practicability.
A further technical task of the present invention is to provide a service document printing apparatus that is reasonable in design, safe and practical.
It is a further technical task of the present invention to provide a computer readable medium.
The technical scheme adopted by the invention for solving the technical problems is as follows:
a service document printing method, a matter list interface and a matter field interface of government affair application are registered in an operation platform, and the operation platform encapsulates a template and configures a relevant API (application programming interface), and performs template online editing operation and storage service;
calling an API (application programming interface) provided by the operation platform during document printing, realizing service data replacement by the background of the operation platform, returning to an online WORD (WORD document or portable document format) document or PDF (portable document format) file replaced by service data, and providing functions of online editing, previewing and printing of government affair application.
Furthermore, business personnel select an application printing template required to be configured according to the registered document list, the operating platform renders the registered field list, ONLYOFFICE is called in an API packaging mode to realize online template editing, each application field is inserted into OFFICE WORD, a POI-TL template engine is drawn, and the template is stored, edited and issued.
Furthermore, the running platform calls an interface registered by the government affair application to acquire corresponding data, encapsulates the API request to open the ONLYOFFICE online document editor, and returns the online document editing address.
Further, the service personnel configures the document template, inserts the corresponding field into the document editor, generates a POI-TL template engine file, calls an ONLYOFFICE server by the operation platform packaging API to update the template file, saves the WORD template returned by the ONLYOFFICE server to the operation platform, and returns the WORD template successfully.
Furthermore, when the document is printed, the government affair application initiates calling a WORD/PDF document printing service interface, the running platform loads the configured template file according to the printing service interface called by the government affair application, the running platform replaces template data of the stored template file into business data according to the POI-TL template engine, and the client acquires the WORD online document or PDF to edit, preview and print the WORD online document or PDF according to the WORD or PDF called by the application.
Further, when the WORD or PDF is called by the application, if the WORD is called, the running platform returns the WORD online editing document loaded with the service data;
if the called PDF is the PDF, the operation platform calls ONLYOFFICE document conversion service, and the WORD of the service data is converted into the PDF to be returned.
Further, the operation platform acquires a template engine file, replaces the template data with service data, generates a new preview file WORD or PDF, and returns a WORD online document address of the converted service data if the WORD online document address is printed;
if the PDF is printed, the packaging interface calls ONLYOFFICE document forwarding service to obtain the PDF file return of the converted service data.
Further, after the service personnel select preview and printing according to the WORD or PDF file, the operation platform deletes the temporary file and saves the calling record;
and packaging the API interface, and clearing the ONLYOFFICE server cache file.
A service document printing apparatus comprising: at least one memory and at least one processor;
the at least one memory to store a machine readable program;
the at least one processor is configured to invoke the machine readable program to perform a service document printing method.
A computer readable medium having stored thereon computer instructions which, when executed by a processor, cause the processor to execute a method of service document printing.
Compared with the prior art, the service document printing method, the service document printing device and the computer readable medium have the following outstanding beneficial effects:
the service personnel do not need to install any component or application, so that the operation and maintenance cost is reduced; and a specific browser does not need to be installed, so that the browser compatibility of the application is greatly improved. The OFFICE WORD mode is adopted, the configuration is simple, and the learning cost is low;
the platform is used as the center, external interfaces are unified, template configuration and printing services are provided, secondary edition of printing forefiles is supported, the printing mode is more flexible, the butt joint is free of invasion, and the platform is independent.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a schematic diagram (one) of a document template configuration flow in a service document printing method;
FIG. 2 is a schematic diagram of a document template configuration flow in a method for printing a service document;
FIG. 3 is a schematic diagram (one) of a document printing flow in a service document printing method;
fig. 4 is a schematic diagram (two) of a document printing flow in a service document printing method.
Detailed Description
The present invention will be described in further detail with reference to specific embodiments in order to better understand the technical solutions of the present invention. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
A preferred embodiment is given below:
as shown in fig. 1 to 4, in the service document printing method in this embodiment, a matter list interface and a matter field interface of a government affair application are registered in an operation platform, and the operation platform encapsulates a template configuration related API, and performs template online editing operation and storage service;
calling an API (application programming interface) provided by the operation platform during document printing, realizing service data replacement by the background of the operation platform, returning to an online WORD (WORD document or portable document format) document or PDF (portable document format) file replaced by service data, and providing functions of online editing, previewing and printing of government affair application.
The business personnel select an application printing template required to be configured according to the registered document list, the operation platform renders a registered field list, ONLYOFFICE is called in a packaging API mode to realize online template editing, each application field is inserted into OFFICE WORD, a POI-TL template engine is drawn, and the template is stored, edited and released.
The operating platform calls an interface registered by the government affair application to acquire corresponding data, and the packaging API requests to open the ONLYOFFICE online document editor and returns an online document editing address.
And the service personnel configures the document template, inserts the corresponding field into the document editor, generates a POI-TL template engine file, calls an ONLYOFFICE server by the operation platform packaging API to update the template file, stores the WORD template returned by the ONLYOFFICE server to the operation platform and returns the WORD template successfully.
When a document is printed, a government affair application initiates and calls a WORD/PDF document printing service interface, an operation platform loads a configured template file according to the printing service interface called by the government affair application, the operation platform replaces template data of the stored template file into service data according to a POI-TL template engine, and a client acquires a WORD online document or PDF to edit, preview and print according to the WORD or PDF called by the application.
The method comprises the steps that a running platform obtains a template engine file, replaces template data with service data, generates a new preview file WORD or PDF, and returns a WORD online document address of converted service data if the WORD is printed;
if the PDF is printed, the packaging interface calls ONLYOFFICE document forwarding service to obtain the PDF file return of the converted service data.
After the service personnel select preview and printing according to the WORD or PDF file, the operation platform deletes the temporary file and saves the calling record; and packaging the API interface, and clearing the ONLYOFFICE server cache file.
A service document printing apparatus comprising: at least one memory and at least one processor;
the at least one memory to store a machine readable program;
the at least one processor is configured to invoke the machine readable program to perform a service document printing method.
A computer readable medium having stored thereon computer instructions which, when executed by a processor, cause the processor to execute a method of service document printing.
The above embodiments are only specific ones of the present invention, and the scope of the present invention includes but is not limited to the above embodiments, and any suitable changes or substitutions that may be made by one of ordinary skill in the art according to the claims of a service document printing method, apparatus and computer-readable medium of the present invention shall fall within the scope of the present invention.
Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that changes, modifications, substitutions and alterations can be made in these embodiments without departing from the principles and spirit of the invention, the scope of which is defined in the appended claims and their equivalents.

Claims (10)

1. A service document printing method is characterized in that a matter list interface and a matter field interface of government affair application are registered in an operation platform, and the operation platform encapsulates a template and configures a relevant API (application programming interface) to perform template online editing operation and storage service;
calling an API (application programming interface) provided by the operation platform during document printing, realizing service data replacement by the background of the operation platform, returning to an online WORD (WORD document or portable document format) document or PDF (portable document format) file replaced by service data, and providing functions of online editing, previewing and printing of government affair application.
2. The method of claim 1, wherein the business personnel selects an application printing template to be configured according to the registered document list, the operation platform renders the registered field list, the ONLYOFFICE is called by a packaging API mode to realize online template editing, each application field is inserted into OFFICE WORD, a POI-TL template engine is drawn, and the template is stored, edited and released.
3. The method for printing the service document according to claim 2, wherein the operation platform calls an interface registered by the government affairs application to acquire the corresponding data, and the encapsulation API requests to open an onlyof online document editor and return an online document editing address.
4. The method of claim 3, wherein the business personnel configure the document template, insert corresponding fields into the document editor, generate the POI-TL template engine file, the runtime platform encapsulation API calls the ONLYOFFICE server to update the template file, save the WORD template returned by the ONLYOFFICE server to the runtime platform, and return successfully.
5. The service document printing method according to claim 4, wherein when the document is printed, the government application initiates calling a WORD/PDF document printing service interface, the running platform loads the configured template file according to the printing service interface called by the government application, the running platform replaces the template data of the stored template file into service data according to the POI-TL template engine, and the client acquires the WORD online document or PDF to edit, preview and print the WORD online document or PDF according to the WORD or PDF called by the application.
6. The method for printing the service document as claimed in claim 5, wherein when the WORD or PDF is called by the application, if the WORD is called, the running platform returns the WORD online editing document loaded as the service data;
if the called PDF is the PDF, the operation platform calls ONLYOFFICE document conversion service, and the WORD of the service data is converted into the PDF to be returned.
7. The method for printing the service document according to claim 6, wherein the operation platform acquires a template engine file, replaces the template data with the service data, generates a new preview file WORD or PDF, and returns the WORD online document address of the converted service data if the WORD printing is performed;
if the PDF is printed, the packaging interface calls ONLYOFFICE document forwarding service to obtain the PDF file return of the converted service data.
8. The method of claim 7, wherein after the service personnel selects preview and print according to the WORD or PDF file, the operation platform deletes the temporary file and saves the call record;
and packaging the API interface, and clearing the ONLYOFFICE server cache file.
9. A service document printing apparatus, comprising: at least one memory and at least one processor;
the at least one memory to store a machine readable program;
the at least one processor, configured to invoke the machine readable program, to perform the method of any of claims 1 to 8.
10. A computer readable medium having stored thereon computer instructions which, when executed by a processor, cause the processor to perform the method of any of claims 1 to 8.
CN202111476456.1A 2021-12-06 2021-12-06 Service document printing method and device and computer readable medium Pending CN114281276A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111476456.1A CN114281276A (en) 2021-12-06 2021-12-06 Service document printing method and device and computer readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111476456.1A CN114281276A (en) 2021-12-06 2021-12-06 Service document printing method and device and computer readable medium

Publications (1)

Publication Number Publication Date
CN114281276A true CN114281276A (en) 2022-04-05

Family

ID=80870893

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111476456.1A Pending CN114281276A (en) 2021-12-06 2021-12-06 Service document printing method and device and computer readable medium

Country Status (1)

Country Link
CN (1) CN114281276A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115098047A (en) * 2022-05-24 2022-09-23 上海纽酷信息科技有限公司 Printing platform based on Word template and functional plug-in

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115098047A (en) * 2022-05-24 2022-09-23 上海纽酷信息科技有限公司 Printing platform based on Word template and functional plug-in
CN115098047B (en) * 2022-05-24 2024-04-23 上海纽酷信息科技有限公司 Printing platform based on Word template and function plug-in components

Similar Documents

Publication Publication Date Title
CN105653508B (en) A kind of management method of document template, the method and relevant apparatus for calling document
KR100414406B1 (en) Workflow System Capable of Version Management of Documents and the Method of Version Management of Documents Using the Same
US9122716B1 (en) Database upgrade management
CN109032521A (en) Storage volume creation method, device, server and storage medium
CN100472438C (en) Window system and its interface editing method
CN110008195B (en) Method, device and system for dynamically configuring html (hypertext markup language) to pdf (pdf)
CN105824788B (en) A kind of method and system that PowerPoint file is converted to word document
CN104272292A (en) Network resource deployment for cloud-based services
CN102624881A (en) Mobile-device-oriented service cache system architecture and development method
CN111935738A (en) Method and system for multi-operator core network docking MEC
CN114281276A (en) Service document printing method and device and computer readable medium
CN101075989B (en) Method and system for verifying field validity
US7817309B2 (en) Double filter fax cover page
CN108205482A (en) File mount restoration methods
CN101340688B (en) Configuration script configuring method based on strip operation tag in network management system
CN114489950A (en) Component adapting method and device, electronic equipment and storage medium
CN108920180A (en) A kind of creation method and server of service orchestration template
CN109714208A (en) A kind of equipment is included in method, storage medium and the electronic equipment of network management
JP2006126941A (en) Image processor, image processing method, image processing control program, and storage medium
US8407300B2 (en) Recording medium with electronic mail management program recorded, communication terminal, and electronic mail management method
KR100680034B1 (en) Context cognizance enhancing message transform system, and method for the same
CN110851089A (en) Web-based print middleware system
US7577693B2 (en) Performing multiple actions on a spool file by assigning a particular action to be performed on each segment of the spool file
CN106330519A (en) Communication method and system for messages among network management systems
JP6833419B2 (en) Information processing equipment, methods and programs

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