CN111949230B - LibreOffice document-based overlay printing method, terminal device and storage medium - Google Patents

LibreOffice document-based overlay printing method, terminal device and storage medium Download PDF

Info

Publication number
CN111949230B
CN111949230B CN202010795465.6A CN202010795465A CN111949230B CN 111949230 B CN111949230 B CN 111949230B CN 202010795465 A CN202010795465 A CN 202010795465A CN 111949230 B CN111949230 B CN 111949230B
Authority
CN
China
Prior art keywords
document
page
rectangle
width
printing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010795465.6A
Other languages
Chinese (zh)
Other versions
CN111949230A (en
Inventor
江振华
丁善贤
范立文
钟晓英
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
XIAMEN ZHIYE SOFTWARE ENGINEERING CO LTD
Original Assignee
XIAMEN ZHIYE SOFTWARE ENGINEERING CO LTD
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by XIAMEN ZHIYE SOFTWARE ENGINEERING CO LTD filed Critical XIAMEN ZHIYE SOFTWARE ENGINEERING CO LTD
Priority to CN202010795465.6A priority Critical patent/CN111949230B/en
Publication of CN111949230A publication Critical patent/CN111949230A/en
Application granted granted Critical
Publication of CN111949230B publication Critical patent/CN111949230B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • 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/1242Image or content composition onto a page
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16HHEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
    • G16H10/00ICT specially adapted for the handling or processing of patient-related medical or healthcare data
    • G16H10/60ICT specially adapted for the handling or processing of patient-related medical or healthcare data for patient-specific data, e.g. for electronic patient records

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Epidemiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Primary Health Care (AREA)
  • Public Health (AREA)
  • Record Information Processing For Printing (AREA)

Abstract

The invention relates to an overlay printing method, terminal equipment and storage medium based on a library office document, wherein when the document is set in an overlay printing mode, the following steps are carried out: when a left mouse button clicking instruction is received, the length and the width from the top of a document to the left mouse button clicking position are obtained, a rectangle with filling colors is drawn from the top of the document to the left mouse button clicking position according to the length and the width, and the rectangle is covered above the text of the document; when a right mouse click command is received, the length and the width from the bottom of the document to the right mouse click position are obtained, a rectangle with filling colors is drawn from the bottom of the document to the right mouse click position according to the length and the width, and the rectangle is covered above the text of the document; and when a printing instruction is received, printing the covered document. The invention can conveniently and quickly select the non-printing area and can print the non-printing area as seen by a user.

Description

LibreOffice document-based overlay printing method, terminal device and storage medium
Technical Field
The invention relates to the field of printing, in particular to an overlay printing method based on a library office document, a terminal device and a storage medium.
Background
When a medical staff prints an electronic medical record, it is often necessary to cover a part of the document and only print the contents of a certain middle line. When printing, it is desirable to be able to easily select and overlay the upper and lower contents. Currently, two methods are generally adopted: 1. the user uses a mouse to select the covered area by using the rectangular frame, but when the document is long, the user is very inconvenient to select; 2. when the user prints, the line number which does not need to be printed is manually input according to the line number, so that the user can easily see the line number by mistake and cannot see the printing effect.
Disclosure of Invention
In order to solve the above problems, the present invention provides an overlay printing method, a terminal device, and a storage medium based on LibreOffice documents.
The specific scheme is as follows:
an overlay printing method based on a LibreOffice document, when the document is set in an overlay printing mode, performing the following steps:
when a left mouse button clicking instruction is received, the length and the width from the top of the document to the left mouse button clicking position are obtained, a rectangle with filling colors is drawn from the top of the document to the left mouse button clicking position according to the length and the width, and the rectangle is covered above the text of the document;
when a right mouse click command is received, the length and the width from the bottom of the document to the right mouse click position are obtained, a rectangle with filling colors is drawn from the bottom of the document to the right mouse click position according to the length and the width, and the rectangle is covered above the text of the document;
and when a printing instruction is received, printing the covered document.
Further, when a left mouse button click instruction is received, the drawing method of the rectangle is as follows:
acquiring a Page object of the document, and acquiring the following document parameters through GetPropertyValue () of the Page object: the height of each page of the document, the width of each page of the document, the page number page of the current page where the cursor is located and the distance between the top of the current page where the cursor is located and the cursor;
calculating the coverage height Cheight according to the obtained document parameters:
Cheight=(page-1)*height+distance
acquiring a drawing object Draw of a document, initializing the shape and filling color of the Draw object, setting the shape to be a rectangle, and drawing the rectangle from the top of the document to the left mouse click position after setting the position and size of the rectangle to be drawn respectively through SetPosition () and SetSize () of the drawing object Draw.
Further, when a right mouse click instruction is received, the drawing method of the rectangle is as follows:
acquiring a Page object of the document, and acquiring the following document parameters through GetPropertyValue () of the Page object: the height of each page of the document, the width of each page of the document, the page number page of the current page where the cursor is located, the total page number total of the document and the distance between the top of the current page where the cursor is located and the cursor;
calculating the coverage height Cheight according to the obtained document parameters:
Cheight=(total-page)*height+distance
acquiring a drawing object Draw of a document, initializing the shape and filling color of the Draw object, setting the shape to be a rectangle, and drawing the rectangle from the bottom of the document to the right mouse click position after setting the position and size of the rectangle to be drawn respectively through SetPosition () and SetSize () of the drawing object Draw.
An overlay printing terminal device based on a libroefice document comprises a processor, a memory and a computer program which is stored in the memory and can run on the processor, wherein the processor executes the computer program to realize the steps of the method of the embodiment of the invention.
A computer-readable storage medium, in which a computer program is stored, which, when being executed by a processor, carries out the steps of the method as described above for an embodiment of the invention.
By adopting the technical scheme, the non-printing area can be conveniently and quickly selected, and the printing can be performed by the user.
Drawings
Fig. 1 is a flowchart illustrating a first embodiment of the present invention.
Detailed Description
To further illustrate the various embodiments, the invention provides the accompanying drawings. The accompanying drawings, which are incorporated in and constitute a part of this disclosure, illustrate embodiments of the invention and, together with the description, serve to explain the principles of the embodiments. With these references, one of ordinary skill in the art will appreciate other possible embodiments and advantages of the present invention.
The invention will now be further described with reference to the drawings and the detailed description.
The first embodiment is as follows:
the embodiment of the invention provides an overlay printing method based on a LibreOffice document, wherein the used interfaces provided by the LibreOffice comprise: page processing (Page object), drawing (Draw object), and printing (Print object) interface.
When the document needs to be printed in an overlaying mode, the user clicks a button corresponding to the overlaying mode in the toolbar to enable the document to be in the overlaying mode. As shown in fig. 1: the operation flow at this time is as follows:
(1) when the upper content of the content to be printed does not need to be printed, the user clicks with the left mouse button above the initial line of the content to be printed of the document.
When the system receives a left mouse button clicking instruction, the length and the width from the top of the document to the left mouse button clicking position are obtained, a rectangle with filling colors is drawn from the top of the document to the left mouse button clicking position according to the length and the width, and the rectangle is covered above the text of the document.
The specific drawing method of the rectangle is as follows:
when a left mouse button clicking instruction is received, a Page object of a document is obtained, and the following document parameters are obtained through GetPropertyValue () of the Page object: the height of each page of the document, the width of each page of the document, the page number of the current page where the cursor is positioned, and the distance between the top of the current page where the cursor is positioned and the cursor;
calculating the coverage height Cheight according to the obtained document parameters:
Cheight=(page-1)*height+distance
acquiring a drawing object Draw of a document, initializing the shape and filling color of the Draw object, setting the shape to be a rectangle, and drawing the rectangle from the top of the document to the left mouse click position after setting the position and size of the rectangle to be drawn respectively through SetPosition () and SetSize () of the drawing object Draw.
The filling color can be set by the person skilled in the art, in this embodiment white.
(2) And when the content below the content to be printed does not need to be printed, right clicking by using a mouse below the end line of the content to be printed of the document.
When the system receives a right mouse click command, the length and the width from the bottom of the document to the right mouse click position are obtained, a rectangle with filling colors is drawn from the bottom of the document to the right mouse click position according to the length and the width, and the rectangle is covered above the text of the document.
The specific drawing method of the rectangle is as follows:
when a right mouse click instruction is received, a Page object of a document is acquired, and the following document parameters are acquired through GetPropertyValue () of the Page object: the height of each page of the document, the width of each page of the document, the page number page of the current page where the cursor is located, the total page number total of the document and the distance between the top of the current page where the cursor is located and the cursor;
calculating the coverage height Cheight according to the obtained document parameters:
Cheight=(total-page)*height+distance
acquiring a drawing object Draw of a document, initializing the shape and filling color of the Draw object, setting the shape to be a rectangle, and drawing the rectangle from the bottom of the document to the right mouse click position after setting the position and size of the rectangle to be drawn respectively through SetPosition () and SetSize () of the drawing object Draw.
(3) And when the areas of the document which do not need to be printed are completely covered, clicking a button corresponding to the printing in the toolbar by the user.
And when the system receives a printing instruction, printing the covered document.
Printing is performed by calling the Printer object.
According to the embodiment of the invention, the non-printing area can be conveniently and quickly selected, and the printing can be performed by the user in the seeing mode.
Example two:
the invention further provides libroef document-based overlay printing terminal equipment, which comprises a memory, a processor and a computer program stored in the memory and capable of running on the processor, wherein the processor executes the computer program to realize the steps in the above method embodiment of the first embodiment of the invention.
Further, as an executable solution, the LibreOffice document-based overlay printing terminal device may be a desktop computer, a notebook, a cloud server, and other computing devices. The LibreOffice document based overlay printing terminal device may include, but is not limited to, a processor, a memory. It is understood by those skilled in the art that the above-mentioned composition structure of the libroefice document based overlay printing terminal device is only an example of the libroefice document based overlay printing terminal device, and does not constitute a limitation on the libroefice document based overlay printing terminal device, and may include more or less components than the above, or combine some components, or different components, for example, the libroefice document based overlay printing terminal device may further include an input and output device, a network access device, a bus, and the like, which is not limited by the embodiment of the present invention.
Further, as an executable solution, the Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, a discrete hardware component, and the like. The general processor may be a microprocessor or the processor may be any conventional processor or the like, the processor is a control center of the libroeoffice document based overlay printing terminal device, and various interfaces and lines are used to connect various parts of the whole libroeoffice document based overlay printing terminal device.
The memory may be used to store the computer program and/or module, and the processor implements various functions of the libroef document-based overlay printing terminal device by running or executing the computer program and/or module stored in the memory and calling data stored in the memory. The memory can mainly comprise a program storage area and a data storage area, wherein the program storage area can store an operating system and an application program required by at least one function; the storage data area may store data created according to the use of the mobile phone, and the like. In addition, the memory may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
The invention also provides a computer-readable storage medium, in which a computer program is stored, which, when being executed by a processor, carries out the steps of the above-mentioned method of an embodiment of the invention.
The LibreOffice document-based overlay printing terminal device integrated module/unit may be stored in a computer-readable storage medium if it is implemented in the form of a software functional unit and sold or used as a separate product. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM ), Random Access Memory (RAM), software distribution medium, and the like.
While the invention has been particularly shown and described with reference to a preferred embodiment, it will be understood by those skilled in the art that various changes in form and detail may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (4)

