CN114527946A - Silent print client based on browser - Google Patents

Silent print client based on browser Download PDF

Info

Publication number
CN114527946A
CN114527946A CN202210032114.9A CN202210032114A CN114527946A CN 114527946 A CN114527946 A CN 114527946A CN 202210032114 A CN202210032114 A CN 202210032114A CN 114527946 A CN114527946 A CN 114527946A
Authority
CN
China
Prior art keywords
module
browser
client
socket
puppeteer
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
CN202210032114.9A
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.)
Hangzhou Shiatomic Technology Co ltd
Original Assignee
Hangzhou Shiatomic Technology 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 Hangzhou Shiatomic Technology Co ltd filed Critical Hangzhou Shiatomic Technology Co ltd
Priority to CN202210032114.9A priority Critical patent/CN114527946A/en
Publication of CN114527946A publication Critical patent/CN114527946A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1278Dedicated interfaces to print systems specifically adapted to adopt a particular infrastructure
    • G06F3/1285Remote printer device, e.g. being remote from client or server
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1202Dedicated interfaces to print systems specifically adapted to achieve a particular effect
    • G06F3/1203Improving or facilitating administration, e.g. print management
    • 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)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention belongs to the technical field of cloud processing, and particularly relates to a silent printing client based on a browser, which comprises an express module, a socket Io module, a puppeter module and a pdftopriner module, wherein the express module is used for starting local web service, the socket Io module is used for realizing socket communication between the client and the browser, the puppeter module is used for converting a browser document into pdf, and an electron + puppeter technical framework is adopted, so that the realization of the cross-system silent printing is realized, the silent printing resource of the browser under a mac system is realized, all contents in the browser can be pushed to a printer to print silently, a printing interface is not required to be opened, a url address is supported, and a picture and html fragment are pushed to the printing client, and the use is more convenient.

Description

Silent print client based on browser
Technical Field
The invention relates to the technical field of cloud processing, in particular to a silent printing client based on a browser.
Background
At present, a printing client based on a browser is almost not compatible with a mac end, more than all printing clients based on a window system are inconvenient to use in daily use, and therefore a printing client compatible with multiple systems and supporting multiple browsers is needed to support the requirement of silent printing from the browser.
Disclosure of Invention
The invention aims to provide a silent printing client based on a browser to solve the problem of inconvenient use of the printing client without a compatible mac end in the background art.
In order to achieve the purpose, the invention provides the following technical scheme: the silent printing client based on the browser comprises an express module, a socket.io module, a puppeter module and a pdftopriner module, wherein the socket.io module is connected with the express module and the puppeter module, the puppeter module is connected with the pdftopriner module, the express module is used for opening local web services, the socket.io module is used for realizing socket communication between the client and the browser, the puppeter module is used for converting a browser document into a pdf, and the pdftopriner module is used for sending a pdf file in the puppeterer module to a printer for printing.
Preferably, the client is based on a node module under an electron technology architecture.
Preferably, the express module is used for a server which exclusively provides Web page resources to the outside, and the output stream of the client in the socket.io module is the input stream of the browser, and the output stream of the browser is the input stream of the client.
Preferably, the puppeteer module is used for screenshot of a webpage, generating PDF, crawling of an SPA or SSR website, automatic UI test, form submission simulation, keyboard input and clicking.
Compared with the prior art, the invention has the beneficial effects that:
the invention adopts the technical framework of electron + puppeteer, realizes the realization of cross-system silent printing, realizes the silent printing resource of a browser under a mac system, supports all contents in the browser to be pushed to a printer to be printed silently, does not need to open a printing interface, supports url addresses, pushes pictures and html fragments to a printing client, realizes the cross-end silent printing requirement based on the browser, solves the problem of the silent printing under the mac, and is more convenient to use.
Drawings
FIG. 1 is a logic block diagram of the system of the present invention.
In the figure: 1. an express module; 2. io module; 3. a puppeteer module; 4. pdftopriner module.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. 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.
In the description of the present invention, it is to be understood that the terms "upper", "lower", "front", "rear", "left", "right", "top", "bottom", "inner", "outer", and the like, indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, are merely for convenience in describing the present invention and simplifying the description, and do not indicate or imply that the device or element being referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, should not be construed as limiting the present invention.
Example (b):
referring to fig. 1, the present invention provides a technical solution: the silent printing client based on the browser comprises an express module 1, a socket.io module 2, a puppeter module 3 and a pdftopriter module 4, wherein the socket.io module 2 is connected with the express module 1 and the puppeter module 3, the puppeter module 3 is connected with the pdftopriter module 4, the express module 1 is used for opening local web services, the socket.io module 2 is used for realizing socket communication between the client and the browser, the puppeter module 3 is used for converting browser documents into pdfs, and the pdftopriter module 4 is used for sending the pdf files in the puppeter module 3 to a printer for printing.
The client is based on a node module under an electron technical architecture, the express module 1 is used for a server which specially provides Web webpage resources to the outside, the output stream of the client in the socket.io module 2 is the input stream of a browser, the output stream of the browser is the input stream of the client, and the puppeteer module 3 is used for screenshot of a webpage, generating PDF, crawling of an SPA or SSR website, automatic UI test, simulation of form submission, keyboard input and clicking.
While there have been shown and described the fundamental principles and essential features of the invention and advantages thereof, it will be apparent to those skilled in the art that the invention is not limited to the details of the foregoing exemplary embodiments, but is capable of other specific forms without departing from the spirit or essential characteristics thereof; the present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein, and any reference signs in the claims are not intended to be construed as limiting the claim concerned.
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 (4)

