WO2022199376A1 - Content printing method and apparatus, and device and storage medium - Google Patents

Content printing method and apparatus, and device and storage medium Download PDF

Info

Publication number
WO2022199376A1
WO2022199376A1 PCT/CN2022/079717 CN2022079717W WO2022199376A1 WO 2022199376 A1 WO2022199376 A1 WO 2022199376A1 CN 2022079717 W CN2022079717 W CN 2022079717W WO 2022199376 A1 WO2022199376 A1 WO 2022199376A1
Authority
WO
WIPO (PCT)
Prior art keywords
printer
print
printing
content
target application
Prior art date
Application number
PCT/CN2022/079717
Other languages
French (fr)
Chinese (zh)
Inventor
李嘉成
Original Assignee
北京有竹居网络技术有限公司
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 北京有竹居网络技术有限公司 filed Critical 北京有竹居网络技术有限公司
Publication of WO2022199376A1 publication Critical patent/WO2022199376A1/en

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/1202Dedicated interfaces to print systems specifically adapted to achieve a particular effect
    • G06F3/1203Improving or facilitating administration, e.g. print management
    • G06F3/1204Improving or facilitating administration, e.g. print management resulting in reduced user or operator actions, e.g. presetting, automatic actions, using hardware token storing data
    • 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/1223Dedicated interfaces to print systems specifically adapted to use a particular technique
    • G06F3/1237Print job management
    • G06F3/1268Job submission, e.g. submitting print job order or request not the print data itself
    • 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

Definitions

  • the embodiments of the present disclosure relate to the field of printing technologies, for example, to a content printing method, apparatus, device, and storage medium.
  • the embodiments of the present disclosure provide a content printing method, device, device, and storage medium, which can realize the silent printing of web page content and improve the printing efficiency of web page content.
  • an embodiment of the present disclosure provides a method for printing content, including:
  • a print request sent by the print requester is received, and a print operation is performed on the content to be printed according to the print request.
  • an embodiment of the present disclosure also provides a method for printing content, including:
  • an embodiment of the present disclosure further provides a content printing apparatus, including:
  • connection establishment module configured to start a set communication service, and establish a connection with the print requester based on the set communication service
  • a usable printer acquisition module configured to receive printer request information sent by the print requesting party, obtain usable printers according to the printer request information, and send the usable printer information to the print requesting party;
  • the print operation execution module is configured to receive a print request sent by the print requester, and execute a print operation on the content to be printed according to the print request.
  • an embodiment of the present disclosure discloses a content printing device, including:
  • connection establishment module is set to establish a connection with the target application based on the set communication service
  • a printer request information sending module configured to send printer request information to the target application, so that the target application obtains a usable printer according to the printer request information
  • a print request sending module configured to receive the information of available printers returned by the target application, and send a print request to the target application according to the information of the available printers, so that the target application executes printing according to the print request operate;
  • the print result receiving module is configured to receive the print result returned by the target application.
  • an embodiment of the present disclosure discloses an electronic device, the electronic device comprising:
  • storage means arranged to store one or more programs
  • the one or more processing apparatuses implement the method for printing content according to the embodiments of the present disclosure.
  • an embodiment of the present disclosure discloses a computer-readable medium on which a computer program is stored, and when the program is executed by a processing apparatus, implements the method for printing the content described in the embodiment of the present disclosure.
  • FIG. 1 is a flowchart of a method for printing content in an embodiment of the present disclosure
  • FIG. 2 is a flowchart of a method for printing content in an embodiment of the present disclosure
  • FIG. 3 is a signaling diagram of a method for printing content in an embodiment of the present disclosure
  • FIG. 4 is a schematic structural diagram of a content printing apparatus according to an embodiment of the present disclosure.
  • FIG. 5 is a schematic structural diagram of a content printing apparatus according to an embodiment of the present disclosure.
  • FIG. 6 is a schematic structural diagram of an electronic device in an embodiment of the present disclosure.
  • the term “including” and variations thereof are open-ended inclusions, ie, "including but not limited to”.
  • the term “based on” is “based at least in part on.”
  • the term “one embodiment” means “at least one embodiment”; the term “another embodiment” means “at least one additional embodiment”; the term “some embodiments” means “at least some embodiments”. Relevant definitions of other terms will be given in the description below.
  • FIG. 1 is a flowchart of a method for printing content provided by an embodiment of the present disclosure. This embodiment is applicable to the case of printing web page content, and the method can be executed by a content printing device, which can be implemented by hardware and/or or software, and can generally be integrated into a device with a content printing function, which can be an electronic device such as a server, a mobile terminal, or a server cluster. As shown in Figure 1, the method includes the following steps:
  • Step 110 start the setting communication service, and establish a connection with the print requester based on the setting communication service.
  • the set communication service may be a full-duplex communication service based on a Transmission Control Protocol (Transmission Control Protocol, TCP), such as a websocket service.
  • TCP Transmission Control Protocol
  • the print requester can be a browser or application software.
  • the target application starts the websocket service, and when the print requester needs to print, a connection is established between the print requester and the target application through the websocket service for data transmission.
  • the target application may be software developed based on a set framework (eg, Electron).
  • Step 120 Receive the printer request information sent by the print requester, obtain available printers according to the printer request information, and send the available printer information to the print requester.
  • the printer that can be used can be understood as a printer that is currently in an idle state.
  • the print requester after the print requester establishes a connection with the target application through the websocket service, it sends the printer request information to the target application to obtain the information of the currently available printer.
  • obtaining available printers according to the printer request information includes: obtaining a list of printers associated with the terminal where the target application resides; and determining a printer in an idle working state in the printer list as available printers.
  • the terminal will be associated with multiple printers at the same time, and the terminal can obtain the working status of the associated printers in real time.
  • the target application receives the printer request information request sent by the browser, it will obtain the list of printers associated with the terminal, and then work A printer in an idle state is determined to be a usable printer.
  • Step 130 Receive a print request sent by the print requester, and perform a print operation on the content to be printed according to the print request.
  • the print request carries a page address, and the page address may be represented by a uniform resource locator (Uniform Resource Locato, URL).
  • the content to be printed may be the content currently displayed on the page.
  • the print requester After receiving the information that the printer can be used, the print requester sends a print request carrying a page address to the target application. After receiving the web page print request, the target application performs a print operation on the content to be printed.
  • the manner of performing the printing operation on the content to be printed according to the print request may be: obtaining the content to be printed according to the page address; and sending the content to be printed to a printer that can be used for printing.
  • the target application accesses the data source where the content to be printed is located according to the page address, directly pulls the content to be printed from the data source, and sends the pulled content to be printed to an available printer for printing.
  • the solution of this embodiment realizes the silent printing of online content with the help of the target application.
  • the method of sending the print content to a printable printer may be: creating an implicit preview window; previewing the to-be-printed content in the implicit preview window; sending the previewed to-be-printed content to a printable printer for printing.
  • the implicit preview window can be understood as a window started in the background.
  • the target application previews the to-be-printed content in the implicit preview window, and sends the previewed to-be-printed content to a printer that can be used for printing.
  • the content to be printed is previewed in the implicit preview window, and the content can be printed without the user's perception.
  • the method of sending the content to be printed to the available printer for printing may be: starting an implicit printing process; sending the content to be printed to the available printer for printing through the implicit printing process.
  • starting the implicit printing process can be understood as allocating and scheduling resources for printing requests in the background.
  • the target application starts an implicit printing process, and sends the content to be printed to a usable printer for printing through the implicit printing process.
  • the content to be printed is sent to a printer that can be used for printing through the implicit printing process, so that the content can be printed without the user's perception.
  • the following steps are further included: acquiring a print result, and returning the print result to the print requester.
  • the technical solution of the embodiment of the present disclosure is to start the setting communication service, and establish a connection with the print requester based on the setting communication service; receive the printer request information sent by the print requester, obtain the available printers according to the printer request information, and set the available printers.
  • the information of the printer is sent to the print requester; the print request sent by the print requester is received, and a print operation is performed on the content to be printed according to the print request.
  • FIG. 2 is a flowchart of a content printing method provided by an embodiment of the present disclosure. As shown in Figure 2, the method includes the following steps:
  • Step 210 establishing a connection with the target application based on the set communication service.
  • the set communication service may be a websocket service.
  • the target application starts the websocket service, and when the print requester needs to print, a connection is established between the print requester and the target application through the websocket service for data transmission.
  • Step 220 Send the printer request information to the target application, so that the target application obtains the available printer according to the printer request information.
  • the print requester After the print requester establishes a connection with the target application through the websocket service, it sends the printer request information to the target application, so that the target application obtains the printers in the idle state from the printer list, and the target application returns the information of the available printers to the print request. to obtain information on currently available printers.
  • Step 230 Receive information of available printers returned by the target application, and send a print request to the target application according to the information of available printers, so that the target application performs a printing operation according to the print request.
  • sending a print request to the target application according to the available printer information, so that the target application performs a printing operation according to the print request may be: sending a print request carrying a page address to the target application according to the available printer information, so that the target application can perform a printing operation according to the available printer information.
  • the address obtains the to-be-printed content to perform a print operation on the to-be-printed content.
  • the page address may be represented by a Uniform Resource Locato (URL).
  • URL Uniform Resource Locato
  • Step 240 Receive the print result returned by the target application.
  • the printing result may include printing success or printing failure.
  • the target application sends the to-be-printed content to a printable printer, obtains the print result, and returns the print result to the print requester, so that the print requester can perform corresponding business processing on the print result.
  • the technical solution of this embodiment is based on setting up a communication service to establish a connection with a target application; sending printer request information to the target application, so that the target application obtains a usable printer according to the printer request information; receiving the information of the usable printer returned by the target application, and Send a print request to the target application according to the information of the available printer, so that the target application executes the printing operation according to the print request; and receive the print result returned by the target application.
  • the target application and the print requester establish a connection by setting the communication service, the content of the print requester can be silently printed without previewing the content, which can improve the printing efficiency of the content.
  • FIG. 3 is a signaling diagram of a content printing method disclosed in an embodiment of the present disclosure. As shown in Figure 3, the method includes the following steps:
  • Step 1 the browser and the Electron application establish a websocket connection
  • Step 2 the browser sends the available printer request information to the Electron application
  • Step 3 the Electron application returns the information that the printer can be used to the browser;
  • Step 4 the browser sends a web page print request to the Electron application
  • Step 5 the Electron application sends a print instruction to the available printer
  • Step 6 the Electron application obtains the print result
  • Step 7 the Electron application returns the print result to the browser
  • Step 8 the browser performs corresponding business processing according to the print result.
  • FIG. 4 is a schematic structural diagram of a printing apparatus of a content disclosed in an embodiment of the present disclosure. As shown in Figure 4, the device includes:
  • the connection establishment module 410 is configured to start the setting communication service, and establish a connection with the print requester based on the setting communication service;
  • the available printer acquisition module 420 is configured to receive the printer request information sent by the print requester, obtain available printers according to the printer request information, and send the available printer information to the print requester;
  • the print operation execution module 430 is configured to receive a print request sent by the print requester, and execute a print operation on the content to be printed according to the print request.
  • printer acquisition module 420 can be used, also set to:
  • the print request carries a page address; the print operation execution module 430 is also set to:
  • the printing operation execution module 430 is further set to:
  • the printing operation execution module 430 is further set to:
  • FIG. 5 is a schematic structural diagram of a printing apparatus of a content disclosed in an embodiment of the present disclosure. As shown in Figure 5, the device includes:
  • the connection establishment module 510 is configured to establish a connection with the target application based on the set communication service
  • the printer request information sending module 520 is configured to send the printer request information to the target application, so that the target application obtains the available printer according to the printer request information;
  • the print request sending module 530 is configured to receive the information of the available printer returned by the target application, and send a print request to the target application according to the information of the available printer, so that the target application performs a printing operation according to the print request;
  • the print result receiving module 540 is configured to receive the print result returned by the target application.
  • the print request sending module 530 is also set to:
  • a print request carrying a page address is sent to the target application according to the available printer information, so that the target application obtains the content to be printed according to the page address, so as to perform a printing operation on the content to be printed.
  • the above-mentioned apparatus can execute the methods provided by all the foregoing embodiments of the present disclosure, and has corresponding functional modules and beneficial effects for executing the above-mentioned methods.
  • the above-mentioned apparatus can execute the methods provided by all the foregoing embodiments of the present disclosure, and has corresponding functional modules and beneficial effects for executing the above-mentioned methods.
  • the electronic devices in the embodiments of the present disclosure may include, but are not limited to, such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablets), PMPs (portable multimedia players), vehicle-mounted terminals (eg, Mobile terminals such as in-vehicle navigation terminals), etc., and stationary terminals such as digital TVs, desktop computers, etc., or various forms of servers, such as stand-alone servers or server clusters.
  • the electronic device shown in FIG. 6 is only an example, and should not impose any limitation on the function and scope of use of the embodiments of the present disclosure.
  • the electronic device 300 may include a processing device (eg, a central processing unit, a graphics processor, etc.) 301, which may be loaded into a random A program in the storage device (RAM) 303 is accessed to perform various appropriate actions and processes.
  • RAM storage device
  • various programs and data required for the operation of the electronic device 300 are also stored.
  • the processing device 301, the ROM 302, and the RAM 303 are connected to each other through a bus 304.
  • An input/output (I/O) interface 305 is also connected to bus 304 .
  • the following devices may be connected to the I/O interface 305: input devices 306 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; including, for example, a liquid crystal display (LCD), speakers, vibration An output device 307 of a computer, etc.; a storage device 308 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 309. Communication means 309 may allow electronic device 300 to communicate wirelessly or by wire with other devices to exchange data.
  • FIG. 6 shows electronic device 300 having various means, it should be understood that not all of the illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
  • embodiments of the present disclosure include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code arranged to perform a recommended method of words.
  • the computer program may be downloaded and installed from the network via the communication device 309, or from the storage device 305, or from the ROM 302.
  • the processing device 301 When the computer program is executed by the processing device 301, the above-mentioned functions defined in the methods of the embodiments of the present disclosure are executed.
  • the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the above two.
  • the computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or a combination of any of the above. More specific examples of computer readable storage media may include, but are not limited to, electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable Programmable read only memory (EPROM or flash memory), fiber optics, portable compact disk read only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
  • a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
  • a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code therein. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing.
  • a computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device .
  • Program code embodied on a computer readable medium may be transmitted using any suitable medium including, but not limited to, electrical wire, optical fiber cable, RF (radio frequency), etc., or any suitable combination of the foregoing.
  • the client and server can use any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol) to communicate, and can communicate with digital data in any form or medium Communication (eg, a communication network) interconnects.
  • HTTP HyperText Transfer Protocol
  • Examples of communication networks include local area networks (“LAN”), wide area networks (“WAN”), the Internet (eg, the Internet), and peer-to-peer networks (eg, ad hoc peer-to-peer networks), as well as any currently known or future development network of.
  • the above-mentioned computer-readable medium may be included in the above-mentioned electronic device; or may exist alone without being assembled into the electronic device.
  • the above-mentioned computer-readable medium carries one or more programs, and when the above-mentioned one or more programs are executed by the electronic device, the electronic device: starts the setting communication service, and communicates with the print requester based on the setting communication service Establish a connection; receive the printer request information sent by the print requester, obtain available printers according to the printer request information, and send the information of the available printers to the print requester; receive the print requester sent The print request is performed, and a print operation is performed on the to-be-printed content according to the print request.
  • the computer-readable storage medium may be a non-transitory computer-readable storage medium.
  • Computer program code for performing operations of the present disclosure may be written in one or more programming languages, including but not limited to object-oriented programming languages—such as Java, Smalltalk, C++, and This includes conventional procedural programming languages - such as the "C" language or similar programming languages.
  • the program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or server.
  • the remote computer may be connected to the user's computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (eg, using an Internet service provider through Internet connection).
  • LAN local area network
  • WAN wide area network
  • each block in the flowchart or block diagrams may represent a module, segment, or portion of code that contains one or more logical functions arranged to implement the specified functions executable instructions.
  • the functions noted in the blocks may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved.
  • each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations can be implemented in dedicated hardware-based systems that perform the specified functions or operations , or can be implemented in a combination of dedicated hardware and computer instructions.
  • the units involved in the embodiments of the present disclosure may be implemented in a software manner, and may also be implemented in a hardware manner. Among them, the name of the unit does not constitute a limitation of the unit itself under certain circumstances.
  • exemplary types of hardware logic components include: Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), Systems on Chips (SOCs), Complex Programmable Logical Devices (CPLDs) and more.
  • FPGAs Field Programmable Gate Arrays
  • ASICs Application Specific Integrated Circuits
  • ASSPs Application Specific Standard Products
  • SOCs Systems on Chips
  • CPLDs Complex Programmable Logical Devices
  • a machine-readable medium may be a tangible medium that may contain or store a program for use by or in connection with the instruction execution system, apparatus or device.
  • the machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium.
  • Machine-readable media may include, but are not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or devices, or any suitable combination of the foregoing.
  • machine-readable storage media would include one or more wire-based electrical connections, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), fiber optics, compact disk read only memory (CD-ROM), optical storage, magnetic storage, or any suitable combination of the foregoing.
  • RAM random access memory
  • ROM read only memory
  • EPROM or flash memory erasable programmable read only memory
  • CD-ROM compact disk read only memory
  • magnetic storage or any suitable combination of the foregoing.
  • an embodiment of the present disclosure discloses a content printing method, including:
  • a print request sent by the print requester is received, and a print operation is performed on the content to be printed according to the print request.
  • obtaining available printers according to the printer request information includes:
  • a printer in an idle working state in the printer list is determined as a usable printer.
  • the print request carries a page address; performing a print operation on the content currently displayed by the browser according to the print request includes:
  • sending the to-be-printed content to the available printer for printing includes:
  • sending the to-be-printed content to the available printer for printing includes:
  • the to-be-printed content is sent to the available printer for printing through the implicit printing process.
  • a content printing method comprising:
  • sending a print request to the target application according to the available printer information, so that the target application performs a printing operation according to the print request including:
  • a print request carrying a page address is sent to the target application according to the usable printer information, so that the target application acquires the content to be printed according to the page address, so as to perform a printing operation on the content to be printed.

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)
  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

Disclosed in the embodiments of the present disclosure are a content printing method and apparatus, and a device and a storage medium. The content printing method comprises: starting a set communication service, and establishing a connection with a printing request party on the basis of the set communication service; receiving printer request information sent by the printing request party, acquiring an available printer according to the printer request information, and sending information of the available printer to the printing request party; and receiving a printing request sent by the printing request party, and executing, according to the printing request, a printing operation on content to be printed.

Description

内容的打印方法、装置、设备及存储介质Content printing method, device, device and storage medium
本申请要求在2021年3月24日提交中国专利局、申请号为202110313486.4的中国专利申请的优先权,该申请的全部内容通过引用结合在本申请中。This application claims the priority of the Chinese Patent Application No. 202110313486.4 filed with the China Patent Office on March 24, 2021, the entire contents of which are incorporated herein by reference.
技术领域technical field
本公开实施例涉及打印技术领域,例如涉及一种内容的打印方法、装置、设备及存储介质。The embodiments of the present disclosure relate to the field of printing technologies, for example, to a content printing method, apparatus, device, and storage medium.
背景技术Background technique
目前,在一些应用场景下,终端通过浏览器访问网页时,若需要打印当前网页的内容,需要将内容下载下来进行预览后进行打印,或者在浏览器的预览窗口预览内容后才能进行打印。即需要对内容进行预览才能执行打印操作。这样打印方式,对于打印量比较大的情况,无法满足效率需求。Currently, in some application scenarios, when a terminal accesses a web page through a browser, if the content of the current web page needs to be printed, the content needs to be downloaded and previewed before printing, or the content can be previewed in the browser's preview window before printing. That is, the content needs to be previewed before printing can be performed. Such a printing method cannot meet the efficiency requirements for the case where the printing volume is relatively large.
发明内容SUMMARY OF THE INVENTION
本公开实施例提供一种内容的打印方法、装置、设备及存储介质,可以实现网页内容的静默打印,提高网页内容的打印效率。The embodiments of the present disclosure provide a content printing method, device, device, and storage medium, which can realize the silent printing of web page content and improve the printing efficiency of web page content.
第一方面,本公开实施例提供了一种内容的打印方法,包括:In a first aspect, an embodiment of the present disclosure provides a method for printing content, including:
启动设定通信服务,并基于所述设定通信服务与打印请求方建立连接;Start the setting communication service, and establish a connection with the print requester based on the setting communication service;
接收所述打印请求方发送的打印机请求信息,根据所述打印机请求信息获取可使用打印机,并将所述可使用打印机的信息发送至所述打印请求方;Receive the printer request information sent by the print requester, obtain available printers according to the printer request information, and send the available printer information to the print requester;
接收所述打印请求方发送的打印请求,根据所述打印请求对待打印内容执行打印操作。A print request sent by the print requester is received, and a print operation is performed on the content to be printed according to the print request.
第二方面,本公开实施例还提供了一种内容的打印方法,包括:In a second aspect, an embodiment of the present disclosure also provides a method for printing content, including:
基于设定通信服务与目标应用建立连接;Establish a connection with the target application based on the set communication service;
向所述目标应用发送打印机请求信息,使得所述目标应用根据所述打印机请求信息获取可使用打印机;sending printer request information to the target application, so that the target application obtains an available printer according to the printer request information;
接收所述目标应用返回的可使用打印机的信息,并根据所述可使用打印机的信息向所述目标应用发送打印请求,使得所述目标应用根据所述打印请求执行打印操作;Receive the information of the available printer returned by the target application, and send a print request to the target application according to the information of the available printer, so that the target application performs a printing operation according to the print request;
接收所述目标应用返回的打印结果。Receive the print result returned by the target application.
第三方面,本公开实施例还提供了一种内容的打印装置,包括:In a third aspect, an embodiment of the present disclosure further provides a content printing apparatus, including:
连接建立模块,设置为启动设定通信服务,并基于所述设定通信服务与打印请求方建立连接;a connection establishment module, configured to start a set communication service, and establish a connection with the print requester based on the set communication service;
可使用打印机获取模块,设置为接收所述打印请求方发送的打印机请求信息,根据所述打印机请求信息获取可使用打印机,并将所述可使用打印机的信息发送至所述打印请求方;A usable printer acquisition module, configured to receive printer request information sent by the print requesting party, obtain usable printers according to the printer request information, and send the usable printer information to the print requesting party;
打印操作执行模块,设置为接收所述打印请求方发送的打印请求,根据所述打印请求对待打印内容执行打印操作。The print operation execution module is configured to receive a print request sent by the print requester, and execute a print operation on the content to be printed according to the print request.
第四方面,本公开实施例公开了一种内容的打印装置,包括:In a fourth aspect, an embodiment of the present disclosure discloses a content printing device, including:
连接建立模块,设置为基于设定通信服务与目标应用建立连接;The connection establishment module is set to establish a connection with the target application based on the set communication service;
打印机请求信息发送模块,设置为向所述目标应用发送打印机请求信息,使得所述目标应用根据所述打印机请求信息获取可使用打印机;a printer request information sending module, configured to send printer request information to the target application, so that the target application obtains a usable printer according to the printer request information;
打印请求发送模块,设置为接收所述目标应用返回的可使用打印机的信息,并根据所述可使用打印机的信息向所述目标应用发送打印请求,使得所述目标应用根据所述打印请求执行打印操作;A print request sending module, configured to receive the information of available printers returned by the target application, and send a print request to the target application according to the information of the available printers, so that the target application executes printing according to the print request operate;
打印结果接收模块,设置为接收所述目标应用返回的打印结果。The print result receiving module is configured to receive the print result returned by the target application.
第五方面,本公开实施例公开了一种电子设备,所述电子设备包括:In a fifth aspect, an embodiment of the present disclosure discloses an electronic device, the electronic device comprising:
一个或多个处理装置;one or more processing devices;
存储装置,设置为存储一个或多个程序;storage means arranged to store one or more programs;
当所述一个或多个程序被所述一个或多个处理装置执行,使得所述一个或多个处理装置实现如本公开实施例所述的内容的打印方法。When the one or more programs are executed by the one or more processing apparatuses, the one or more processing apparatuses implement the method for printing content according to the embodiments of the present disclosure.
第六方面,本公开实施例公开了一种计算机可读介质,其上存储有计算机程序,该程序被处理装置执行时实现如本公开实施例所述的内容的打印方法。In a sixth aspect, an embodiment of the present disclosure discloses a computer-readable medium on which a computer program is stored, and when the program is executed by a processing apparatus, implements the method for printing the content described in the embodiment of the present disclosure.
附图说明Description of drawings
图1是本公开实施例中的一种内容的打印方法的流程图;1 is a flowchart of a method for printing content in an embodiment of the present disclosure;
图2是本公开实施例中的一种内容的打印方法的流程图;2 is a flowchart of a method for printing content in an embodiment of the present disclosure;
图3是本公开实施例中的一种内容的打印方法的信令图;3 is a signaling diagram of a method for printing content in an embodiment of the present disclosure;
图4是本公开实施例中的一种内容的打印装置的结构示意图;4 is a schematic structural diagram of a content printing apparatus according to an embodiment of the present disclosure;
图5是本公开实施例中的一种内容的打印装置的结构示意图;5 is a schematic structural diagram of a content printing apparatus according to an embodiment of the present disclosure;
图6是本公开实施例中的一种电子设备的结构示意图。FIG. 6 is a schematic structural diagram of an electronic device in an embodiment of the present disclosure.
具体实施方式Detailed ways
下面将参照附图更详细地描述本公开的实施例。虽然附图中显示了本公开的某些实施例,然而应当理解的是,本公开可以通过各种形式来实现,而且不应该被解释为限于这里阐述的实施例,相反提供这些实施例是为了更加透彻和完整地理解本公开。应当理解的是,本公开的附图及实施例仅用于示例性作用,并非用于限制本公开的保护范围。Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for the purpose of A more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes, and are not intended to limit the protection scope of the present disclosure.
应当理解,本公开的方法实施方式中记载的多个步骤可以按照不同的顺序执行,和/或并行执行。此外,方法实施方式可以包括附加的步骤和/或省略执行示出的步骤。本公开的范围在此方面不受限制。It should be understood that the multiple steps described in the method embodiments of the present disclosure may be performed in different orders and/or in parallel. Furthermore, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this regard.
本文使用的术语“包括”及其变形是开放性包括,即“包括但不限于”。术语“基于”是“至少部分地基于”。术语“一个实施例”表示“至少一个实施例”;术语“另一实施例”表示“至少一个另外的实施例”;术语“一些实施例”表示“至少一些实施例”。其他术语的相关定义将在下文描述中给出。As used herein, the term "including" and variations thereof are open-ended inclusions, ie, "including but not limited to". The term "based on" is "based at least in part on." The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions of other terms will be given in the description below.
需要注意,本公开中提及的“第一”、“第二”等概念仅用于对不同的装置、模块或单元进行区分,并非用于限定这些装置、模块或单元所执行的功能的顺序或者相互依存关系。It should be noted that concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order of functions performed by these devices, modules or units or interdependence.
需要注意,本公开中提及的“一个”、“多个”的修饰是示意性而非限制性的,本领域技 术人员应当理解,除非在上下文另有明确指出,否则应该理解为“一个或多个”。It should be noted that the modifications of "a" and "a plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless the context clearly indicates otherwise, they should be understood as "one or a plurality of". multiple".
本公开实施方式中的多个装置之间所交互的消息或者信息的名称仅用于说明性的目的,而并不是用于对这些消息或信息的范围进行限制。The names of messages or information exchanged between multiple devices in the embodiments of the present disclosure are only for illustrative purposes, and are not intended to limit the scope of these messages or information.
图1为本公开实施例提供的一种内容的打印方法的流程图,本实施例可适用于对网页内容进行打印的情况,该方法可以由内容的打印装置来执行,该装置可由硬件和/或软件组成,并一般可集成在具有内容的打印功能的设备中,该设备可以是服务器、移动终端或服务器集群等电子设备。如图1所示,该方法包括如下步骤:1 is a flowchart of a method for printing content provided by an embodiment of the present disclosure. This embodiment is applicable to the case of printing web page content, and the method can be executed by a content printing device, which can be implemented by hardware and/or or software, and can generally be integrated into a device with a content printing function, which can be an electronic device such as a server, a mobile terminal, or a server cluster. As shown in Figure 1, the method includes the following steps:
步骤110,启动设定通信服务,并基于设定通信服务与打印请求方建立连接。Step 110, start the setting communication service, and establish a connection with the print requester based on the setting communication service.
其中,设定通信服务可以是基于传输控制协议(Transmission Control Protocol,TCP)的全双工通信服务,例如:websocket服务。打印请求方可以是浏览器或者应用软件。The set communication service may be a full-duplex communication service based on a Transmission Control Protocol (Transmission Control Protocol, TCP), such as a websocket service. The print requester can be a browser or application software.
本实施例中,目标应用启动websocket服务,当打印请求方需要打印时,通过websocket服务打印请求方和目标应用建立连接,以进行数据传输。其中,目标应用可以是基于设定框架(如:Electron)开发的软件。In this embodiment, the target application starts the websocket service, and when the print requester needs to print, a connection is established between the print requester and the target application through the websocket service for data transmission. The target application may be software developed based on a set framework (eg, Electron).
步骤120,接收打印请求方发送的打印机请求信息,根据打印机请求信息获取可使用打印机,并将可使用打印机的信息发送至打印请求方。Step 120: Receive the printer request information sent by the print requester, obtain available printers according to the printer request information, and send the available printer information to the print requester.
其中,可使用打印机可以理解为当前处于空闲状态的打印机。Among them, the printer that can be used can be understood as a printer that is currently in an idle state.
本实施例中,打印请求方通过websocket服务与目标应用建立连接后,向目标应用发送打印机请求信息,以获取当前可使用打印机的信息。In this embodiment, after the print requester establishes a connection with the target application through the websocket service, it sends the printer request information to the target application to obtain the information of the currently available printer.
例如,根据打印机请求信息获取可使用打印机,包括:获取与目标应用所在终端关联的打印机列表;将打印机列表中工作状态处于空闲的打印机确定为可使用打印机。For example, obtaining available printers according to the printer request information includes: obtaining a list of printers associated with the terminal where the target application resides; and determining a printer in an idle working state in the printer list as available printers.
本应用场景下,终端会同时关联多台打印机,终端可以实时的获取关联打印机的工作状态,当目标应用接收到浏览器发送的打印机请求信息请求后,获取与终端关联的打印机列表,然后将工作状态处于空闲的打印机确定为可使用打印机。In this application scenario, the terminal will be associated with multiple printers at the same time, and the terminal can obtain the working status of the associated printers in real time. When the target application receives the printer request information request sent by the browser, it will obtain the list of printers associated with the terminal, and then work A printer in an idle state is determined to be a usable printer.
步骤130,接收打印请求方发送的打印请求,根据打印请求对待打印内容执行打印操作。Step 130: Receive a print request sent by the print requester, and perform a print operation on the content to be printed according to the print request.
其中,打印请求中携带页面地址,页面地址可以用统一资源定位符(Uniform Resource Locato,URL)表征。待打印内容可以是页面当前显示的内容。The print request carries a page address, and the page address may be represented by a uniform resource locator (Uniform Resource Locato, URL). The content to be printed may be the content currently displayed on the page.
例如,打印请求方接收到可使用打印机的信息后,向目标应用发送携带有页面地址的打印请求,目标应用在接收到网页打印请求后,对待打印内容执行打印操作。For example, after receiving the information that the printer can be used, the print requester sends a print request carrying a page address to the target application. After receiving the web page print request, the target application performs a print operation on the content to be printed.
例如,根据打印请求对待打印内容执行打印操作的方式可以是:根据页面地址获取待打印内容;将待打印内容发送至可使用打印机进行打印。For example, the manner of performing the printing operation on the content to be printed according to the print request may be: obtaining the content to be printed according to the page address; and sending the content to be printed to a printer that can be used for printing.
本实施例中,目标应用根据页面地址访问待打印内容所在的数据源,从数据源直接拉取待打印内容,并将拉取到的待打印内容发送至可使用打印机进行打印。本实施例的方案,借助目标应用实现了对线上内容的静默打印。In this embodiment, the target application accesses the data source where the content to be printed is located according to the page address, directly pulls the content to be printed from the data source, and sends the pulled content to be printed to an available printer for printing. The solution of this embodiment realizes the silent printing of online content with the help of the target application.
例如,将打印内容发送至可使用打印机进行打印的方式可以是:创建隐式预览窗口;在隐式预览窗口预览待打印内容;将预览后的待打印内容发送至可使用打印机进行打印。For example, the method of sending the print content to a printable printer may be: creating an implicit preview window; previewing the to-be-printed content in the implicit preview window; sending the previewed to-be-printed content to a printable printer for printing.
其中,隐式预览窗口可以理解为在后台启动的窗口。本实施例中,目标应用获取到待打印内容后,将待打印内容在隐式预览窗口中进行预览,并将预览后的待打印内容发送至可使用打印机进行打印。本实施例中,在隐式预览窗口预览待打印内容,可以在用户无感知的情况下实现对内容的打印。Among them, the implicit preview window can be understood as a window started in the background. In this embodiment, after acquiring the to-be-printed content, the target application previews the to-be-printed content in the implicit preview window, and sends the previewed to-be-printed content to a printer that can be used for printing. In this embodiment, the content to be printed is previewed in the implicit preview window, and the content can be printed without the user's perception.
例如,将待打印内容发送至可使用打印机进行打印的方式可以是:启动隐式打印进程;通过隐式打印进程将待打印内容发送至可使用打印机进行打印。For example, the method of sending the content to be printed to the available printer for printing may be: starting an implicit printing process; sending the content to be printed to the available printer for printing through the implicit printing process.
其中,启动隐式打印进程可以理解为在后台对打印请求进行资源的分配和调度。本实施例中,目标应用获取到待打印内容后,启动隐式打印进程,并通过隐式打印进程待打印内容发送至可使用打印机进行打印。本实施例中,通过隐式打印进程将待打印内容发送至可使用打印机进行打印,可以在用户无感知的情况下实现对内容的打印。Among them, starting the implicit printing process can be understood as allocating and scheduling resources for printing requests in the background. In this embodiment, after acquiring the content to be printed, the target application starts an implicit printing process, and sends the content to be printed to a usable printer for printing through the implicit printing process. In this embodiment, the content to be printed is sent to a printer that can be used for printing through the implicit printing process, so that the content can be printed without the user's perception.
例如,在接收所述打印请求方发送的网页打印请求,根据所述网页打印请求对待打印内容执行打印操作之后,还包括如下步骤:获取打印结果,并将打印结果返回打印请求方。For example, after receiving a web page print request sent by the print requester, and after performing a printing operation on the content to be printed according to the web page print request, the following steps are further included: acquiring a print result, and returning the print result to the print requester.
本公开实施例的技术方案,启动设定通信服务,并基于设定通信服务与打印请求方建立连接;接收打印请求方发送的打印机请求信息,根据打印机请求信息获取可使用打印机,并将可使用打印机的信息发送至打印请求方;接收打印请求方发送的打印请求,根据打印请求对待打印内容执行打印操作。目标应用与打印请求方通过设定通信服务建立连接后,以实现对打印请求方的内容的静默打印,无需对内容进行预览,可以提高内容的打印效率。The technical solution of the embodiment of the present disclosure is to start the setting communication service, and establish a connection with the print requester based on the setting communication service; receive the printer request information sent by the print requester, obtain the available printers according to the printer request information, and set the available printers. The information of the printer is sent to the print requester; the print request sent by the print requester is received, and a print operation is performed on the content to be printed according to the print request. After the target application and the print requester establish a connection by setting a communication service, silent printing of the content of the print requester is realized without previewing the content, which can improve the printing efficiency of the content.
图2是本本公开实施例提供的一种内容的打印方法的流程图。如图2所示,该方法包括如下步骤:FIG. 2 is a flowchart of a content printing method provided by an embodiment of the present disclosure. As shown in Figure 2, the method includes the following steps:
步骤210,基于设定通信服务与目标应用建立连接。Step 210, establishing a connection with the target application based on the set communication service.
其中,设定通信服务可以是websocket服务。本实施例中,目标应用启动websocket服务,当打印请求方需要打印时,通过websocket服务打印请求方和目标应用建立连接,以进行数据传输。The set communication service may be a websocket service. In this embodiment, the target application starts the websocket service, and when the print requester needs to print, a connection is established between the print requester and the target application through the websocket service for data transmission.
步骤220,向目标应用发送打印机请求信息,使得目标应用根据打印机请求信息获取可使用打印机。Step 220: Send the printer request information to the target application, so that the target application obtains the available printer according to the printer request information.
例如,打印请求方通过websocket服务与目标应用建立连接后,向目标应用发送打印机请求信息,使得目标应用从打印机列表中获取处于空闲状态的打印机,目标应用并将可使用打印机的信息返回至打印请求方,以获取当前可使用打印机的信息。For example, after the print requester establishes a connection with the target application through the websocket service, it sends the printer request information to the target application, so that the target application obtains the printers in the idle state from the printer list, and the target application returns the information of the available printers to the print request. to obtain information on currently available printers.
步骤230,接收目标应用返回的可使用打印机的信息,并根据可使用打印机的信息向目标应用发送打印请求,使得目标应用根据打印请求执行打印操作。Step 230: Receive information of available printers returned by the target application, and send a print request to the target application according to the information of available printers, so that the target application performs a printing operation according to the print request.
例如,根据可使用打印机信息向目标应用发送打印请求,使得目标应用根据打印请求执行打印操作的方式可以是:根据可使用打印机信息向目标应用发送携带有页面地址的打印请求,使得目标应用根据页面地址获取待打印内容,以对待打印内容执行打印操作。For example, sending a print request to the target application according to the available printer information, so that the target application performs a printing operation according to the print request may be: sending a print request carrying a page address to the target application according to the available printer information, so that the target application can perform a printing operation according to the available printer information. The address obtains the to-be-printed content to perform a print operation on the to-be-printed content.
其中,页面地址可以用统一资源定位符(Uniform Resource Locato,URL)表征。The page address may be represented by a Uniform Resource Locato (URL).
步骤240,接收目标应用返回的打印结果。Step 240: Receive the print result returned by the target application.
其中,打印结果可以包括打印成功或者打印失败。本实施例中,目标应用将待打印内容发送至可使用打印机打印完成后,获取打印结果,并将该打印结果返回至打印请求方,使得打印请求方对打印结果进行相应的业务处理。Wherein, the printing result may include printing success or printing failure. In this embodiment, after the target application sends the to-be-printed content to a printable printer, obtains the print result, and returns the print result to the print requester, so that the print requester can perform corresponding business processing on the print result.
本实施例的技术方案,基于设定通信服务与目标应用建立连接;向目标应用发送打印机请求信息,使得目标应用根据打印机请求信息获取可使用打印机;接收目标应用返回的可使用打印机的信息,并根据可使用打印机的信息向目标应用发送打印请求,使得目标应用根据打印请求执行打印操作;接收目标应用返回的打印结果。目标应用与打印请求方通过设定通信服务建立连接后,以实现对打印请求方的内容的静默打印,无需对内容进行预览,可以提 高内容的打印效率。The technical solution of this embodiment is based on setting up a communication service to establish a connection with a target application; sending printer request information to the target application, so that the target application obtains a usable printer according to the printer request information; receiving the information of the usable printer returned by the target application, and Send a print request to the target application according to the information of the available printer, so that the target application executes the printing operation according to the print request; and receive the print result returned by the target application. After the target application and the print requester establish a connection by setting the communication service, the content of the print requester can be silently printed without previewing the content, which can improve the printing efficiency of the content.
示例性的,假设打印请求方为浏览器,目标应用为Electron应用,图3是本公开实施例公开的一种内容的打印方法的信令图。如图3所示,该方法包括如下步骤:Exemplarily, it is assumed that the print requester is a browser and the target application is an Electron application. FIG. 3 is a signaling diagram of a content printing method disclosed in an embodiment of the present disclosure. As shown in Figure 3, the method includes the following steps:
步骤1,浏览器和Electron应用建立websocket连接;Step 1, the browser and the Electron application establish a websocket connection;
步骤2,浏览器向Electron应用发送可使用打印机请求信息;Step 2, the browser sends the available printer request information to the Electron application;
步骤3,Electron应用向浏览器返回可使用打印机的信息;Step 3, the Electron application returns the information that the printer can be used to the browser;
步骤4,浏览器向Electron应用发送网页打印请求;Step 4, the browser sends a web page print request to the Electron application;
步骤5,Electron应用向可使用打印机发送打印指令;Step 5, the Electron application sends a print instruction to the available printer;
步骤6,Electron应用获取打印结果;Step 6, the Electron application obtains the print result;
步骤7,Electron应用向浏览器返回打印结果;Step 7, the Electron application returns the print result to the browser;
步骤8,浏览器根据对打印结果进行相应的业务处理。Step 8, the browser performs corresponding business processing according to the print result.
图4是本公开实施例公开的一种内容的打印装置的结构示意图。如图4所示,该装置包括:FIG. 4 is a schematic structural diagram of a printing apparatus of a content disclosed in an embodiment of the present disclosure. As shown in Figure 4, the device includes:
连接建立模块410,设置为启动设定通信服务,并基于设定通信服务与打印请求方建立连接;The connection establishment module 410 is configured to start the setting communication service, and establish a connection with the print requester based on the setting communication service;
可使用打印机获取模块420,设置为接收打印请求方发送的打印机请求信息,根据打印机请求信息获取可使用打印机,并将可使用打印机的信息发送至打印请求方;The available printer acquisition module 420 is configured to receive the printer request information sent by the print requester, obtain available printers according to the printer request information, and send the available printer information to the print requester;
打印操作执行模块430,设置为接收打印请求方发送的打印请求,根据打印请求对待打印内容执行打印操作。The print operation execution module 430 is configured to receive a print request sent by the print requester, and execute a print operation on the content to be printed according to the print request.
例如,可使用打印机获取模块420,还设置为:For example, printer acquisition module 420 can be used, also set to:
获取与目标应用所在终端关联的打印机列表;Get a list of printers associated with the terminal where the target application resides;
将打印机列表中工作状态处于空闲的打印机确定为可使用打印机。Determine the printer that is idle in the printer list as a usable printer.
例如,打印请求携带有页面地址;打印操作执行模块430,还设置为:For example, the print request carries a page address; the print operation execution module 430 is also set to:
根据页面地址获取待打印内容;Obtain the content to be printed according to the page address;
将待打印内容发送至可使用打印机进行打印。Send the content to be printed to a ready-to-use printer for printing.
例如,打印操作执行模块430,还设置为:For example, the printing operation execution module 430 is further set to:
创建隐式预览窗口;Create an implicit preview window;
在隐式预览窗口预览待打印内容;Preview the content to be printed in the implicit preview window;
将预览后的待打印内容发送至可使用打印机进行打印。Send the previewed content to be printed to a printer that can be used for printing.
例如,打印操作执行模块430,还设置为:For example, the printing operation execution module 430 is further set to:
启动隐式打印进程;Start the implicit printing process;
通过隐式打印进程将待打印内容发送至可使用打印机进行打印。Sends the content to be printed to a ready-to-use printer for printing through the implicit print process.
图5是本公开实施例公开的一种内容的打印装置的结构示意图。如图5所示,该装置包括:FIG. 5 is a schematic structural diagram of a printing apparatus of a content disclosed in an embodiment of the present disclosure. As shown in Figure 5, the device includes:
连接建立模块510,设置为基于设定通信服务与目标应用建立连接;The connection establishment module 510 is configured to establish a connection with the target application based on the set communication service;
打印机请求信息发送模块520,设置为向目标应用发送打印机请求信息,使得目标应用根据打印机请求信息获取可使用打印机;The printer request information sending module 520 is configured to send the printer request information to the target application, so that the target application obtains the available printer according to the printer request information;
打印请求发送模块530,设置为接收目标应用返回的可使用打印机的信息,并根据可使用打印机的信息向目标应用发送打印请求,使得目标应用根据打印请求执行打印操作;The print request sending module 530 is configured to receive the information of the available printer returned by the target application, and send a print request to the target application according to the information of the available printer, so that the target application performs a printing operation according to the print request;
打印结果接收模块540,设置为接收目标应用返回的打印结果。The print result receiving module 540 is configured to receive the print result returned by the target application.
例如,打印请求发送模块530,还设置为:For example, the print request sending module 530 is also set to:
根据可使用打印机信息向目标应用发送携带有页面地址的打印请求,使得目标应用根据页面地址获取待打印内容,以对待打印内容执行打印操作。A print request carrying a page address is sent to the target application according to the available printer information, so that the target application obtains the content to be printed according to the page address, so as to perform a printing operation on the content to be printed.
上述装置可执行本公开前述所有实施例所提供的方法,具备执行上述方法相应的功能模块和有益效果。未在本实施例中详尽描述的技术细节,可参见本公开前述所有实施例所提供的方法。The above-mentioned apparatus can execute the methods provided by all the foregoing embodiments of the present disclosure, and has corresponding functional modules and beneficial effects for executing the above-mentioned methods. For technical details not described in detail in this embodiment, reference may be made to the methods provided by all the foregoing embodiments of the present disclosure.
下面参考图6,其示出了适于用来实现本公开实施例的电子设备300的结构示意图。本公开实施例中的电子设备可以包括但不限于诸如移动电话、笔记本电脑、数字广播接收器、PDA(个人数字助理)、PAD(平板电脑)、PMP(便携式多媒体播放器)、车载终端(例如车载导航终端)等等的移动终端以及诸如数字TV、台式计算机等等的固定终端,或者多种形式的服务器,如独立服务器或者服务器集群。图6示出的电子设备仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。6, which shows a schematic structural diagram of an electronic device 300 suitable for implementing an embodiment of the present disclosure. The electronic devices in the embodiments of the present disclosure may include, but are not limited to, such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablets), PMPs (portable multimedia players), vehicle-mounted terminals (eg, Mobile terminals such as in-vehicle navigation terminals), etc., and stationary terminals such as digital TVs, desktop computers, etc., or various forms of servers, such as stand-alone servers or server clusters. The electronic device shown in FIG. 6 is only an example, and should not impose any limitation on the function and scope of use of the embodiments of the present disclosure.
如图6所示,电子设备300可以包括处理装置(例如中央处理器、图形处理器等)301,其可以根据存储在只读存储装置(ROM)302中的程序或者从存储装置305加载到随机访问存储装置(RAM)303中的程序而执行多种适当的动作和处理。在RAM 303中,还存储有电子设备300操作所需的多种程序和数据。处理装置301、ROM 302以及RAM 303通过总线304彼此相连。输入/输出(I/O)接口305也连接至总线304。As shown in FIG. 6 , the electronic device 300 may include a processing device (eg, a central processing unit, a graphics processor, etc.) 301, which may be loaded into a random A program in the storage device (RAM) 303 is accessed to perform various appropriate actions and processes. In the RAM 303, various programs and data required for the operation of the electronic device 300 are also stored. The processing device 301, the ROM 302, and the RAM 303 are connected to each other through a bus 304. An input/output (I/O) interface 305 is also connected to bus 304 .
通常,以下装置可以连接至I/O接口305:包括例如触摸屏、触摸板、键盘、鼠标、摄像头、麦克风、加速度计、陀螺仪等的输入装置306;包括例如液晶显示器(LCD)、扬声器、振动器等的输出装置307;包括例如磁带、硬盘等的存储装置308;以及通信装置309。通信装置309可以允许电子设备300与其他设备进行无线或有线通信以交换数据。虽然图6示出了具有多种装置的电子设备300,但是应理解的是,并不要求实施或具备所有示出的装置。可以替代地实施或具备更多或更少的装置。Typically, the following devices may be connected to the I/O interface 305: input devices 306 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; including, for example, a liquid crystal display (LCD), speakers, vibration An output device 307 of a computer, etc.; a storage device 308 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 309. Communication means 309 may allow electronic device 300 to communicate wirelessly or by wire with other devices to exchange data. Although FIG. 6 shows electronic device 300 having various means, it should be understood that not all of the illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
例如,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含设置为执行词语的推荐方法的程序代码。在这样的实施例中,该计算机程序可以通过通信装置309从网络上被下载和安装,或者从存储装置305被安装,或者从ROM 302被安装。在该计算机程序被处理装置301执行时,执行本公开实施例的方法中限定的上述功能。For example, the processes described above with reference to the flowcharts may be implemented as computer software programs according to embodiments of the present disclosure. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code arranged to perform a recommended method of words. In such an embodiment, the computer program may be downloaded and installed from the network via the communication device 309, or from the storage device 305, or from the ROM 302. When the computer program is executed by the processing device 301, the above-mentioned functions defined in the methods of the embodiments of the present disclosure are executed.
需要说明的是,本公开上述的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本公开中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本公开中,计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号, 其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读信号介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:电线、光缆、RF(射频)等等,或者上述的任意合适的组合。It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the above two. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or a combination of any of the above. More specific examples of computer readable storage media may include, but are not limited to, electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable Programmable read only memory (EPROM or flash memory), fiber optics, portable compact disk read only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing. In this disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In the present disclosure, however, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code therein. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device . Program code embodied on a computer readable medium may be transmitted using any suitable medium including, but not limited to, electrical wire, optical fiber cable, RF (radio frequency), etc., or any suitable combination of the foregoing.
在一些实施方式中,客户端、服务器可以利用诸如HTTP(HyperText Transfer Protocol,超文本传输协议)之类的任何当前已知或未来研发的网络协议进行通信,并且可以与任意形式或介质的数字数据通信(例如,通信网络)互连。通信网络的示例包括局域网(“LAN”),广域网(“WAN”),网际网(例如,互联网)以及端对端网络(例如,ad hoc端对端网络),以及任何当前已知或未来研发的网络。In some embodiments, the client and server can use any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol) to communicate, and can communicate with digital data in any form or medium Communication (eg, a communication network) interconnects. Examples of communication networks include local area networks ("LAN"), wide area networks ("WAN"), the Internet (eg, the Internet), and peer-to-peer networks (eg, ad hoc peer-to-peer networks), as well as any currently known or future development network of.
上述计算机可读介质可以是上述电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。The above-mentioned computer-readable medium may be included in the above-mentioned electronic device; or may exist alone without being assembled into the electronic device.
上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该电子设备执行时,使得该电子设备:启动设定通信服务,并基于所述设定通信服务与打印请求方建立连接;接收所述打印请求方发送的打印机请求信息,根据所述打印机请求信息获取可使用打印机,并将所述可使用打印机的信息发送至所述打印请求方;接收所述打印请求方发送的打印请求,根据所述打印请求对待打印内容执行打印操作。或者,基于设定通信服务与目标应用建立连接;向所述目标应用发送打印机请求信息,使得所述目标应用根据所述打印机请求信息获取可使用打印机;接收所述目标应用返回的可使用打印机的信息,并根据所述可使用打印机的信息向所述目标应用发送打印请求,使得所述目标应用根据所述打印请求执行打印操作;接收所述目标应用返回的打印结果。计算机可读存储介质可以是非暂态计算机可读存储介质。The above-mentioned computer-readable medium carries one or more programs, and when the above-mentioned one or more programs are executed by the electronic device, the electronic device: starts the setting communication service, and communicates with the print requester based on the setting communication service Establish a connection; receive the printer request information sent by the print requester, obtain available printers according to the printer request information, and send the information of the available printers to the print requester; receive the print requester sent The print request is performed, and a print operation is performed on the to-be-printed content according to the print request. Or, establish a connection with the target application based on the set communication service; send printer request information to the target application, so that the target application obtains the available printer according to the printer request information; receive the available printer information returned by the target application. information, and send a print request to the target application according to the information of the available printer, so that the target application performs a printing operation according to the print request; and receives a print result returned by the target application. The computer-readable storage medium may be a non-transitory computer-readable storage medium.
可以以一种或多种程序设计语言或其组合来编写用于执行本公开的操作的计算机程序代码,上述程序设计语言包括但不限于面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。Computer program code for performing operations of the present disclosure may be written in one or more programming languages, including but not limited to object-oriented programming languages—such as Java, Smalltalk, C++, and This includes conventional procedural programming languages - such as the "C" language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (eg, using an Internet service provider through Internet connection).
附图中的流程图和框图,图示了按照本公开多种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个设置为实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来 实现。The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code that contains one or more logical functions arranged to implement the specified functions executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the blocks may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It is also noted that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented in dedicated hardware-based systems that perform the specified functions or operations , or can be implemented in a combination of dedicated hardware and computer instructions.
描述于本公开实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现。其中,单元的名称在某种情况下并不构成对该单元本身的限定。The units involved in the embodiments of the present disclosure may be implemented in a software manner, and may also be implemented in a hardware manner. Among them, the name of the unit does not constitute a limitation of the unit itself under certain circumstances.
本文中以上描述的功能可以至少部分地由一个或多个硬件逻辑部件来执行。例如,非限制性地,可以使用的示范类型的硬件逻辑部件包括:现场可编程门阵列(FPGA)、专用集成电路(ASIC)、专用标准产品(ASSP)、片上系统(SOC)、复杂可编程逻辑设备(CPLD)等等。The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), Systems on Chips (SOCs), Complex Programmable Logical Devices (CPLDs) and more.
在本公开的上下文中,机器可读介质可以是有形的介质,其可以包含或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置或设备结合地使用的程序。机器可读介质可以是机器可读信号介质或机器可读储存介质。机器可读介质可以包括但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体系统、装置或设备,或者上述内容的任何合适组合。机器可读存储介质的更具体示例会包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或快闪存储器)、光纤、便捷式紧凑盘只读存储器(CD-ROM)、光学储存设备、磁储存设备、或上述内容的任何合适组合。In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in connection with the instruction execution system, apparatus or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. Machine-readable media may include, but are not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media would include one or more wire-based electrical connections, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), fiber optics, compact disk read only memory (CD-ROM), optical storage, magnetic storage, or any suitable combination of the foregoing.
根据本公开实施例的一个或多个实施例,本公开实施例公开了一种内容的打印方法,包括:According to one or more embodiments of the present disclosure, an embodiment of the present disclosure discloses a content printing method, including:
启动设定通信服务,并基于所述设定通信服务与打印请求方建立连接;Start the setting communication service, and establish a connection with the print requester based on the setting communication service;
接收所述打印请求方发送的打印机请求信息,根据所述打印机请求信息获取可使用打印机,并将所述可使用打印机的信息发送至所述打印请求方;Receive the printer request information sent by the print requester, obtain available printers according to the printer request information, and send the available printer information to the print requester;
接收所述打印请求方发送的打印请求,根据所述打印请求对待打印内容执行打印操作。A print request sent by the print requester is received, and a print operation is performed on the content to be printed according to the print request.
例如,根据所述打印机请求信息获取可使用打印机,包括:For example, obtaining available printers according to the printer request information includes:
获取与目标应用所在终端关联的打印机列表;Get a list of printers associated with the terminal where the target application resides;
将所述打印机列表中工作状态处于空闲的打印机确定为可使用打印机。A printer in an idle working state in the printer list is determined as a usable printer.
例如,所述打印请求携带有页面地址;根据所述打印请求对所述浏览器当前显示的内容执行打印操作,包括:For example, the print request carries a page address; performing a print operation on the content currently displayed by the browser according to the print request includes:
根据所述页面地址获取待打印内容;Obtain the content to be printed according to the page address;
将所述待打印内容发送至所述可使用打印机进行打印。Send the to-be-printed content to the available printer for printing.
例如,将所述待打印内容发送至所述可使用打印机进行打印,包括:For example, sending the to-be-printed content to the available printer for printing includes:
创建隐式预览窗口;Create an implicit preview window;
在所述隐式预览窗口预览所述待打印内容;Preview the to-be-printed content in the implicit preview window;
将预览后的所述待打印内容发送至所述可使用打印机进行打印。Send the previewed content to be printed to the available printer for printing.
例如,将所述待打印内容发送至所述可使用打印机进行打印,包括:For example, sending the to-be-printed content to the available printer for printing includes:
启动隐式打印进程;Start the implicit printing process;
通过所述隐式打印进程将所述待打印内容发送至所述可使用打印机进行打印。The to-be-printed content is sent to the available printer for printing through the implicit printing process.
还公开了一种内容的打印方法,包括:Also disclosed is a content printing method, comprising:
基于设定通信服务与目标应用建立连接;Establish a connection with the target application based on the set communication service;
向所述目标应用发送打印机请求信息,使得所述目标应用根据所述打印机请求信息获取可使用打印机;sending printer request information to the target application, so that the target application obtains an available printer according to the printer request information;
接收所述目标应用返回的可使用打印机的信息,并根据所述可使用打印机的信息向所述目标应用发送打印请求,使得所述目标应用根据所述打印请求执行打印操作;Receive the information of the available printer returned by the target application, and send a print request to the target application according to the information of the available printer, so that the target application performs a printing operation according to the print request;
接收所述目标应用返回的打印结果。Receive the print result returned by the target application.
例如,根据所述可使用打印机信息向所述目标应用发送打印请求,使得所述目标应用根据所述打印请求执行打印操作,包括:For example, sending a print request to the target application according to the available printer information, so that the target application performs a printing operation according to the print request, including:
根据所述可使用打印机信息向所述目标应用发送携带有页面地址的打印请求,使得所述目标应用根据所述页面地址获取待打印内容,以对所述待打印内容执行打印操作。A print request carrying a page address is sent to the target application according to the usable printer information, so that the target application acquires the content to be printed according to the page address, so as to perform a printing operation on the content to be printed.