1. An overlay printing method based on a library office document, characterized in that when the document is set in an overlay printing mode, the following steps are performed:
when a left mouse button clicking instruction is received, the length and the width from the top of the document to the left mouse button clicking position are obtained, a rectangle with filling colors is drawn from the top of the document to the left mouse button clicking position according to the length and the width, and the rectangle is covered above the text of the document; when a mouse left button clicking instruction is received, the drawing method of the rectangle is as follows:
acquiring a Page object of the document, and acquiring the following document parameters through GetPropertyValue () of the Page object: the height of each page of the document, the width of each page of the document, the page number page of the current page where the cursor is located and the distance between the top of the current page where the cursor is located and the cursor;
calculating the coverage height Cheight according to the obtained document parameters:
Cheight=(page-1)*height+distance
acquiring a drawing object Draw of a document, initializing the shape and filling color of the Draw object, setting the shape to be a rectangle, and drawing the rectangle from the top of the document to the click position of the left mouse button on the document after setting the position and the size of the rectangle to be drawn respectively through SetPosition () and SetSize () of the drawing object Draw;
when a right mouse click command is received, the length and the width from the bottom of the document to the right mouse click position are obtained, a rectangle with filling colors is drawn from the bottom of the document to the right mouse click position according to the length and the width, and the rectangle is covered above the text of the document;
and when a printing instruction is received, printing the covered document.
2. The LibreOffice document-based overlay printing method according to claim 1, wherein: when a right mouse click command is received, the drawing method of the rectangle is as follows:
acquiring a Page object of the document, and acquiring the following document parameters through GetPropertyValue () of the Page object: the height of each page of the document, the width of each page of the document, the page number page of the current page where the cursor is located, the total page number total of the document and the distance between the bottom of the current page where the cursor is located and the cursor;
calculating the coverage height Cheight according to the obtained document parameters:
Cheight=(total-page)*height+distance
acquiring a drawing object Draw of a document, initializing the shape and filling color of the Draw object, setting the shape to be a rectangle, and drawing the rectangle from the bottom of the document to the right mouse click position after setting the position and size of the rectangle to be drawn respectively through SetPosition () and SetSize () of the drawing object Draw.
3. The utility model provides a cover printing terminal equipment based on libreOffice document which characterized in that: comprising a processor, a memory and a computer program stored in the memory and running on the processor, the processor implementing the steps of the method according to any of claims 1-2 when executing the computer program.
4. A computer-readable storage medium storing a computer program, characterized in that: the computer program when executed by a processor implementing the steps of the method as claimed in any one of claims 1-2.
CN202010795465.6A 2020-08-10 2020-08-10 LibreOffice document-based overlay printing method, terminal device and storage medium Active CN111949230B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010795465.6A CN111949230B (en) 2020-08-10 2020-08-10 LibreOffice document-based overlay printing method, terminal device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010795465.6A CN111949230B (en) 2020-08-10 2020-08-10 LibreOffice document-based overlay printing method, terminal device and storage medium