1. A browser-based silent print client, characterized by: the system comprises an express module (1), a socket.io module (2), a puppeteer module (3) and a pdftopriter module (4), wherein the socket.io module (2) is connected with the express module (1) and the puppeteer module (3), the puppeteer module (3) is connected with the pdftopriter module (4), the express module (1) is used for opening local web services, the socket.io module (2) is used for realizing socket communication between a client and a browser, the puppeteer module (3) is used for converting a browser document into pdf, and the pdftopriter module (4) is used for sending pdf files in the puppeteer module (3) to a printer for printing.
2. The browser-based silent print client of claim 1, wherein: the client is based on a node module under an electron technology architecture.
3. The browser-based silent print client of claim 1, wherein: the express module (1) is used for a server which specially provides Web webpage resources to the outside, and the output stream of a client in the socket.io module (2) is the input stream of a browser, and the output stream of the browser is the input stream of the client.
4. The browser-based silent print client of claim 1, wherein: the puppeteer module (3) is used for performing automatic tests on screenshot of a webpage, generating PDF, crawling an SPA or SSR website, UI, simulating form submission, inputting by a keyboard and clicking.
CN202210032114.9A 2022-01-12 2022-01-12 Silent print client based on browser Pending CN114527946A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210032114.9A CN114527946A (en) 2022-01-12 2022-01-12 Silent print client based on browser

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210032114.9A CN114527946A (en) 2022-01-12 2022-01-12 Silent print client based on browser

Publications (1)

Publication Number Publication Date
CN114527946A true CN114527946A (en) 2022-05-24

Family

ID=81621077

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210032114.9A Pending CN114527946A (en) 2022-01-12 2022-01-12 Silent print client based on browser

Country Status (1)

