CN110795046B - Document printing method and device, computer storage medium and terminal - Google Patents
Document printing method and device, computer storage medium and terminal Download PDFInfo
- Publication number
- CN110795046B CN110795046B CN201810871733.0A CN201810871733A CN110795046B CN 110795046 B CN110795046 B CN 110795046B CN 201810871733 A CN201810871733 A CN 201810871733A CN 110795046 B CN110795046 B CN 110795046B
- Authority
- CN
- China
- Prior art keywords
- printing
- view
- document
- displayed
- page
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 24
- 238000012545 processing Methods 0.000 claims abstract description 15
- 238000005516 engineering process Methods 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 238000010191 image analysis Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012552 review Methods 0.000 description 1
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
-
- 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
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
A method, a device, a computer storage medium and a terminal for printing a document comprise: when a printing instruction for printing the view is received, determining whether the number of pages of the document displayed in the current window is greater than 1 page; when the number of pages of the document displayed in the current window is determined to be more than 1 page, intercepting a view displayed in the current window; and performing printing processing on the intercepted view. The embodiment of the invention realizes the printing of the view containing the multi-page document and provides a basis for improving the working efficiency of the user.
Description
Technical Field
The present disclosure relates to, but is not limited to, information editing technology, and in particular, to a method, an apparatus, a computer storage medium, and a terminal for printing a document.
Background
Currently, portable document format (PDF, portable Document Format, a file format developed by Adobe Systems for file exchange in a manner independent of application programs, operating Systems, and hardware) documents can be printed only when a view has only one page, and when the view contains multiple pages, a printing operation cannot be performed.
In daily use scenes, in order to facilitate information review and comparison, a user can display a PDF file in a computer in a multi-page view mode, and if a plurality of users need to discuss the multi-page view at the same time or the users need to analyze and mark the view in a window, the existing methods for printing the current view and printing the multi-page document are not beneficial to the development of the work.
Disclosure of Invention
The following is a summary of the subject matter described in detail herein. This summary is not intended to limit the scope of the claims.
The embodiment of the invention provides a method, a device, a computer storage medium and a terminal for printing a document, which can provide a basis for improving the working efficiency of a user.
The embodiment of the invention provides a method for printing a document, which comprises the following steps:
when a printing instruction for printing the view is received, determining whether the number of pages of the document displayed in the current window is greater than 1 page;
When the number of pages of the document displayed in the current window is determined to be more than 1 page, intercepting a view displayed in the current window;
and performing printing processing on the intercepted view.
Optionally, the printing instruction includes: and receiving an instruction through a preset control arranged on the printing interface.
Optionally, the method further comprises:
And when the number of pages of the document displayed by the current window is determined to be equal to 1 page, directly printing the view of the current window according to the printing instruction.
Optionally, the document includes: portable document format PDF documents.
On the other hand, the embodiment of the invention also provides a device for printing the document, which comprises: the device comprises a determining unit, an intercepting unit and a printing unit; wherein,
The determining unit is used for: when a printing instruction for printing the view is received, determining whether the number of pages of the document displayed in the current window is greater than 1 page;
the intercepting unit is used for: when the determining unit determines that the number of pages of the document displayed in the current window is greater than 1 page, intercepting a view displayed in the current window;
the printing unit is used for: and performing printing processing on the intercepted view.
Optionally, the printing instruction includes: and receiving an instruction through a preset control arranged on the printing interface.
Optionally, the printing unit is further configured to:
And when the determining unit determines that the number of pages of the document displayed by the current window is equal to 1 page, directly printing the view of the current window according to the printing instruction.
Optionally, the document includes: portable document format PDF documents.
In yet another aspect, an embodiment of the present invention further provides a computer storage medium having stored therein computer-executable instructions for performing the method for printing a document described above.
In yet another aspect, an embodiment of the present invention further provides a terminal, including: a memory and a processor; wherein,
The processor is configured to execute the program instructions in the memory;
The program instructions read at the processor:
when a printing instruction for printing the view is received, determining whether the number of pages of the document displayed in the current window is greater than 1 page;
When the number of pages of the document displayed in the current window is determined to be more than 1 page, intercepting a view displayed in the current window;
and performing printing processing on the intercepted view.
Compared with the related art, the technical scheme of the application comprises the following steps: when a printing instruction for printing the view is received, determining whether the number of pages of the document displayed in the current window is greater than 1 page; when the number of pages of the document displayed in the current window is determined to be more than 1 page, intercepting a view displayed in the current window; and performing printing processing on the intercepted view. The embodiment of the application realizes the printing of the view containing the multi-page document and provides a basis for improving the working efficiency of the user.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
The accompanying drawings are included to provide a further understanding of the application and are incorporated in and constitute a part of this specification, illustrate and do not limit the application.
FIG. 1 is a flow chart of a method of document printing according to an embodiment of the present invention;
FIG. 2 is a block diagram showing the structure of a document printing apparatus according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, embodiments of the present application will be described in detail hereinafter with reference to the accompanying drawings. It should be noted that, without conflict, the embodiments of the present application and features of the embodiments may be arbitrarily combined with each other.
The steps illustrated in the flowchart of the figures may be performed in a computer system, such as a set of computer-executable instructions. Also, while a logical order is depicted in the flowchart, in some cases, the steps depicted or described may be performed in a different order than presented herein.
FIG. 1 is a flowchart of a method for printing a document according to an embodiment of the present invention, as shown in FIG. 1, including:
Step 101, when a printing instruction for printing the view is received, determining whether the number of pages of the document displayed in the current window is greater than 1 page;
optionally, the printing instruction of the embodiment of the invention includes: and receiving an instruction through a preset control arranged on the printing interface.
It should be noted that, the control used in the embodiment of the present invention may be modified based on the control existing in the related art in theory, including, but not limited to, a view obtained after modification of the control of the current print view.
102, When the number of pages of the document displayed in the current window is determined to be more than 1 page, intercepting a view displayed in the current window;
It should be noted that, in the embodiment of the present invention, capturing the view displayed by the current window may include directly capturing the current window to obtain the picture; may further include: with the image analysis processing technology existing in the related art, only the part containing the document view in the current window is intercepted.
And 103, performing printing processing on the intercepted view.
It should be noted that, the number of pages of the document displayed by the current window can be determined by view attribute information in the running log.
Optionally, the method of the embodiment of the invention further comprises the following steps:
And when the number of pages of the document displayed by the current window is determined to be equal to 1 page, directly printing the view of the current window according to the printing instruction.
Optionally, the document of the embodiment of the present invention includes: portable document format PDF documents.
Compared with the related art, the technical scheme of the application comprises the following steps: when a printing instruction for printing the view is received, determining whether the number of pages of the document displayed in the current window is greater than 1 page; when the number of pages of the document displayed in the current window is determined to be more than 1 page, intercepting a view displayed in the current window; and performing printing processing on the intercepted view. The embodiment of the application realizes the printing of the view containing the multi-page document and provides a basis for improving the working efficiency of the user.
FIG. 2 is a block diagram of an apparatus for printing a document according to an embodiment of the present invention, as shown in FIG. 2, including: the device comprises a determining unit, an intercepting unit and a printing unit; wherein,
The determining unit is used for: when a printing instruction for printing the view is received, determining whether the number of pages of the document displayed in the current window is greater than 1 page;
the intercepting unit is used for: when the determining unit determines that the number of pages of the document displayed in the current window is greater than 1 page, intercepting a view displayed in the current window;
It should be noted that, in the embodiment of the present invention, capturing the view displayed by the current window may include directly capturing the current window to obtain the picture; may further include: with the image analysis processing technology existing in the related art, only the part containing the document view in the current window is intercepted.
The printing unit is used for: and performing printing processing on the intercepted view.
It should be noted that, the number of pages of the document displayed by the current window can be determined by view attribute information in the running log.
Optionally, the printing instruction of the embodiment of the invention includes: and receiving an instruction through a preset control arranged on the printing interface.
It should be noted that, the control used in the embodiment of the present invention may be modified based on the control existing in the related art in theory, including, but not limited to, a view obtained after modification of the control of the current print view.
Optionally, the printing unit of the embodiment of the present invention is further configured to:
And when the determining unit determines that the number of pages of the document displayed by the current window is equal to 1 page, directly printing the view of the current window according to the printing instruction.
Optionally, the document of the embodiment of the present invention includes: portable document format PDF documents.
Compared with the related art, the technical scheme of the application comprises the following steps: when a printing instruction for printing the view is received, determining whether the number of pages of the document displayed in the current window is greater than 1 page; when the number of pages of the document displayed in the current window is determined to be more than 1 page, intercepting a view displayed in the current window; and performing printing processing on the intercepted view. The embodiment of the application realizes the printing of the view containing the multi-page document and provides a basis for improving the working efficiency of the user.
The embodiment of the invention also provides a computer storage medium, wherein the computer storage medium stores computer executable instructions for executing the method for printing the document.
The embodiment of the invention also provides a terminal, which comprises: a memory and a processor; wherein,
The processor is configured to execute the program instructions in the memory;
The program instructions read at the processor:
when a printing instruction for printing the view is received, determining whether the number of pages of the document displayed in the current window is greater than 1 page;
When the number of pages of the document displayed in the current window is determined to be more than 1 page, intercepting a view displayed in the current window;
and performing printing processing on the intercepted view.
Those of ordinary skill in the art will appreciate that all or a portion of the steps of the methods described above may be performed by a program that instructs associated hardware (e.g., a processor) to perform the steps, and that the program may be stored on a computer readable storage medium such as a read only memory, a magnetic or optical disk, etc. Alternatively, all or part of the steps of the above embodiments may be implemented using one or more integrated circuits. Accordingly, each module/unit in the above embodiments may be implemented in the form of hardware, for example, by an integrated circuit, or may be implemented in the form of a software functional module, for example, by a processor executing programs/instructions stored in a memory to implement their respective functions. The present invention is not limited to any specific form of combination of hardware and software.
Although the embodiments of the present invention are described above, the embodiments are only used for facilitating understanding of the present invention, and are not intended to limit the present invention. Any person skilled in the art can make any modification and variation in form and detail without departing from the spirit and scope of the present disclosure, but the scope of the present disclosure is to be determined by the appended claims.
Claims (8)
1. A method of document view printing, comprising:
Displaying the document in a view mode, and determining whether the number of pages of the document displayed in the current document window is larger than 1 page or not when a printing instruction for printing the view is received;
When the number of pages of the document displayed in the current document window is determined to be more than 1 page, intercepting a view displayed in the current document window;
printing the intercepted view;
Wherein intercepting the view displayed by the current document window comprises intercepting only the portion of the current document window containing the document view by image processing analysis techniques.
2. The method of claim 1, wherein the print instructions comprise: and receiving an instruction through a preset control arranged on the printing interface.
3. The method according to claim 1, wherein the method further comprises:
And when the number of pages of the document displayed by the current document window is determined to be equal to 1 page, directly printing the view of the current document window according to the printing instruction.
4. An apparatus for printing a view of a document, comprising: the device comprises a determining unit, an intercepting unit and a printing unit; wherein,
The determining unit is used for: the method comprises the steps that a document is displayed in a view mode, and when a printing instruction for printing the view is received, whether the number of pages of the document displayed in a current document window is larger than 1 page is determined;
The intercepting unit is used for: when the determining unit determines that the number of pages of the document displayed in the current document window is greater than 1 page, intercepting a view displayed in the current document window;
the printing unit is used for: printing the intercepted view;
Wherein intercepting the view displayed by the current document window comprises intercepting only the portion of the current document window containing the document view by image processing analysis techniques.
5. The apparatus of claim 4, wherein the print instructions comprise: and receiving an instruction through a preset control arranged on the printing interface.
6. The apparatus of claim 4, wherein the printing unit is further configured to:
and when the determining unit determines that the number of pages of the document displayed by the current document window is equal to 1 page, directly printing the view of the current document window according to the printing instruction.
7. A computer storage medium having stored therein computer executable instructions for performing the method of document printing of any one of claims 1 to 3.
8. A terminal, comprising: a memory and a processor; wherein,
The processor is configured to execute the program instructions in the memory;
The program instructions read at the processor:
the method comprises the steps that a document is displayed in a view mode, and when a printing instruction for printing the view is received, whether the number of pages of the document displayed in a current document window is larger than 1 page is determined;
When the number of pages of the document displayed in the current document window is determined to be more than 1 page, intercepting a view displayed in the current document window;
printing the intercepted view;
Wherein intercepting the view displayed by the current document window comprises intercepting only the portion of the current document window containing the document view by image processing analysis techniques.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810871733.0A CN110795046B (en) | 2018-08-02 | 2018-08-02 | Document printing method and device, computer storage medium and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810871733.0A CN110795046B (en) | 2018-08-02 | 2018-08-02 | Document printing method and device, computer storage medium and terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110795046A CN110795046A (en) | 2020-02-14 |
CN110795046B true CN110795046B (en) | 2024-05-07 |
Family
ID=69425097
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810871733.0A Active CN110795046B (en) | 2018-08-02 | 2018-08-02 | Document printing method and device, computer storage medium and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110795046B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1904819A (en) * | 2005-07-27 | 2007-01-31 | 三星电子株式会社 | Apparatus and method for printing plurality of pages on one page in pdf direct printing |
CN101377731A (en) * | 2008-09-18 | 2009-03-04 | 北大方正集团有限公司 | Method and terminal for controlling document print |
CN103729153A (en) * | 2012-10-15 | 2014-04-16 | 金蝶软件(中国)有限公司 | Printing method and printing device |
JP2017204191A (en) * | 2016-05-12 | 2017-11-16 | 京セラドキュメントソリューションズ株式会社 | Information processing apparatus and printing system |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080320386A1 (en) * | 2007-06-23 | 2008-12-25 | Advancis.Com, Inc. | Methods for optimizing the layout and printing of pages of Digital publications. |
-
2018
- 2018-08-02 CN CN201810871733.0A patent/CN110795046B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1904819A (en) * | 2005-07-27 | 2007-01-31 | 三星电子株式会社 | Apparatus and method for printing plurality of pages on one page in pdf direct printing |
CN101377731A (en) * | 2008-09-18 | 2009-03-04 | 北大方正集团有限公司 | Method and terminal for controlling document print |
CN103729153A (en) * | 2012-10-15 | 2014-04-16 | 金蝶软件(中国)有限公司 | Printing method and printing device |
JP2017204191A (en) * | 2016-05-12 | 2017-11-16 | 京セラドキュメントソリューションズ株式会社 | Information processing apparatus and printing system |
Also Published As
Publication number | Publication date |
---|---|
CN110795046A (en) | 2020-02-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9591169B2 (en) | Image processing apparatus and program | |
US20130227407A1 (en) | Method and device for displaying an electronic document | |
WO2019033656A1 (en) | Board-writing processing method, device and apparatus, and computer-readable storage medium | |
US8718374B2 (en) | Method and apparatus for accessing an electronic resource based upon a hand-drawn indicator | |
CN110619252A (en) | Method, device and equipment for identifying form data in picture and storage medium | |
CN111651966A (en) | Data report file generation method and device and electronic equipment | |
CN110889406B (en) | Method, system and terminal for acquiring information of problem data card | |
CN111881904A (en) | Blackboard writing recording method and system | |
CN114330245A (en) | OFD document processing method and device | |
CN114299478A (en) | Image processing method and device combining RPA and AI and electronic equipment | |
US8161023B2 (en) | Inserting a PDF shared resource back into a PDF statement | |
CN110795046B (en) | Document printing method and device, computer storage medium and terminal | |
CN111198664B (en) | Document printing method and device, computer storage medium and terminal | |
CN101334990A (en) | Information display apparatus, display system, and information display method | |
CN110941947A (en) | Document editing method and device, computer storage medium and terminal | |
CN113655973B (en) | Page segmentation method and device, electronic equipment and storage medium | |
CN102346771A (en) | Information expression method and device | |
CN115495498A (en) | Data association method, system, electronic device and storage medium | |
CN110929481B (en) | Method and device for editing document, computer storage medium and terminal | |
CN110110255B (en) | Electronic file processing method and device | |
CN111198858A (en) | File processing method and device, computer storage medium and terminal | |
CN112434641A (en) | Test question image processing method, device, equipment and medium | |
CN110807301B (en) | Method and device for editing document, computer storage medium and terminal | |
CN111414738B (en) | Information analysis method, device, computer storage medium and terminal | |
CN111797345A (en) | Application page display method and device, computer equipment and storage medium |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |