CN116562231A - Method for realizing continuous stamping operation of PDF and OFD documents on multiple pages - Google Patents
Method for realizing continuous stamping operation of PDF and OFD documents on multiple pages Download PDFInfo
- Publication number
- CN116562231A CN116562231A CN202310285955.5A CN202310285955A CN116562231A CN 116562231 A CN116562231 A CN 116562231A CN 202310285955 A CN202310285955 A CN 202310285955A CN 116562231 A CN116562231 A CN 116562231A
- Authority
- CN
- China
- Prior art keywords
- stamping
- page
- document
- stamp
- 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
- 238000000034 method Methods 0.000 title claims abstract description 23
- 230000002452 interceptive effect Effects 0.000 claims description 8
- 230000000007 visual effect Effects 0.000 claims description 4
- 238000009877 rendering Methods 0.000 claims description 3
- 230000004044 response Effects 0.000 claims description 3
- 239000003086 colorant Substances 0.000 claims 1
- 230000000694 effects Effects 0.000 description 3
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 1
- 230000006386 memory function Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/12—Use of codes for handling textual entities
-
- 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/0483—Interaction with page-structured environments, e.g. book metaphor
-
- 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction 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/04842—Selection of displayed objects or displayed text elements
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/30—Computing systems specially adapted for manufacturing
Abstract
The invention relates to the technical field of continuous stamping of documents, and particularly discloses a method for realizing multi-page continuous stamping operation of PDF and OFD documents, which comprises the following steps: step A001: opening a document, making a signature command, loading PDF document data stream, and analyzing the PDF document; step A002: responding to the signature request, and reading the stamping position, the stamping page range and the required stamp picture of the PDF document; step A003: setting a stamping mode, and realizing continuous stamping and position changing stamping in the corresponding stamping mode. The method solves the problem that the stamping position cannot be changed when the traditional document is continuously stamped.
Description
Technical Field
The application relates to the technical field of continuous stamping of documents, and particularly discloses a method for realizing multi-page continuous stamping operation of PDF and OFD documents.
Background
The computer, also called computer, is an electronic computing machine for high-speed computation, which can perform numerical computation, logical computation, and memory function. The intelligent electronic device is modern intelligent electronic equipment which can run according to a program, automatically process mass data at high speed. The computer can be used as office tools for document editing, drawing office, program editing and the like.
With the popularity of computers, computers have been the primary work tool for most office workers. Through the computer, document office, drawing office and programming office can be performed on the computer. At present, office work of PDF and OFD documents sometimes needs to be stamped, and at present, the multi-page stamping technology is used for stamping all page numbers of the current document at the same position.
The existing problems are as follows: some pages need to be stamped with a plurality of stamps, the operation of repeatedly acquiring stamps is troublesome, and when a plurality of pages of documents are stamped, the stamping positions need to be changed, so that the stamping positions cannot be effectively and quickly changed by the traditional stamping method;
accordingly, the inventors have provided a way to read in linkage through a document thumbnail and a document viewport in order to solve the above-mentioned problems.
Disclosure of Invention
The invention aims to solve the problem that the stamping position cannot be changed when the traditional document is continuously stamped.
In order to achieve the above object, the present invention provides the following basic scheme
A method for realizing continuous stamping operation of PDF and OFD documents comprises the following steps:
step A001: opening a document, making a signature command, loading PDF document data stream, and analyzing the PDF document;
step A002: responding to the signature request, and reading the stamping position, the stamping page range and the required stamp picture of the PDF document;
step A003: setting a stamping mode, and realizing continuous stamping and position changing stamping in the corresponding stamping mode.
The principle and effect of this basic scheme lie in:
1. the method has good convenience for covering a plurality of stamps in a plurality of continuous pages, and repeated stamp obtaining operation is not needed.
2. Multi-page stamping is performed on a document with very many pages, and stamping positions in certain pages can be adjusted
3. And when some pages do not need to be stamped, the stamps in the current page can be deleted, so that stamping operation on the current page is not performed.
Further, in the step a003, the step a003 includes continuous stamping and stamping at a position corresponding to the page number and stamping position of the continuous stamping in response to the step a 002.
Further, the method further comprises a discontinuous stamping mode, wherein the discontinuous stamping mode is required to be screened in the stamping page number range in the step A002, the position which does not need to be stamped is screened out, and the stamping mode is selected in the step A003.
Further, the stamping mode of the position changing stamping needs to be manually adjusted, a user moves the stamp to a position where stamping of multiple pages is needed to place the stamp, then the stamp position in each page is optionally adjusted or the stamp of the current page is deleted by using a mouse, then the printing page number of the stamp position is selected, and finally the stamping operation is performed on the stamp of the adjusted position by clicking to confirm stamping.
Further, in step a002, the stamp image is generated as follows: after the PDF document data stream is loaded, a signature value object for sharing is needed to be generated from the seal picture, the shared signature value object comprises a byte range of a signature original text and a digital signature content attribute, a graphic object is generated through the byte range of the signature original text and the digital signature content attribute, and the content of the graphic object is the data stream of the seal picture.
Further, in step a001, the PDF electronic document data stream is parsed, specifically:
s21, reading a cross reference table of the PDF document to obtain the file positions of all objects of the document;
s22, analyzing the file tail of the PDF document to find a document directory object;
s23, reading a page tree object from the document directory object;
s24, acquiring the number of pages and an object array of the page tree object node from the page tree object;
s25, traversing an object array of the object nodes of the page tree, and analyzing content object element information of each page of the signature document;
s26, reading an interactive form object array from the document directory object, traversing the interactive form object array, and judging whether the interactive form object array is a signature domain or not according to the type;
further, after the seal picture is generated, the seal picture is selected to be a proper color through a color rendering module.
Further, when the mouse pointer is located in the document view area, the document view area may move synchronously with the mouse pointer.
Further, after the picture color is rendered, when the mouse pointer is positioned in the document thumbnail, the picture can be synchronously scaled along with the mouse wheel and matched with the ctrl key.
Further, in step a003, if the continuous stamping mode is adopted, in the continuous stamping mode, after the user obtains the picture stamp, the stamp is moved to the position where stamping is required to be performed, and then the stamp is clicked to be stamped, so that the stamping operation of one time of marking is completed, the stamp is still in the stamping state, and the stamp can be continuously clicked to be stamped, so that repeated stamp obtaining is not required.
Detailed Description
In order to further describe the technical means and effects adopted for achieving the intended purpose of the present invention, the following detailed description will refer to the specific implementation, structure, characteristics and effects according to the present invention in conjunction with the preferred embodiments.
Examples are shown below:
a method for realizing continuous stamping operation of PDF and OFD documents comprises the following steps:
step A001: opening a document, making a signature command, loading PDF document data stream, and analyzing the PDF document;
step A002: responding to the signature request, and reading the stamping position, the stamping page range and the required stamp picture of the PDF document;
step A003: setting a stamping mode, and realizing continuous stamping and position changing stamping in the corresponding stamping mode.
Specific:
in step a001, the PDF electronic document data stream is parsed, specifically:
s21, reading a cross reference table of the PDF document to obtain the file positions of all objects of the document;
s22, analyzing the file tail of the PDF document to find a document directory object;
s23, reading a page tree object from the document directory object;
s24, acquiring the number of pages and an object array of the page tree object node from the page tree object;
s25, traversing an object array of the object nodes of the page tree, and analyzing content object element information of each page of the signature document;
s26, reading an interactive form object array from the document directory object, traversing the interactive form object array, judging whether the interactive form object array is a signature domain according to the type, if yes, successfully analyzing the PDF electronic document data stream by the signature domain, and if not, re-analyzing again;
in step a002, the stamp image is generated as follows: after the PDF document data stream is loaded, a seal picture is required to generate a signature value object for sharing, the shared signature value object comprises a byte range of a signature original text and a digital signature content attribute, a graphic object is generated through the byte range of the signature original text and the digital signature content attribute, the content of the graphic object is the data stream of the seal picture, after the seal picture is generated, the seal picture is selected to be a proper color through a color rendering module, when a mouse pointer is positioned in a document visual area, the document visual area can synchronously move along with the mouse pointer, and after the picture color is rendered, when the mouse pointer is positioned in a document thumbnail, the picture can synchronously scale along with a mouse roller in cooperation with a ctrl key.
In the step a003, the step a003 includes continuous stamping and replacement position stamping, the page number and stamping position of the continuous stamping are based on the response of the step a002, the continuous stamping mode is needed to screen in the stamping page number range in the step a002, the position which does not need to be stamped is screened out, in the step a003, the stamping mode is selected, the replacement position stamping is needed to be adjusted to be manual, a user moves the stamping to the position which needs to be stamped on a plurality of pages to place the stamping, then a mouse is used to randomly adjust the stamping position in each page or delete the stamping of the current page, then the printing page number of the stamping position is selected, and finally the stamping operation of the adjusted position is performed by clicking to confirm the stamping;
in step a003, if the continuous stamping mode is adopted, in the continuous stamping mode, after the user acquires the picture stamp, the stamp is moved to the position where stamping is required to be performed, and then the stamp is clicked to be stamped, so that the stamping operation of one-time marking is completed, the stamp is still in the stamping state, and the stamp can be continuously clicked to be stamped, so that repeated stamp acquisition is not required.
The invention aims to help a user provide other two multi-page stamping methods based on the existing multi-page stamping, and aims to solve the problem that the stamping position cannot be changed when the traditional document is continuously stamped.
The present invention is not limited to the above embodiments, but is capable of modification and variation in detail, and other modifications and variations can be made by those skilled in the art without departing from the scope of the present invention.
Claims (10)
1. A method for realizing continuous stamping operation of PDF and OFD documents is characterized in that: the method comprises the following steps:
step A001: opening a document, making a signature command, loading PDF document data stream, and analyzing the PDF document;
step A002: responding to the signature request, and reading the stamping position, the stamping page range and the required stamp picture of the PDF document;
step A003: setting a stamping mode, and realizing continuous stamping and position changing stamping in the corresponding stamping mode.
2. The method according to claim 1, wherein in the step a003, the step a003 includes continuous stamping and position stamping, and the page number and stamping position of the continuous stamping are determined according to the response of the step a 002.
3. The method for realizing the multi-page continuous stamping operation of the PDF and OFD documents according to claim 2, further comprising a discontinuous stamping mode, wherein the discontinuous stamping mode is required to be screened within the stamping page range in the step A002, the positions which do not need to be stamped are screened, and the stamping mode is selected in the step A003.
4. A method for implementing multi-page continuous stamping operation of PDF and OFD documents according to claim 3, wherein the change position stamping is required to be adjusted manually, a user moves a stamp to a position requiring multi-page stamping to place the stamp, then uses a mouse to randomly adjust the stamp position in each page or delete the stamp of the current page, then selects the printing page number of the stamp position, and finally clicks to confirm stamping, and stamping operation is performed on the stamp of the adjusted position.
5. The method for realizing the multi-page continuous stamping operation of PDF and OFD documents according to claim 1, wherein in the step A002, a stamp picture is generated, specifically as follows: after the PDF document data stream is loaded, a signature value object for sharing is needed to be generated from the seal picture, the shared signature value object comprises a byte range of a signature original text and a digital signature content attribute, a graphic object is generated through the byte range of the signature original text and the digital signature content attribute, and the content of the graphic object is the data stream of the seal picture.
6. The method for realizing the multi-page continuous stamping operation of the PDF and OFD documents according to claim 1, wherein in the step A001, the PDF electronic document data stream is analyzed, specifically:
s21, reading a cross reference table of the PDF document to obtain the file positions of all objects of the document;
s22, analyzing the file tail of the PDF document to find a document directory object;
s23, reading a page tree object from the document directory object;
s24, acquiring the number of pages and an object array of the page tree object node from the page tree object;
s25, traversing an object array of the object nodes of the page tree, and analyzing content object element information of each page of the signature document;
s26, reading the interactive form object array from the document directory object, traversing the interactive form object array, and judging according to the type
Whether it is a signature domain;
s27, judging whether the digital signature is carried according to whether the signature value attribute of the signature domain is empty, and traversing to obtain the current
All signature fields of the document with digital signatures.
7. The method for realizing multi-page continuous stamping operation of PDF and OFD documents according to claim 5, wherein after the stamp pictures are generated, the stamp pictures are selected to be in proper colors through a color rendering module.
8. The method of any one of claims 1-7, wherein the visual field of the document is synchronously movable with the mouse pointer when the mouse pointer is positioned in the visual field of the document.
9. The method for realizing multi-page continuous stamping operation of PDF and OFD documents according to claim 7, wherein after the picture is color-rendered, when the mouse pointer is positioned in the document thumbnail, the picture can be synchronously scaled along with the mouse wheel and the ctrl key.
10. The method for realizing the multi-page continuous stamping operation of the PDF and OFD documents according to claim 2, wherein in the step A003, if the continuous stamping mode is adopted, in the continuous stamping mode, after a user acquires a picture stamp, the stamp is moved to a position to be stamped to click the stamp, the stamping operation of one time marking is completed, the stamp is still in a stamping state, the stamp can be continuously clicked to stamp, and repeated stamp acquisition is not needed.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310285955.5A CN116562231A (en) | 2023-03-22 | 2023-03-22 | Method for realizing continuous stamping operation of PDF and OFD documents on multiple pages |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310285955.5A CN116562231A (en) | 2023-03-22 | 2023-03-22 | Method for realizing continuous stamping operation of PDF and OFD documents on multiple pages |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116562231A true CN116562231A (en) | 2023-08-08 |
Family
ID=87495450
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310285955.5A Pending CN116562231A (en) | 2023-03-22 | 2023-03-22 | Method for realizing continuous stamping operation of PDF and OFD documents on multiple pages |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116562231A (en) |
-
2023
- 2023-03-22 CN CN202310285955.5A patent/CN116562231A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11514234B2 (en) | Method and system for annotation and connection of electronic documents | |
JP4829662B2 (en) | Automatic layout system, information providing method, and server system | |
EP0635808B1 (en) | Method and apparatus for operating on the model data structure on an image to produce human perceptible output in the context of the image | |
US5467441A (en) | Method for operating on objects in a first image using an object-based model data structure to produce a second contextual image having added, replaced or deleted objects | |
US6070175A (en) | Method of file editing using framemaker enhanced by application programming interface clients | |
JP2000115476A (en) | System and method for operating area of scanned image | |
JP2009524883A (en) | Presenting digital content to the network | |
US20060259590A1 (en) | Online printing service system on the Internet | |
CN104571819A (en) | Application program management method and application program management device | |
CN101017426B (en) | Method for multiple data origin printing and data processing system | |
JP6525641B2 (en) | INFORMATION PROCESSING SYSTEM, CONTROL METHOD, AND COMPUTER PROGRAM | |
CN103870583A (en) | Relational-database-based online and controllable browsing method for PDF document | |
CN103488484A (en) | Software implementation method and system for online editor | |
DE102012217257A1 (en) | Time relevance within a digital copy of a document or media object | |
Zhang et al. | Research on document digitization processing technology | |
US20080239370A1 (en) | Method and system for in-register processing of print data | |
CN113158619B (en) | Document processing method and device, computer readable storage medium and computer equipment | |
Evening | Adobe Photoshop CS5 for Photographers: a professional image editor's guide to the creative use of Photoshop for the Macintosh and PC | |
CN116562231A (en) | Method for realizing continuous stamping operation of PDF and OFD documents on multiple pages | |
CN106445320A (en) | Method and device for manufacturing and displaying contents of electronic book | |
CN116484038A (en) | SVG logging data interaction management software method and system | |
CN111859886B (en) | Document generation method and device based on product prototype interface | |
US20220147693A1 (en) | Systems and Methods for Generating Documents from Video Content | |
KR20230080034A (en) | Computing appartus and method for editing web page in movile environmet | |
CN115774513B (en) | System, method, electronic device and medium for determining drawing direction based on ruler |
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 |