Publications (2)

Publication Number Publication Date
CN111949230A CN111949230A (en) 2020-11-17
CN111949230B true CN111949230B (en) 2022-07-05

Family

ID=73331940

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010795465.6A Active CN111949230B (en) 2020-08-10 2020-08-10 LibreOffice document-based overlay printing method, terminal device and storage medium

Country Status (1)

Country Link
CN (1) CN111949230B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5666471A (en) * 1992-01-22 1997-09-09 Brother Kogyo Kabushiki Kaisha Image processing apparatus for dividing images for printing
US6631010B1 (en) * 2000-11-13 2003-10-07 Hewlett-Packard Development Company, L.P. Web-based imaging system utilizing “cookies” to provide a single-action printing option
CN1604120A (en) * 2003-08-20 2005-04-06 奥西-技术有限公司 Metadata extraction from designated document areas
CN102336069A (en) * 2010-07-16 2012-02-01 鸿富锦精密工业(深圳)有限公司 Printer with picture clipping function and picture clipping method
CN105988747A (en) * 2015-02-16 2016-10-05 株式会社理光 Printing method and printing device
CN108427543A (en) * 2018-02-01 2018-08-21 厦门盈趣科技股份有限公司 One key Method of printing and a key print system
CN109146998A (en) * 2018-08-15 2019-01-04 广州盖特软件有限公司 The offscale design line shearing method for drafting of computer based on WEB

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5666471A (en) * 1992-01-22 1997-09-09 Brother Kogyo Kabushiki Kaisha Image processing apparatus for dividing images for printing
US6631010B1 (en) * 2000-11-13 2003-10-07 Hewlett-Packard Development Company, L.P. Web-based imaging system utilizing “cookies” to provide a single-action printing option
CN1604120A (en) * 2003-08-20 2005-04-06 奥西-技术有限公司 Metadata extraction from designated document areas
CN102336069A (en) * 2010-07-16 2012-02-01 鸿富锦精密工业(深圳)有限公司 Printer with picture clipping function and picture clipping method
CN105988747A (en) * 2015-02-16 2016-10-05 株式会社理光 Printing method and printing device
CN108427543A (en) * 2018-02-01 2018-08-21 厦门盈趣科技股份有限公司 One key Method of printing and a key print system
CN109146998A (en) * 2018-08-15 2019-01-04 广州盖特软件有限公司 The offscale design line shearing method for drafting of computer based on WEB

