CN113448519A - Method for printing file - Google Patents
Method for printing file Download PDFInfo
- Publication number
- CN113448519A CN113448519A CN202010618588.2A CN202010618588A CN113448519A CN 113448519 A CN113448519 A CN 113448519A CN 202010618588 A CN202010618588 A CN 202010618588A CN 113448519 A CN113448519 A CN 113448519A
- Authority
- CN
- China
- Prior art keywords
- printing
- file
- instruction
- pdf file
- control
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/12—Digital output to print unit, e.g. line printer, chain printer
- G06F3/1201—Dedicated interfaces to print systems
- G06F3/1202—Dedicated interfaces to print systems specifically adapted to achieve a particular effect
- G06F3/1203—Improving or facilitating administration, e.g. print management
- G06F3/1204—Improving or facilitating administration, e.g. print management resulting in reduced user or operator actions, e.g. presetting, automatic actions, using hardware token storing data
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/12—Digital output to print unit, e.g. line printer, chain printer
- G06F3/1201—Dedicated interfaces to print systems
- G06F3/1202—Dedicated interfaces to print systems specifically adapted to achieve a particular effect
- G06F3/1203—Improving or facilitating administration, e.g. print management
- G06F3/1206—Improving or facilitating administration, e.g. print management resulting in increased flexibility in input data format or job format or job type
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/12—Digital output to print unit, e.g. line printer, chain printer
- G06F3/1201—Dedicated interfaces to print systems
- G06F3/1223—Dedicated interfaces to print systems specifically adapted to use a particular technique
- G06F3/1237—Print job management
- G06F3/1253—Configuration of print job parameters, e.g. using UI at the client
- G06F3/1254—Automatic configuration, e.g. by driver
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/12—Digital output to print unit, e.g. line printer, chain printer
- G06F3/1293—Printer information exchange with computer
- G06F3/1295—Buffering means
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
The invention relates to a method for printing a file, which is used for printing a PDF file, and the PDF file can be directly printed only by clicking the printing operation of a user, thereby reducing the operation times of the user. The rate of printing PDF files by the user is improved. The method is described. The method comprises the following steps: receiving a file printing instruction; calling a printing control according to the printing instruction; and sending a printing instruction to a printer according to the printing control.
Description
Technical Field
The invention relates to the field of communication and computers, in particular to a method for printing a file.
Background
PDF (Portable Document Format for short) files are independent of the operating system platform, and are common in Windows, Unix, and apple Mac OS operating systems. The characteristic makes it an ideal document format for electronic document issuing and digital information spreading on Internet, and PDF document is based on PostScript language image model, and no matter which printer it can ensure accurate color and accurate printing effect, so PDF printing technology is widely promoted. The PDF printing at present is mainly a way of generating a PDF file, opening the PDF file, and then printing. The PDF file printing mainly comprises two modes of file printing and document envelope printing, wherein the file printing refers to calling a printer to print in a way of normally opening a file, and the document envelope printing mainly comprises opening a PDF file after generating or reading a PDF file path and then printing in a way of printing the PDF file.
The applicant of the present invention has found that the following problems exist in the prior art: the above two PDF file printing modes are not good for the user in the actual scene environment, and in the worst case, the printing can be completed by 4-5 operation actions, and even in the best case, the printing can be completed by 2-3 operation actions.
Disclosure of Invention
In order to overcome the problems in the related art, the invention provides a file printing method which is used for printing a PDF file, and a user can directly print the PDF file only by clicking the printing operation, thereby reducing the operation times of the user.
The invention provides a method for printing a file, which comprises the following steps:
receiving a file printing instruction;
calling a printing control according to the printing instruction;
and sending a printing instruction to a printer according to the printing control.
Further, the method further comprises:
acquiring a file corresponding to the printing instruction according to the printing instruction;
and writing the file corresponding to the printing instruction into a cache region to wait for printing.
Further, the acquiring the file corresponding to the printing instruction according to the printing instruction includes:
obtaining a path of the file according to the printing instruction;
and acquiring a file corresponding to the printing instruction through the path.
Further, the sending a printing instruction to a printer according to the printing control includes:
acquiring a printer driver;
calling the printer driver according to the printing control;
and sending a printing instruction to a printer through the printer driver.
According to the method and the device, the printing control is called, the PDF file is directly sent to the printing pool to wait for printing according to the control of the printing control, the user only needs to carry out the operation of sending the printing instruction, and the subsequent steps are all executed through the printing control, so that the operation times of the user in printing the PDF file are reduced, the probability of errors caused by multiple operation steps in printing the PDF file by the user is reduced, and the PDF file printing speed of the user is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention, as claimed.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
Fig. 1 is a flowchart of document printing according to an embodiment of the present invention.
Fig. 2 is a flowchart of document printing according to an embodiment of the present invention.
Fig. 3 is a flowchart of document printing according to an embodiment of the present invention.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
As shown in fig. 1, an embodiment of the present invention provides a method for printing a document, including:
in step 101, a document printing instruction is received.
In step 102, a print control is called according to the print instruction.
In step 103, a print instruction is sent to the printer according to the print control.
The embodiment of the invention provides a method for printing a file, which directly sends a PDF file to a printing pool to wait for printing by calling a printing control and according to the control of the printing control, a user only needs to perform the operation of sending a printing instruction, and the subsequent steps are all executed by the printing control, so that the operation times of the user when printing the PDF file are reduced, the probability of errors caused by more operation steps when the user prints the PDF file is reduced, and the PDF file printing speed of the user is improved.
In one embodiment, the method further comprises:
acquiring a file corresponding to the printing instruction according to the printing instruction;
and writing the file corresponding to the printing instruction into a cache region to wait for printing.
According to the embodiment of the invention, the corresponding PDF file is obtained through the printing instruction, and the PDF file is directly written into the cache region, so that the purpose of printing the PDF file according to the printing instruction is realized, and the operation times of a user in printing the PDF file are reduced.
In one embodiment, acquiring a file corresponding to a print instruction according to the print instruction includes:
obtaining a path of the file according to the printing instruction;
and acquiring a file corresponding to the printing instruction through the path.
According to the embodiment of the invention, the PDF file is obtained through the path of the PDF file, the PDF file to be printed can be accurately obtained, and the rate and the accuracy of obtaining the PDF file are improved.
In one embodiment, sending a print instruction to a printer according to a print control comprises:
acquiring a printer driver;
calling a printer driver according to the printing control;
and sending a printing instruction to the printer through the printer driver.
According to the embodiment of the invention, the printer driver is called through the printing control, and the user does not need to operate the printing interface during printing, so that the operation times of the user during printing the PDF file are further reduced, and the PDF printing efficiency of the user is improved.
As shown in fig. 2, an embodiment of the present invention provides a method for printing a document, which includes the following specific steps:
in step S201, a print instruction to print a PDF file is received.
In step S202, a print control is called according to a print instruction to print a PDF file. The print Control is an Object-oriented program developed based on ocx (Object Linking and Embedding Control Extension, an executable file).
In step S203, a PDF file to be printed is acquired according to a print instruction to print the PDF file.
In step S204, the PDF file to be printed is written to a buffer area waiting for printing, where the buffer area is a storage space separately drawn for temporarily storing the PDF file.
In step S205, a printer driver of the printer that executes the print job is acquired according to the print instruction.
In step S206, the printer driver is invoked via the print control.
In step S207, the PDF file is sent to the printer by the printer driver, and a print instruction is sent to the printer.
The embodiment of the invention provides a method for printing a file, which directly sends a PDF file to a printing pool to wait for printing by calling a printing control and according to the control of the printing control, a user only needs to perform the operation of sending a printing instruction, and the subsequent steps are all executed by the printing control, so that the operation times of the user when printing the PDF file are reduced, the probability of errors caused by more operation steps when the user prints the PDF file is reduced, and the PDF file printing speed of the user is improved.
As shown in fig. 3, an embodiment of the present invention provides a method for printing a document, and in this embodiment, step S203 of the foregoing embodiment may be further implemented as the following steps:
in step S301, a path of a PDF file to be printed is obtained according to a print instruction to print the PDF file.
In step S302, a PDF file to be printed is acquired through a path of the PDF file to be printed.
The embodiment of the invention provides a file printing method, which can accurately acquire a PDF file to be printed by acquiring the PDF file through the path of the PDF file, and improve the speed and accuracy of acquiring the PDF file.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.
Claims (4)
1. A method of document printing, comprising:
receiving a file printing instruction;
calling a printing control according to the printing instruction;
and sending a printing instruction to a printer according to the printing control.
2. The method of printing a document according to claim 1, the method further comprising:
acquiring a file corresponding to the printing instruction according to the printing instruction;
and writing the file corresponding to the printing instruction into a cache region to wait for printing.
3. The method for printing the file according to claim 2, wherein the obtaining the file corresponding to the printing instruction according to the printing instruction comprises:
obtaining a path of the file according to the printing instruction;
and acquiring a file corresponding to the printing instruction through the path.
4. The method for printing the file according to claim 1, wherein the sending a printing instruction to a printer according to the printing control comprises:
acquiring a printer driver;
calling the printer driver according to the printing control;
and sending a printing instruction to a printer through the printer driver.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010618588.2A CN113448519A (en) | 2020-07-01 | 2020-07-01 | Method for printing file |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010618588.2A CN113448519A (en) | 2020-07-01 | 2020-07-01 | Method for printing file |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113448519A true CN113448519A (en) | 2021-09-28 |
Family
ID=77808342
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010618588.2A Pending CN113448519A (en) | 2020-07-01 | 2020-07-01 | Method for printing file |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113448519A (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1661542A (en) * | 2004-02-23 | 2005-08-31 | 德鑫科技股份有限公司 | System and method capable of dynamic adjusting print jobs |
CN102574404A (en) * | 2009-09-28 | 2012-07-11 | Csr技术公司 | Preview and modification of printable components of a document at a printing device |
CN110471634A (en) * | 2019-08-22 | 2019-11-19 | 晓印(北京)科技有限公司 | Method of printing, device and readable storage medium storing program for executing |
-
2020
- 2020-07-01 CN CN202010618588.2A patent/CN113448519A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1661542A (en) * | 2004-02-23 | 2005-08-31 | 德鑫科技股份有限公司 | System and method capable of dynamic adjusting print jobs |
CN102574404A (en) * | 2009-09-28 | 2012-07-11 | Csr技术公司 | Preview and modification of printable components of a document at a printing device |
CN110471634A (en) * | 2019-08-22 | 2019-11-19 | 晓印(北京)科技有限公司 | Method of printing, device and readable storage medium storing program for executing |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107256134B (en) | Method and device for virtualizing POS terminal as computer printer and POS terminal | |
US8089644B2 (en) | Image-processing device, recording medium, and method | |
US20030090694A1 (en) | Just-in-time printer discovery and driver installation system and method | |
CN112181328B (en) | Printing control system and method and computing device | |
JP5103339B2 (en) | Dynamic printer driver user interface generation | |
US6476938B1 (en) | Print control system and method | |
JP3209102B2 (en) | Print system, printer driver and printer | |
US20070171448A1 (en) | Mime type-based printer driver selection | |
US7643160B2 (en) | Spool file modifying device | |
CN108897779A (en) | A kind of quick obtaining list value and the method and system to list assignment | |
CN113448519A (en) | Method for printing file | |
US20060209334A1 (en) | Methods and systems for providing index data for print job data | |
US20050225797A1 (en) | Printing apparatus and its control method, and program | |
JP6833419B2 (en) | Information processing equipment, methods and programs | |
US9354834B2 (en) | Printing with virtual printer | |
JP6839389B2 (en) | Image processing and error handling systems and printing methods for linearized and non-linearized portable document format (Pdf) files | |
JP3209916B2 (en) | Information processing apparatus and data processing method of information processing apparatus | |
CN110489065A (en) | A kind of batch images Method of printing based on Web | |
JP2005108116A (en) | Printer device, information processor, printing system, printing data processing method, computer program and computer-readable storing medium | |
JP3810238B2 (en) | Print job management apparatus, print job management method, and recording medium recording program | |
CN116360713A (en) | Printing control method and device | |
CN117806574A (en) | Printing method, printing device, electronic equipment and storage medium | |
JP2002120418A (en) | Printer device and image processing device comprising the printer device | |
CN114780046A (en) | Printing control method and device, electronic equipment printer and storage medium | |
JP2002366331A (en) | Storage type printer |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20210928 |