Claims (11)

  1. 一种内容的打印方法,包括:A method of printing content, including:
    启动设定通信服务,并基于所述设定通信服务与打印请求方建立连接;Start the setting communication service, and establish a connection with the print requester based on the setting communication service;
    接收所述打印请求方发送的打印机请求信息,根据所述打印机请求信息获取可使用打印机,并将所述可使用打印机的信息发送至所述打印请求方;Receive the printer request information sent by the print requester, obtain available printers according to the printer request information, and send the available printer information to the print requester;
    接收所述打印请求方发送的打印请求,根据所述打印请求对待打印内容执行打印操作。A print request sent by the print requester is received, and a print operation is performed on the content to be printed according to the print request.
  2. 根据权利要求1所述的方法,其中,所述根据所述打印机请求信息获取可使用打印机,包括:The method according to claim 1, wherein the acquiring an available printer according to the printer request information comprises:
    获取与目标应用所在终端关联的打印机列表;Get a list of printers associated with the terminal where the target application resides;
    将所述打印机列表中工作状态处于空闲的打印机确定为可使用打印机。A printer in an idle working state in the printer list is determined as a usable printer.
  3. 根据权利要求1所述的方法,其中,所述打印请求携带有页面地址;根据所述打印请求对待打印内容执行打印操作,包括:The method according to claim 1, wherein the printing request carries a page address; and performing a printing operation on the content to be printed according to the printing request comprises:
    根据所述页面地址获取所述待打印内容;Obtain the to-be-printed content according to the page address;
    将所述待打印内容发送至所述可使用打印机进行打印。Send the to-be-printed content to the available printer for printing.
  4. 根据权利要求3所述的方法,其中,所述将所述待打印内容发送至所述可使用打印机进行打印,包括:The method according to claim 3, wherein the sending the to-be-printed content to the available printer for printing comprises:
    创建隐式预览窗口;Create an implicit preview window;
    在所述隐式预览窗口预览所述待打印内容;Preview the to-be-printed content in the implicit preview window;
    将预览后的所述待打印内容发送至所述可使用打印机进行打印。Send the previewed content to be printed to the available printer for printing.
  5. 根据权利要求3所述的方法,其中,所述将所述待打印内容发送至所述可使用打印机进行打印,包括:The method according to claim 3, wherein the sending the to-be-printed content to the available printer for printing comprises:
    启动隐式打印进程;Start the implicit printing process;
    通过所述隐式打印进程将所述待打印内容发送至所述可使用打印机进行打印。The to-be-printed content is sent to the available printer for printing through the implicit printing process.
  6. 一种内容的打印方法,包括:A method of printing content, including:
    基于设定通信服务与目标应用建立连接;Establish a connection with the target application based on the set communication service;
    向所述目标应用发送打印机请求信息,使得所述目标应用根据所述打印机请求信息获取可使用打印机;sending printer request information to the target application, so that the target application obtains an available printer according to the printer request information;
    接收所述目标应用返回的可使用打印机的信息,并根据所述可使用打印机的信息向所述目标应用发送打印请求,使得所述目标应用根据所述打印请求执行打印操作;Receive the information of the available printer returned by the target application, and send a print request to the target application according to the information of the available printer, so that the target application performs a printing operation according to the print request;
    接收所述目标应用返回的打印结果。Receive the print result returned by the target application.
  7. 根据权利要求6所述的方法,其中,所述根据所述可使用打印机信息向所述目标应用发送打印请求,使得所述目标应用根据所述打印请求执行打印操作,包括:The method according to claim 6, wherein the sending a print request to the target application according to the usable printer information, so that the target application performs a printing operation according to the print request, comprises:
    根据所述可使用打印机信息向所述目标应用发送携带有页面地址的打印请求,使得所述目标应用根据所述页面地址获取待打印内容,以对所述待打印内容执行打印操作。A print request carrying a page address is sent to the target application according to the usable printer information, so that the target application acquires the content to be printed according to the page address, so as to perform a printing operation on the content to be printed.
  8. 一种内容的打印装置,包括:A content printing device, comprising:
    连接建立模块,设置为启动设定通信服务,并基于所述设定通信服务与打印请求方建立连接;a connection establishment module, configured to start a set communication service, and establish a connection with the print requester based on the set communication service;
    可使用打印机获取模块,设置为接收所述打印请求方发送的打印机请求信息,根据所述打印机请求信息获取可使用打印机,并将所述可使用打印机的信息发送至所述打印请求方;A usable printer acquisition module, configured to receive printer request information sent by the print requesting party, obtain usable printers according to the printer request information, and send the usable printer information to the print requesting party;
    打印操作执行模块,设置为接收所述打印请求方发送的打印请求,根据所述打印请求对 待打印内容执行打印操作。The print operation execution module is configured to receive a print request sent by the print requester, and execute a print operation on the content to be printed according to the print request.
  9. 一种内容的打印装置,包括:A content printing device, comprising:
    连接建立模块,设置为基于设定通信服务与目标应用建立连接;The connection establishment module is set to establish a connection with the target application based on the set communication service;
    打印机请求信息发送模块,设置为向所述目标应用发送打印机请求信息,使得所述目标应用根据所述打印机请求信息获取可使用打印机;a printer request information sending module, configured to send printer request information to the target application, so that the target application obtains a usable printer according to the printer request information;
    打印请求发送模块,设置为接收所述目标应用返回的可使用打印机的信息,并根据所述可使用打印机的信息向所述目标应用发送打印请求,使得所述目标应用根据所述打印请求执行打印操作;A print request sending module, configured to receive the information of available printers returned by the target application, and send a print request to the target application according to the information of the available printers, so that the target application executes printing according to the print request operate;
    打印结果接收模块,设置为接收所述目标应用返回的打印结果。The print result receiving module is configured to receive the print result returned by the target application.
  10. 一种电子设备,包括:An electronic device comprising:
    一个或多个处理装置;one or more processing devices;
    存储装置,设置为存储一个或多个程序;storage means arranged to store one or more programs;
    当所述一个或多个程序被所述一个或多个处理装置执行,使得所述一个或多个处理装置实现如权利要求1-5或者6-7中任一所述的内容的打印方法。When the one or more programs are executed by the one or more processing apparatuses, the one or more processing apparatuses are caused to implement the method for printing content according to any one of claims 1-5 or 6-7.
  11. 一种计算机可读介质,其上存储有计算机程序,所述计算机程序被处理装置执行时实现如权利要求1-5或者6-7中任一所述的内容的打印方法。A computer-readable medium on which a computer program is stored, and when the computer program is executed by a processing apparatus, implements the printing method of the content according to any one of claims 1-5 or 6-7.
PCT/CN2022/079717 2021-03-24 2022-03-08 Content printing method and apparatus, and device and storage medium WO2022199376A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110313486.4A CN112965673A (en) 2021-03-24 2021-03-24 Content printing method, device, equipment and storage medium
CN202110313486.4 2021-03-24

Publications (1)

Publication Number Publication Date
WO2022199376A1 true WO2022199376A1 (en) 2022-09-29

Family

ID=76278441

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/079717 WO2022199376A1 (en) 2021-03-24 2022-03-08 Content printing method and apparatus, and device and storage medium

Country Status (2)

Country Link
CN (1) CN112965673A (en)
WO (1) WO2022199376A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112965673A (en) * 2021-03-24 2021-06-15 北京有竹居网络技术有限公司 Content printing method, device, equipment and storage medium
CN113900600A (en) * 2021-09-06 2022-01-07 浪潮软件股份有限公司 Method and system for realizing batch silent printing based on HTML (Hypertext markup language)
CN114281281A (en) * 2021-12-31 2022-04-05 上海汉图科技有限公司 Interaction method and device for printer and intelligent equipment
CN114527946A (en) * 2022-01-12 2022-05-24 杭州石原子科技有限公司 Silent print client based on browser

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101179459A (en) * 2006-11-07 2008-05-14 朗迅科技公司 IMS network printing service
US20110075164A1 (en) * 2009-09-30 2011-03-31 Kurt Nathan Nordback Systems and methods for enhanced printing of online content
CN109766062A (en) * 2018-12-15 2019-05-17 深圳壹账通智能科技有限公司 Web page contents Method of printing, device, equipment and storage medium based on PHP service
CN110750222A (en) * 2019-09-19 2020-02-04 益萃网络科技(中国)有限公司 Printing method, printing device, computer equipment and storage medium
CN111190556A (en) * 2019-12-29 2020-05-22 苏州宏软信息技术有限公司 Mobile terminal remote printing method based on C-Lodop plug-in
CN111897501A (en) * 2020-08-05 2020-11-06 南昌梦想软件有限公司 Data cloud printing method, device, storage medium and system
CN112965673A (en) * 2021-03-24 2021-06-15 北京有竹居网络技术有限公司 Content printing method, device, equipment and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006318423A (en) * 2005-04-15 2006-11-24 Ricoh Co Ltd Print system, mobile communication terminal device, and program and storage medium of mobile communication terminal device
US8189225B1 (en) * 2011-10-04 2012-05-29 Google Inc. Printing to a cloud printer via NFC
CN110888613B (en) * 2019-11-28 2024-03-26 北京中启智源数字信息技术有限责任公司 Printing method, printing device, printing system and electronic equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101179459A (en) * 2006-11-07 2008-05-14 朗迅科技公司 IMS network printing service
US20110075164A1 (en) * 2009-09-30 2011-03-31 Kurt Nathan Nordback Systems and methods for enhanced printing of online content
CN109766062A (en) * 2018-12-15 2019-05-17 深圳壹账通智能科技有限公司 Web page contents Method of printing, device, equipment and storage medium based on PHP service
CN110750222A (en) * 2019-09-19 2020-02-04 益萃网络科技(中国)有限公司 Printing method, printing device, computer equipment and storage medium
CN111190556A (en) * 2019-12-29 2020-05-22 苏州宏软信息技术有限公司 Mobile terminal remote printing method based on C-Lodop plug-in
CN111897501A (en) * 2020-08-05 2020-11-06 南昌梦想软件有限公司 Data cloud printing method, device, storage medium and system
CN112965673A (en) * 2021-03-24 2021-06-15 北京有竹居网络技术有限公司 Content printing method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN112965673A (en) 2021-06-15