Country Link
CN (1) CN114527946A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB0010447D0 (en) * 1999-05-10 2000-06-14 Hewlett Packard Co Abstract of a web based forms printing solution
JP2002287931A (en) * 2000-12-28 2002-10-04 Canon Inc Information processor, print control device, pull-print system, information processing method, data processing method, storage medium and program
EP2178264A1 (en) * 2008-10-17 2010-04-21 Canon Europa N.V. Multi protocol print client-server communication
US20100110473A1 (en) * 2008-10-30 2010-05-06 Xerox Corporation System and method for managing a print job in a printing system
US20110242554A1 (en) * 2008-12-12 2011-10-06 Psi Systems, Inc. System and method for providing an extensible multinational postage service and system and method that delivers printable postage to a client device
CN110187848A (en) * 2019-04-30 2019-08-30 广州迅维信息安全技术有限公司 Method of printing and device based on WEB terminal
CN112965673A (en) * 2021-03-24 2021-06-15 北京有竹居网络技术有限公司 Content printing method, device, equipment and storage medium
CN113608706A (en) * 2021-07-01 2021-11-05 浪潮软件股份有限公司 Method for printing tickets in government affair hall and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB0010447D0 (en) * 1999-05-10 2000-06-14 Hewlett Packard Co Abstract of a web based forms printing solution
JP2002287931A (en) * 2000-12-28 2002-10-04 Canon Inc Information processor, print control device, pull-print system, information processing method, data processing method, storage medium and program
EP2178264A1 (en) * 2008-10-17 2010-04-21 Canon Europa N.V. Multi protocol print client-server communication
US20100110473A1 (en) * 2008-10-30 2010-05-06 Xerox Corporation System and method for managing a print job in a printing system
US20110242554A1 (en) * 2008-12-12 2011-10-06 Psi Systems, Inc. System and method for providing an extensible multinational postage service and system and method that delivers printable postage to a client device
CN110187848A (en) * 2019-04-30 2019-08-30 广州迅维信息安全技术有限公司 Method of printing and device based on WEB terminal
CN112965673A (en) * 2021-03-24 2021-06-15 北京有竹居网络技术有限公司 Content printing method, device, equipment and storage medium
CN113608706A (en) * 2021-07-01 2021-11-05 浪潮软件股份有限公司 Method for printing tickets in government affair hall and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
朱敏;: "基于Web的可视化套打功能的设计与实现", 计算机应用与软件, no. 07, pages 202 - 205 *

Similar Documents

Publication Publication Date Title
TW529261B (en) Method of and system for transferring data over a wireless communications network
US9021035B2 (en) Formatting rich text data into a JSON array
US20020010746A1 (en) System, method, apparatus and computer program product for operating a web site by electronic mail
JP2006164264A (en) Flexible transfer of typed application data
US6928462B2 (en) System and method for distributed processing of non-processable elements of a document to be rendered on a client
TWI239180B (en) Method and apparatus for providing extensible scalable transcoding of multimedia content
CN107450869A (en) The online print system and method for a kind of PDF electronic invoices layout files
US11675744B2 (en) Performing a code conversion in a smaller target encoding space
WO2010072128A1 (en) Method, gateway device and system for network interconnection
WO2021093673A1 (en) E-mail sending method, apparatus and device, and computer-readable storage medium
CN112187801A (en) Website access method, device and system
KR20020056213A (en) Apparatus and method for internet contents transformation for wireless internet in IMT2000
CN113382083A (en) Webpage screenshot method and device
CN106341453A (en) High-speed virtual desktop agent building method and high-speed virtual desktop agent building system based on HTML5
CN101771928A (en) Method and system and proxy server for Webpage transmitting
EP1593050A1 (en) System and method for processing a message in a server of a computer network sent by a mobile computer device
EP1667404B1 (en) Method for the transmission of structured data using a byte stream
US20030110285A1 (en) Apparatus and method of generating an XML document to represent network protocol packet exchanges
CN114527946A (en) Silent print client based on browser
US20050288044A1 (en) System and method for using soap to invoke web services on handheld devices
US7769876B2 (en) Apparatus and method of using XML documents to perform network protocol simulation
US20040019633A1 (en) MIME encoding of values for web procedure calls
Lee et al. Ubiquitous access for collaborative information system using SVG
US20110078254A1 (en) Method and System for the Conversion and Processing of Documents in a Hybrid Network Environment
JP3857920B2 (en) E-mail translation processing server, e-mail translation processing method, and e-mail translation processing 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