Also Published As

Publication number Publication date
CN111949230A (en) 2020-11-17

Similar Documents

Publication Publication Date Title
CN109933322B (en) Page editing method and device and computer readable storage medium
CN105631393A (en) Information recognition method and device
US20160124813A1 (en) Restoration of modified document to original state
CN116402020A (en) Signature imaging processing method, system and storage medium based on OFD document
CN108492349A (en) Processing method, device, equipment and the storage medium of stroke writing
US10643022B2 (en) PDF extraction with text-based key
CN111949230B (en) LibreOffice document-based overlay printing method, terminal device and storage medium
CN109992580A (en) Processing method and processing device, storage medium, the computer equipment of table data
CN115270737B (en) Method and device for modifying format of target object
CN111783386A (en) Note processing method based on electronic book, electronic equipment and storage medium
CN111768822A (en) Continuous printing method, device, equipment and storage medium for electronic medical record documents
CN109933766B (en) File generation method, device and storage medium
CN111444452B (en) Webpage conversion method and device and storage medium
CN115167728A (en) Menu bar merging and displaying method, device and computer readable storage medium
CN107368465B (en) System and method for processing screenshot note of streaming document
CN114548040A (en) Note processing method, electronic device and storage medium
CN113378526A (en) PDF paragraph processing method, device, storage medium and equipment
CN113655973A (en) Page segmentation method and device, electronic equipment and storage medium
US10755034B2 (en) Information processing apparatus
US8896862B2 (en) Image processing apparatus, control method, and storage medium for print control using metadata
JP7035474B2 (en) Document processing equipment and programs
KR101458155B1 (en) Apparatus and method for generating edited document
CN113553524B (en) Method, device, equipment and storage medium for typesetting characters of webpage
CN113536169B (en) Method, device, equipment and storage medium for typesetting characters of webpage
CN113553802B (en) Typesetting method, device, equipment and storage medium for characters in hidden picture of webpage

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
CP02 Change in the address of a patent holder
CP02 Change in the address of a patent holder

Address after: 361000 unit 404, No. 24, guanri Road, phase II, software park, Xiamen, Fujian

Patentee after: XIAMEN ZHIYE SOFTWARE ENGINEERING CO.,LTD.

Address before: 361000 No.24 guanri Road, Siming District, Xiamen City, Fujian Province

Patentee before: XIAMEN ZHIYE SOFTWARE ENGINEERING CO.,LTD.