Similar Documents

Publication Publication Date Title
WO2022199376A1 (en) Content printing method and apparatus, and device and storage medium
WO2020233168A1 (en) Network storage method and apparatus for picture type comment data, and electronic device and medium
WO2020248745A1 (en) Method and device for displaying characters in user interface, electronic device, and storage medium
WO2021082693A1 (en) Method and device for acquiring webpage image load time, and electronic device
WO2023000888A1 (en) Cloud application implementing method and apparatus, electronic device, and storage medium
WO2021082600A1 (en) Webpage image monitoring method and apparatus, electronic device, and computer readable storage medium
CN112866385A (en) Interface calling method and device, electronic equipment and storage medium
EP3813326A1 (en) Method and apparatus for processing webpage, device, and storage medium
JP2024528412A (en) Schedule sharing method, device and equipment
WO2024124789A1 (en) File processing method and apparatus, server, and medium
CN113760536A (en) Data caching method and device, electronic equipment and computer readable medium
WO2022218028A1 (en) Page loading method and apparatus, and device and storage medium
CN113126985B (en) Method, apparatus, electronic device and computer readable medium for page rendering
WO2023207788A1 (en) Information processing method and apparatus, electronic device, and storage medium
CN111596992B (en) Navigation bar display method and device and electronic equipment
CN113778499B (en) Method, apparatus, device and computer readable medium for publishing services
CN109981778B (en) Method, device, equipment and storage medium for realizing service of content distribution network
WO2022206287A1 (en) Business service interaction method and apparatus, device, and storage medium
WO2022184037A1 (en) Document processing method, apparatus and device, and medium
CN111444457B (en) Data release method and device, storage medium and electronic equipment
WO2021082599A1 (en) Wed page image monitoring method and device, electronic equipment and computer readable storage medium
WO2022048490A1 (en) Data processing method and apparatus, and electronic device
CN112732457A (en) Image transmission method, image transmission device, electronic equipment and computer readable medium
CN111258670B (en) Method and device for managing component data, electronic equipment and storage medium
CN113157365B (en) Program running method, program running device, electronic equipment and computer readable medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22774038

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 22774038

Country of ref document: EP

Kind code of ref document: A1