CN114281276A - Service document printing method and device and computer readable medium - Google Patents
Service document printing method and device and computer readable medium Download PDFInfo
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 29
- 230000006870 function Effects 0.000 claims abstract description 4
- 238000004806 packaging method and process Methods 0.000 claims description 12
- 238000006243 chemical reaction Methods 0.000 claims description 2
- 238000005538 encapsulation Methods 0.000 claims 2
- 230000009545 invasion Effects 0.000 abstract description 2
- 210000001503 joint Anatomy 0.000 abstract description 2
- 238000010586 diagram Methods 0.000 description 4
- 238000006467 substitution reaction Methods 0.000 description 2
- 230000004075 alteration Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Images
Landscapes
- Document Processing Apparatus (AREA)
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
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.
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)
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 |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102574404A (en) * | 2009-09-28 | 2012-07-11 | Csr技术公司 | Preview and modification of printable components of a document at a printing device |
US20150242168A1 (en) * | 2014-02-24 | 2015-08-27 | Csr Imaging Us, Lp | Mobile printer controller with high fidelity preview and print job manipulation |
CN109739448A (en) * | 2018-12-26 | 2019-05-10 | 苏州浪潮智能软件有限公司 | A kind of template set suitable for a variety of frameworks beats business design scheme into submission |
CN111596872A (en) * | 2020-05-25 | 2020-08-28 | 上海泛微网络科技股份有限公司 | Data printing method and data printing device |
CN112183043A (en) * | 2019-07-04 | 2021-01-05 | 北京航天长峰科技工业集团有限公司 | Online document synthesis system |
CN113238721A (en) * | 2021-05-11 | 2021-08-10 | 浪潮软件股份有限公司 | OFFICE template printing method for unified government affairs service |
CN113360100A (en) * | 2020-03-06 | 2021-09-07 | 北京京东振世信息技术有限公司 | Data printing method and printing management system |
-
2021
- 2021-12-06 CN CN202111476456.1A patent/CN114281276A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102574404A (en) * | 2009-09-28 | 2012-07-11 | Csr技术公司 | Preview and modification of printable components of a document at a printing device |
US20150242168A1 (en) * | 2014-02-24 | 2015-08-27 | Csr Imaging Us, Lp | Mobile printer controller with high fidelity preview and print job manipulation |
CN109739448A (en) * | 2018-12-26 | 2019-05-10 | 苏州浪潮智能软件有限公司 | A kind of template set suitable for a variety of frameworks beats business design scheme into submission |
CN112183043A (en) * | 2019-07-04 | 2021-01-05 | 北京航天长峰科技工业集团有限公司 | Online document synthesis system |
CN113360100A (en) * | 2020-03-06 | 2021-09-07 | 北京京东振世信息技术有限公司 | Data printing method and printing management system |
CN111596872A (en) * | 2020-05-25 | 2020-08-28 | 上海泛微网络科技股份有限公司 | Data printing method and data printing device |
CN113238721A (en) * | 2021-05-11 | 2021-08-10 | 浪潮软件股份有限公司 | OFFICE template printing method for unified government affairs service |
Cited By (2)
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 |
---|---|---|
CN109032521B (en) | Storage volume creation method, device, server and storage medium | |
WO2019153549A1 (en) | Method and apparatus for dynamically generating api, computer device and storage medium | |
US9335963B2 (en) | Method of managing print jobs using virtual print identity | |
CN110008195B (en) | Method, device and system for dynamically configuring html (hypertext markup language) to pdf (pdf) | |
CN102662928A (en) | Rich text editing method for importing documents and device thereof | |
CN105824788B (en) | A kind of method and system that PowerPoint file is converted to word document | |
KR20030013778A (en) | Workflow System Capable of Version Management of Documents and the Method of Version Management of Documents Using the Same | |
CN101071374A (en) | Window system and its interface editing method | |
CN102624881A (en) | Mobile-device-oriented service cache system architecture and development method | |
CN101075989B (en) | Method and system for verifying field validity | |
CN114281276A (en) | Service document printing method and device and computer readable medium | |
CN110851082A (en) | Container butt joint optical fiber network storage method | |
CN111935738A (en) | Method and system for multi-operator core network docking MEC | |
US7817309B2 (en) | Double filter fax cover page | |
CN108205482A (en) | File mount restoration methods | |
CN110399232A (en) | Paste processing method, device, equipment and computer readable storage medium | |
CN101340688B (en) | Configuration script configuring method based on strip operation tag in network management system | |
CN110851089A (en) | Web-based print middleware system | |
CN114489950A (en) | Component adapting method and device, electronic equipment and storage medium | |
JP2006126941A (en) | Image processor, image processing method, image processing control program, and storage medium | |
JP4642903B2 (en) | Message conversion system and method with enhanced context recognition | |
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 | |
CN104423897A (en) | Extensible printing document preprocessing system | |
EP3296856A1 (en) | Information processing apparatus, method, and program |
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 |