CN110795922B - Form information display method and device for PDF document and electronic equipment - Google Patents

Form information display method and device for PDF document and electronic equipment Download PDF

Info

Publication number
CN110795922B
CN110795922B CN201810779007.6A CN201810779007A CN110795922B CN 110795922 B CN110795922 B CN 110795922B CN 201810779007 A CN201810779007 A CN 201810779007A CN 110795922 B CN110795922 B CN 110795922B
Authority
CN
China
Prior art keywords
form filling
user
item
filled
items
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
CN201810779007.6A
Other languages
Chinese (zh)
Other versions
CN110795922A (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.)
Beijing Kingsoft Office Software Inc
Zhuhai Kingsoft Office Software Co Ltd
Guangzhou Kingsoft Mobile Technology Co Ltd
Original Assignee
Beijing Kingsoft Office Software Inc
Zhuhai Kingsoft Office Software Co Ltd
Guangzhou Kingsoft Mobile Technology 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 Beijing Kingsoft Office Software Inc, Zhuhai Kingsoft Office Software Co Ltd, Guangzhou Kingsoft Mobile Technology Co Ltd filed Critical Beijing Kingsoft Office Software Inc
Priority to CN201810779007.6A priority Critical patent/CN110795922B/en
Publication of CN110795922A publication Critical patent/CN110795922A/en
Application granted granted Critical
Publication of CN110795922B publication Critical patent/CN110795922B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention provides a form information display method in a PDF document, which relates to the technical field of document identification, and comprises the following steps: acquiring all form filling items in the currently edited PDF document; the form filling item includes: form filling items which are filled in by a user and form filling items which are not filled in the PDF document; form filling items which are filled in by the user and form filling items which are not filled in by the user in the PDF document are displayed in a distinguishing mode on the current display page. By adopting the embodiment of the invention, the user can clearly see the filled-in items and unfilled-out items in the form in the PDF document, and the missing filling is prevented.

Description

Form information display method and device for PDF document and electronic equipment
Technical Field
The present invention relates to the field of document identification technologies, and in particular, to a method and an apparatus for displaying form information in a PDF document, and an electronic device.
Background
The portable document format (Portable Document Format, PDF) is a file format developed by a file exchange in a manner that is independent of the application, operating system, and hardware. The PDF document may contain text, pictures, forms, hypertext links, and the like. Forms are data carriers commonly used in PDF documents, and are currently used in a wide variety of settings, such as business and social surveys. Forms often contain a large number of filling items, and users may forget to fill the form, and the form may be left unfilled.
The inventors have found that in the process of implementing the present invention, at least the following problems exist in the prior art:
in the prior art, statistics and display of the form item information are not available, and when a user fills in a form, the user only depends on the user to memorize and identify the filling item in the form.
Therefore, the prior art cannot enable a user to clearly see the filled-in items and unfilled-out items in the form, and can easily cause underfill.
Disclosure of Invention
The embodiment of the invention aims to provide a method and a device for displaying form information in a PDF document and electronic equipment, so that a user can clearly see filled-in items and unfilled-out items in the form in the PDF document, and missing filling is prevented. The specific technical scheme is as follows:
in a first aspect, a method for displaying form information in a portable document format PDF document is provided, where the method includes:
acquiring all form filling items in the currently edited PDF document; the form filling item includes: form filling items which are filled in by a user and form filling items which are not filled in the PDF document;
and distinguishing and displaying the form filling items which are filled in by the user and the form filling items which are not filled in by the user in the PDF document on the current display page.
Optionally, before the step of acquiring all form filling items in the currently edited PDF document, the method further includes:
displaying a filling list button on a menu bar;
detecting whether a filling list button displayed on a current page is clicked by a user or not;
and after detecting that the filling list button is clicked by the user, executing the step of acquiring all form filling items in the currently edited PDF document.
Optionally, the step of acquiring all form filling items in the currently edited PDF document includes:
traversing objects in the PDF document in sequence;
if the traversed object is a form filling item, recording the traversed object;
if the traversed object is not a form filling item, returning to the step of traversing the objects in the PDF document in turn.
Optionally, the step of displaying the form filling item which is filled in by the user and the form filling item which is not filled in by the user in the PDF document in a distinguishing way on the current display page includes:
configuring data in a list of the form items according to the form filling items filled by the user and the unfilled form filling items in the PDF document; the list item list comprises: status flag information for each form filling item, and whether each form filling item has been filled in by the user;
and displaying the list item list of the list items on the current display page.
Optionally, the marking information of whether each form filling item has been filled by the user is: a checkbox displayed in parallel with each form filling item; the checkbox is checked to identify that the form filling item has been filled in by the user, and the checkbox is not checked to identify that the form filling item has not been filled in by the user.
Optionally, the list of list items further includes: an input prompt for each form fill-in item; and/or the statistical information of the quantity of form filling items in the PDF document.
Optionally, the method further comprises:
detecting whether a form filling item which is not filled by a user in a form information list is filled by the user currently or not and whether the content of the form filling item which is filled by the user is deleted by the user or not;
modifying the state mark information of the form filling item filled by the user to be filled by the user;
the status flag information of the form filling item of which the content is deleted by the user is modified to be not filled by the user.
Optionally, the method further comprises:
acquiring a target form filling item; the target form filling item is as follows: form filling items in the form information list clicked by the user;
acquiring a target position; the target position is: the position of the target form filling item in the PDF document;
and switching the currently displayed page to the target position.
Optionally, the step of switching the currently displayed page to the target position includes:
switching the current page to the page where the target form filling item is located according to a preset switching mode; after the switching, the position of the target form filling item in the display document comprises: centered, uppermost or lowermost.
In a second aspect, there is provided a form information presentation apparatus in a PDF document, the apparatus comprising:
the acquisition module is used for acquiring all form filling items in the currently edited PDF document; the form filling item includes: form filling items which are filled in by a user and form filling items which are not filled in the PDF document;
and the display module is used for displaying the form filling items which are filled in by the user and the form filling items which are not filled in by the user in the PDF document in a distinguishing mode on the current display page.
Optionally, the apparatus further includes: the apparatus further comprises: a button display module, the button display module comprising: the device comprises a button display unit, a detection unit and a first calling unit;
the button display unit is used for displaying a filling list button in a menu bar before all form filling items in the currently edited PDF document are acquired;
the detection unit is used for detecting whether a filling list button displayed on the current page is clicked by a user or not;
the first calling unit is used for calling the acquisition module after detecting that the filling list button is clicked by a user.
Optionally, the acquiring module includes: the system comprises a traversing unit, a recording unit and a second calling unit;
the traversing unit is used for traversing the objects in the PDF document in sequence;
the recording unit is used for recording the traversed object if the traversed object is a form filling item;
the second calling unit is used for calling the traversing unit if the traversed object is not a form filling item.
Optionally, the display module includes: a configuration unit and a display unit;
the configuration unit is used for configuring data in a list of the form items according to the form filling items which are filled in by the user and the form filling items which are not filled in the PDF document; the list item list comprises: status flag information for each form filling item, and whether each form filling item has been filled in by the user;
the display unit is used for displaying the list item list on the current display page.
Optionally, the marking information of whether each form filling item has been filled by the user is: a checkbox displayed in parallel with each form filling item; the checkbox is checked to identify that the form filling item has been filled in by the user, and the checkbox is not checked to identify that the form filling item has not been filled in by the user.
Optionally, the list of list items further includes: an input prompt for each form fill-in item; and/or the statistical information of the quantity of form filling items in the PDF document.
Optionally, the apparatus further includes: a detection module, the detection module comprising: the device comprises a detection unit, a first modification unit and a second modification unit;
the detection unit is used for detecting whether the form filling item which is not filled by the user in the form information list is filled by the user currently or not and whether the content of the form filling item which is filled by the user is deleted by the user or not;
the first modification unit is used for modifying the state mark information of the form filling item filled by the user to be filled by the user;
the second modifying unit is used for modifying the state marking information of the form filling item of which the content is deleted by the user into the state marking information which is not filled by the user.
Optionally, the apparatus further includes: a switching module, the switching module comprising: the system comprises a target form filling item acquisition unit, a target position acquisition unit and a switching unit;
the target form filling item acquisition unit is used for acquiring a target form filling item; the target form filling item is as follows: form filling items in the form information list clicked by the user;
the target position acquisition unit is used for acquiring a target position; the target position is: the position of the target form filling item in the PDF document;
and the switching unit is used for switching the currently displayed page to the target position.
Optionally, the switching unit is specifically configured to:
switching the current page to the page where the target form filling item is located according to a preset switching mode; after the switching, the position of the target form filling item in the display document comprises: centered, uppermost or lowermost.
In a third aspect, an electronic device is provided, the electronic device including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory perform communication with each other through the communication bus;
a memory for storing a computer program;
and the processor is used for realizing the step of the form information display method in any PDF document when executing the program stored in the memory.
The embodiment of the invention also provides a computer readable storage medium, wherein the computer readable storage medium stores a computer program, and the computer program realizes the steps of the form information display method in any PDF document when being executed by a processor.
The method, the device and the electronic equipment for displaying the form information in the PDF document can acquire all the form filling items in the PDF document and the filling condition of the user for the form filling items, and the filled form items and unfilled form items of the user are displayed in the current display page in a distinguished mode. Thus, when the user fills the form in the PDF document, the filled-in item and unfilled item in the form in the PDF document can be clearly seen, and the missing filling is prevented.
Of course, it is not necessary for any one product or method of practicing the invention to achieve all of the advantages set forth above at the same time.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings which are used in the description of the embodiments or the prior art will be briefly described, it being obvious that the drawings in the description below are only some embodiments of the invention, and that other drawings can be obtained from these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of a method for displaying form information in a PDF document according to an embodiment of the present invention;
FIG. 2a is a flowchart of another method for displaying form information in a PDF document according to an embodiment of the invention;
FIG. 2b is an example of a list of displayed list items in a PDF document in the embodiment shown in FIG. 2 a;
FIG. 3 is a flowchart of a method for modifying the status of a form filling item in a form information display method in a PDF document according to an embodiment of the present invention;
fig. 4 is a flowchart of a page switching method in a form information display method in a PDF document according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a form information display device in a PDF document according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The following description of the technical solutions according to the embodiments of the present invention will be given with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The embodiment of the invention provides a method and a device for displaying form information in a PDF document and electronic equipment.
In the embodiment of the invention, the electronic equipment can be any electronic equipment such as a computer, a mobile phone and a tablet personal computer which can process PDF format files.
Referring to fig. 1, fig. 1 is a flowchart of a method for displaying form information in a PDF document according to an embodiment of the present invention, including the following steps:
step 101, acquiring all form filling items in a PDF document which is edited currently; the form filling item includes: form filling items that have been filled in by the user and unfilled form filling items in the PDF document.
Specifically, the step of obtaining all form filling items in the currently edited PDF document may include:
traversing objects in the PDF document in sequence;
if the traversed object is a form filling item, recording the traversed object;
if the traversed object is not a form fill-in, a step of sequentially traversing the objects in the PDF document is returned.
Here, according to the definition of the PDF standard protocol, elements in the PDF document are called objects, one form filling item is also an object, and the types of the objects are distinguished by the names of the objects, so that all form filling items in the document can be found out by traversing the objects in the document in turn.
Step 102, the form filling item which is filled in by the user and the form filling item which is not filled in by the user in the PDF document are displayed in a distinguishing mode on the current display page.
In one implementation, there are many ways to distinguish between displays, for example: form filling items can be displayed in different colors, white representing filled in and red representing unfilled out; the filled-in form filling-in items and the unfilled-out form filling-in items may also be displayed in different item bars, respectively. The embodiments of the present invention can be implemented as long as a method can distinguish between a filled-in form filling item and a non-filled-in form filling item.
The form information display method of the PDF document provided by the embodiment of the invention can be used for displaying the filled form filling items and the unfilled form filling items in the PDF document in a distinguishing way, and when a user edits the form information in the PDF document, the form filling conditions in the PDF document can be conveniently obtained, and the occurrence of misplugging or missing filling is prevented.
Referring to fig. 2a, fig. 2a is another flowchart of a form information display method in a PDF document according to an embodiment of the present invention, including the following steps:
step 201, a fill list button is displayed in a menu bar.
In one implementation, the fill list button is displayed in a menu bar of software such as a PDF reader or PDF editor that can view or edit a PDF file. In this embodiment, a fill-in list button may be added in advance to a menu bar of software that can view or edit the PDF file, and when the software is opened, the fill-in list button is displayed.
Step 202, it is detected whether the fill list button displayed on the current page is clicked by the user.
In one implementation, the user's click operation may be a mouse click or a touch click.
And 203, after detecting that the filling list button is clicked by a user, acquiring all form filling items in the currently edited PDF document.
In one implementation, all form fill-in items in the acquired PDF document include form fill-in items that the user has filled in and form fill-in items that the user has not filled in.
In one implementation, form fill-in items in a PDF document are objects in the PDF document that have various properties, such as: size, location, type and filling status in the document, etc., when the program traverses all objects in the PDF document, all form filling items and attribute information in the document can be found.
Alternatively, closing the fill list button may be clicking on the fill list button again after the button has been clicked, or clicking on any other location in the document, or clicking on any blank location in the document.
Step 204, configuring the data in the list of the form item according to all the form filling items in the acquired PDF document which is currently edited.
In one implementation, all form fill-in items and some attribute information in the PDF document are required when configuring the list of form items.
Step 205, a list of list items of the list item is displayed on the current display page.
In one implementation, the list of form listings is displayed differently for filled-in form fill-in items and unfilled form fill-in items in the PDF document, such as by typing in a checkbox corresponding to the filled-in form item.
Specifically, referring to fig. 2b, fig. 2b is an embodiment of displaying a list of list items in the PDF document in the embodiment shown in fig. 2 a;
as shown in fig. 2b, there is a "fill list" button in the form column of the menu column, and after the button is clicked, the form fill item and some attribute information in the PDF document are displayed, for example, the attribute information shown in fig. 2b is: whether the form is filled in by a user or not is expressed as whether a square frame displayed in parallel with the form filling item is marked; input prompts for each form fill-in item, for example: displaying input characters in parallel in the address form filling item, wherein the input characters are required to be input in the address form filling item; displaying an option in parallel in whether to determine the form filling item, wherein the option is required to be selected in whether to determine the form filling item; the number and filling situation of all the form filling items in the PDF document are represented by 10 positions displayed at the top of all the form filling items, 2 positions are filled, which means that 10 form filling items in the current PDF document are filled in, 2 are filled in, 8 are not filled in, a scroll bar is arranged on the right side of a filling list in fig. 2b, 10 form filling items are actually arranged in the figure, and when the scroll bar is scrolled downwards, two other form filling items which are not displayed in the current picture can be displayed.
Therefore, by applying the form information display method provided by the embodiment of the invention, the filling list button can be displayed in the menu bar, and the attribute information of the form filling item in the PDF document is displayed after the button is clicked, so that the user is helped to know the filling condition of the form filling item in the document integrally, and the user can edit the form in the PDF document more conveniently.
Specifically, the step of displaying the form filling item which is already filled in by the user and the form filling item which is not filled in by the user in the PDF document in a distinguishing manner on the current display page may include:
configuring data in a list of the form items according to the form filling items which are filled in by the user and the form filling items which are not filled in the PDF document; list of list items comprising: status flag information for each form filling item, and whether each form filling item has been filled in by the user;
a list of list items of the list item is displayed on the current display page.
In one implementation, the list of form list is always present in software for viewing or editing PDF files, the content in the list of form list is empty before the form filling item in the currently edited PDF file is acquired, and the data in the list of form list is configured according to each form filling item and some attribute information after the form filling item in the currently edited PDF file is acquired.
Therefore, by applying the embodiment of the invention, the list of the form filling items can be configured according to the form filling items filled in by the user and the unfilled form filling items in the PDF document, and the list of the configured form list can be displayed, so that the user can conveniently see the filled form filling items and unfilled form filling items in the PDF document which are edited currently.
Specifically, the flag information of whether each form filling item has been filled in by the user may be: a checkbox displayed in parallel with each form filling item; the checkbox is checked to identify that the form filling item has been filled in by the user, and the checkbox is not checked to identify that the form filling item has not been filled in by the user.
In one implementation, when a user has completed filling a form filling item, the filling state of the form filling item may be obtained, and the program automatically generates a hook in a hook frame corresponding to the form filling item in the list of form items.
Therefore, by applying the embodiment of the invention, the opposite hooks can be displayed in the parallel hook boxes of the filled form filling items so as to be different from the unfilled form filling items, thus the user can more conveniently distinguish the filled form filling items from the unfilled form filling items.
Specifically, the list of list items may further include: an input prompt for each form fill-in item; and/or the statistical information of the quantity of form filling items in the PDF document.
In one implementation, how many items each of the filled-in form and unfilled form are in the currently edited PDF document may be displayed at the top of the list of form items.
In one implementation, the input prompt for the form fill-in item may also be what the user has entered; for example: when the user moves the mouse to a certain form item in the list of form items, the content filled in by the user in the form item is displayed.
Therefore, by applying the embodiment of the invention, the input prompt and the quantity statistical information can be displayed in the list of the list items, so that a user can more conveniently know the filling condition of the list items in the currently edited PDF document when using the PDF document.
Further, referring to fig. 3, fig. 3 is a flowchart of a form filling item state modification method in a form information display method in a PDF document according to an embodiment of the present invention, including the following steps:
step 301, detecting whether a form filling item not filled by a user in a form information list is currently filled by the user, and whether the content of the form filling item which has been filled by the user is deleted by the user.
In one implementation, when a user edits a form filling item in a PDF document, a program updates a filling state of the form filling item in a form information list in real time, including whether the filled item becomes unfilled, and whether the unfilled item becomes filled.
Optionally, when the user updates the status of the form filling item, the status of the list of form items may be a display or a closed status; for example: when the user edits the form filling item, the list of the form item is automatically closed, the filling state of each form filling item in the list of the form item is updated according to the updating condition of the form filling item in the PDF document by the user, and when the user clicks the filling list button again, the updated list of the form item is displayed.
Step 302, the state marking information of the form filling item filled in by the user is modified to be filled in by the user.
In one implementation, after a user fills in content in an unfilled form fill-in item, the status marking information of the form fill-in item is marked as filled-in.
Step 303, the state marking information of the form filling item of which the content is deleted by the user is modified to be not filled by the user.
In one implementation, after deleting content in a filled form, a user marks the status marking information of the form as unfilled.
Therefore, by applying the form information display method provided by the embodiment of the invention, the filling state of the form filling item in the form list of the PDF document can be updated according to the filling state of the form filling item in the PDF document and displayed, so that a user can more accurately obtain the filling condition of the form filling item in the PDF document when editing the PDF document.
Referring to fig. 4, fig. 4 is a flowchart of a page switching method in a form information display method in a PDF document according to an embodiment of the present invention, including the following steps:
step 401, obtaining a target form filling item; the target form filling item is: form filling items in the form information list clicked by the user.
In one implementation, after the user clicks the fill list button, a list of form information lists is displayed, and the user may click on a form fill item in the list of form information lists. For example: click on the address form fill-in item in fig. 2 b.
Step 402, obtaining a target position; the target positions are: the location of the target form fill-in item in the PDF document.
In one implementation, as can be seen from the description in fig. 2, when the form filling item is traversed, attribute information of the form filling item is obtained, where the attribute information includes a position where the form filling item exists in the PDF document.
Step 403, switching the currently displayed page to the target position.
In one implementation, there are many ways of switching, for example: the current page can be jumped to the page where the target form filling item is located, and the current page can be rolled to the page where the target form filling item is located.
Specifically, the step of switching the currently displayed page to the target position may include:
switching the current page to the page where the target form filling item is located according to a preset switching mode; after the switching, the position of the target form filling item in the display document comprises: centered, uppermost or lowermost.
Optionally, after the page is switched, the target form filling item may also be highlighted, for example: after highlighting for 1 second with a color different from the content and the current background color on the background of the target form filling item, the background color is restored to the one before switching.
Optionally, when the page is switched, the state of the list of the list items can be displayed or the program is automatically closed; for example: after the user clicks the form filling item in the form information list, closing the form information list and switching the current page to the page where the form filling item is located.
Therefore, by applying the form information display method provided by the embodiment of the invention, the current page can be switched to the form filling item according to the form filling item clicked by the user in the form information list, so that the user can find the form filling item which is missed when the user finds the form filling item which is missed in the form information list, and the use is convenient.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a form information display device in a PDF document according to an embodiment of the present invention, where the device includes:
an obtaining module 501, configured to obtain all form filling items in a PDF document that is currently edited; the form filling item includes: form filling items which are filled in by a user and form filling items which are not filled in the PDF document;
and the display module 502 is used for displaying the form filling items which are filled in by the user and the form filling items which are not filled in by the user in the PDF document in a distinguishing way on the current display page.
Specifically, the apparatus shown in fig. 5 may further include: a button display module, the button display module comprising: the device comprises a button display unit, a detection unit and a first calling unit;
the button display unit is used for displaying a filling list button in a menu bar before all form filling items in the currently edited PDF document are acquired;
the detection unit is used for detecting whether a filling list button displayed on the current page is clicked by a user or not;
the first calling unit is used for calling the acquisition module after detecting that the filling list button is clicked by the user.
Specifically, the obtaining module 501 may include: the system comprises a traversing unit, a recording unit and a second calling unit;
the traversing unit is used for traversing the objects in the PDF document in sequence;
the recording unit is used for recording the traversed object if the traversed object is a form filling item;
the second calling unit is used for calling the traversing unit if the traversed object is not a form filling item.
Specifically, the display module 502 may include: a configuration unit and a display unit;
the configuration unit is used for configuring data in a list of the form items according to the form filling items which are filled in by the user and the form filling items which are not filled in the PDF document; the list item list comprises: status flag information for each form filling item, and whether each form filling item has been filled in by the user;
the display unit is used for displaying the list item list on the current display page.
Specifically, the marking information of whether each form filling item has been filled by the user may be: a checkbox displayed in parallel with each form filling item; the checkbox is checked to identify that the form filling item has been filled in by the user, and the checkbox is not checked to identify that the form filling item has not been filled in by the user.
Specifically, the list of list items may further include: an input prompt for each form fill-in item; and/or the statistical information of the quantity of form filling items in the PDF document.
Specifically, the apparatus shown in fig. 5 may further include: a detection module, the detection module comprising: the device comprises a detection unit, a first modification unit and a second modification unit;
the detection unit is used for detecting whether the form filling item which is not filled by the user in the form information list is filled by the user currently or not and whether the content of the form filling item which is filled by the user is deleted by the user or not;
the first modification unit is used for modifying the state mark information of the form filling item filled by the user to be filled by the user;
the second modifying unit is used for modifying the state marking information of the form filling item of which the content is deleted by the user into the state marking information which is not filled by the user.
Specifically, the apparatus shown in fig. 5 may further include: a switching module, the switching module comprising: the system comprises a target form filling item acquisition unit, a target position acquisition unit and a switching unit;
the target form filling item acquisition unit is used for acquiring a target form filling item; the target form filling item is as follows: form filling items in the form information list clicked by the user;
the target position acquisition unit is used for acquiring a target position; the target position is: the position of the target form filling item in the PDF document;
and the switching unit is used for switching the currently displayed page to the target position.
Specifically, the switching unit may be specifically configured to:
switching the current page to the page where the target form filling item is located according to a preset switching mode; after the switching, the position of the target form filling item in the display document comprises: centered, uppermost or lowermost.
Therefore, the device for displaying the form information in the PDF document can acquire all the form filling items in the PDF document and the filling condition of the user for the form filling items, and the filled form items and unfilled form items of the user are displayed in the current display page in a distinguished mode. Thus, when the user fills the form in the PDF document, the filled-in item and unfilled item in the form in the PDF document can be clearly seen, and the missing filling is prevented.
The embodiment of the invention also provides an electronic device, as shown in fig. 6, which comprises a processor 601, a communication interface 602, a memory 603 and a communication bus 604, wherein the processor 601, the communication interface 602 and the memory 603 complete communication with each other through the communication bus 604,
a memory 603 for storing a computer program;
the processor 601 is configured to execute the program stored in the memory 603, and implement the following steps:
acquiring all form filling items in the currently edited PDF document; the form filling item includes: form filling items which are filled in by a user and form filling items which are not filled in the PDF document;
and distinguishing and displaying the form filling items which are filled in by the user and the form filling items which are not filled in by the user in the PDF document on the current display page.
The electronic equipment for displaying the form information in the PDF document can acquire all form filling items in the PDF document and filling conditions of the form filling items by users, and the filled form items and unfilled form items of the users are displayed in the current display page in a distinguished mode. Thus, when the user fills the form in the PDF document, the filled-in item and unfilled item in the form in the PDF document can be clearly seen, and the missing filling is prevented.
The communication bus mentioned above for the electronic devices may be a peripheral component interconnect standard (Peripheral Component Interconnect, PCI) bus or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, etc. The communication bus may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
The communication interface is used for communication between the electronic device and other devices.
The Memory may include random access Memory (Random Access Memory, RAM) or may include Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor.
The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; but also digital signal processors (Digital Signal Processing, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
In yet another embodiment of the present invention, there is also provided a computer readable storage medium having stored therein a computer program which, when executed by a processor, implements the steps of the form information presentation method in any of the PDF documents described above.
In yet another embodiment of the present invention, there is also provided a computer program product containing instructions that, when run on a computer, cause the computer to perform the form information presentation method in any of the PDF documents of the above embodiments.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces a flow or function in accordance with embodiments of the present invention, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another, for example, by wired (e.g., coaxial cable, optical fiber, digital Subscriber Line (DSL)), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid State Disk (SSD)), etc.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In this specification, each embodiment is described in a related manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for embodiments of the apparatus, electronic device, etc., the description is relatively simple as it is substantially similar to the method embodiments, as relevant points are found in the partial description of the method embodiments.
The foregoing description is only of the preferred embodiments of the present invention and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.

Claims (16)

1. A method for displaying form information in a portable document format PDF document, the method comprising:
acquiring all form filling items in the currently edited PDF document; the form filling item includes: form filling items which are filled in by a user and form filling items which are not filled in the PDF document;
configuring data in a list of the form items according to the form filling items filled by the user and the unfilled form filling items in the PDF document; the list item list comprises: status flag information for each form filling item, and whether each form filling item has been filled in by the user; the list item list further includes: an input prompt for each form fill-in item; and/or the statistical information of the quantity of form filling items in the PDF document;
and displaying the list item list of the list items on the current display page.
2. The method of claim 1, further comprising, prior to the step of obtaining all form fills in the currently edited PDF document:
displaying a filling list button on a menu bar;
detecting whether a filling list button displayed on a current page is clicked by a user or not;
and after detecting that the filling list button is clicked by the user, executing the step of acquiring all form filling items in the currently edited PDF document.
3. The method of claim 1, wherein the step of obtaining all form fills in the currently edited PDF document comprises:
traversing objects in the PDF document in sequence;
if the traversed object is a form filling item, recording the traversed object;
if the traversed object is not a form filling item, returning to the step of traversing the objects in the PDF document in turn.
4. The method according to claim 1, characterized in that:
the marking information of whether each form filling item is filled by the user is as follows: a checkbox displayed in parallel with each form filling item; the checkbox is checked to identify that the form filling item has been filled in by the user, and the checkbox is not checked to identify that the form filling item has not been filled in by the user.
5. The method according to claim 1, wherein the method further comprises:
detecting whether a form filling item which is not filled by a user in a form list is filled by the user currently or not and whether the content of the form filling item which is filled by the user is deleted by the user or not;
modifying the state mark information of the form filling item filled by the user to be filled by the user;
the status flag information of the form filling item of which the content is deleted by the user is modified to be not filled by the user.
6. The method according to claim 1, wherein the method further comprises:
acquiring a target form filling item; the target form filling item is as follows: form filling items in the list of the form items clicked by the user;
acquiring a target position; the target position is: the position of the target form filling item in the PDF document;
and switching the currently displayed page to the target position.
7. The method of claim 6, wherein the step of switching the currently displayed page to the target location comprises:
switching the current page to the page where the target form filling item is located according to a preset switching mode; after the switching, the position of the target form filling item in the display document comprises: centered, uppermost or lowermost.
8. A form information presentation apparatus in a PDF document, the apparatus comprising:
the acquisition module is used for acquiring all form filling items in the currently edited PDF document; the form filling item includes: form filling items which are filled in by a user and form filling items which are not filled in the PDF document;
the configuration unit is used for configuring data in a list of the form items according to the form filling items which are filled in by the user and the form filling items which are not filled in the PDF document; the list item list comprises: status flag information for each form filling item, and whether each form filling item has been filled in by the user; the list item list further includes: an input prompt for each form fill-in item; and/or the statistical information of the quantity of form filling items in the PDF document;
and the display unit is used for displaying the list item list on the current display page.
9. The apparatus of claim 8, wherein the apparatus further comprises: a button display module, the button display module comprising: the device comprises a button display unit, a detection unit and a first calling unit;
the button display unit is used for displaying a filling list button in a menu bar before all form filling items in the currently edited PDF document are acquired;
the detection unit is used for detecting whether a filling list button displayed on the current page is clicked by a user or not;
the first calling unit is used for calling the acquisition module after detecting that the filling list button is clicked by a user.
10. The apparatus of claim 8, wherein the acquisition module comprises: the system comprises a traversing unit, a recording unit and a second calling unit;
the traversing unit is used for traversing the objects in the PDF document in sequence;
the recording unit is used for recording the traversed object if the traversed object is a form filling item;
the second calling unit is used for calling the traversing unit if the traversed object is not a form filling item.
11. The apparatus according to claim 8, wherein:
the marking information of whether each form filling item is filled by the user is as follows: a checkbox displayed in parallel with each form filling item; the checkbox is checked to identify that the form filling item has been filled in by the user, and the checkbox is not checked to identify that the form filling item has not been filled in by the user.
12. The apparatus of claim 8, wherein the apparatus further comprises: a detection module, the detection module comprising: the device comprises a detection unit, a first modification unit and a second modification unit;
the detection unit is used for detecting whether the form filling item which is not filled by the user in the list of the form item is currently filled by the user or not and whether the content of the form filling item which is already filled by the user is deleted by the user or not;
the first modification unit is used for modifying the state mark information of the form filling item filled by the user to be filled by the user;
the second modifying unit is used for modifying the state marking information of the form filling item of which the content is deleted by the user into the state marking information which is not filled by the user.
13. The apparatus of claim 8, wherein the apparatus further comprises: a switching module, the switching module comprising: the system comprises a target form filling item acquisition unit, a target position acquisition unit and a switching unit;
the target form filling item acquisition unit is used for acquiring a target form filling item; the target form filling item is as follows: form filling items in the list of the form items clicked by the user;
the target position acquisition unit is used for acquiring a target position; the target position is: the position of the target form filling item in the PDF document;
and the switching unit is used for switching the currently displayed page to the target position.
14. The apparatus according to claim 13, wherein the switching unit is specifically configured to:
switching the current page to the page where the target form filling item is located according to a preset switching mode; after the switching, the position of the target form filling item in the display document comprises: centered, uppermost or lowermost.
15. The electronic equipment is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
a memory for storing a computer program;
a processor for carrying out the method steps of any one of claims 1-7 when executing a program stored on a memory.
16. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored therein a computer program which, when executed by a processor, implements the method steps of any of claims 1-7.
CN201810779007.6A 2018-07-16 2018-07-16 Form information display method and device for PDF document and electronic equipment Active CN110795922B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810779007.6A CN110795922B (en) 2018-07-16 2018-07-16 Form information display method and device for PDF document and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810779007.6A CN110795922B (en) 2018-07-16 2018-07-16 Form information display method and device for PDF document and electronic equipment

Publications (2)

Publication Number Publication Date
CN110795922A CN110795922A (en) 2020-02-14
CN110795922B true CN110795922B (en) 2023-09-19

Family

ID=69424855

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810779007.6A Active CN110795922B (en) 2018-07-16 2018-07-16 Form information display method and device for PDF document and electronic equipment

Country Status (1)

Country Link
CN (1) CN110795922B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112883696A (en) * 2021-02-03 2021-06-01 维沃移动通信有限公司 Form filling method, form sharing method, device, equipment and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2783489A1 (en) * 2012-07-18 2014-01-18 Patientordersets.Com Ltd. Methods, software and devices for improving visibility of user-filled data in an electronic form

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2783489A1 (en) * 2012-07-18 2014-01-18 Patientordersets.Com Ltd. Methods, software and devices for improving visibility of user-filled data in an electronic form

Also Published As

Publication number Publication date
CN110795922A (en) 2020-02-14

Similar Documents

Publication Publication Date Title
US20210168234A1 (en) Page control method and apparatus, and computer-readable storage medium
CN113190781B (en) Page layout method, device, equipment and storage medium
CN104243273A (en) Method and device for displaying information on instant messaging client and information display system
US10042826B2 (en) Method for referring to specific content on a web page and web browsing system
WO2017177820A1 (en) File sending method and device in instant communication
CN109976599A (en) A kind of unread message processing method, device and the equipment of application program
CN111414727A (en) Method and device for editing header and footer of PDF (Portable document Format) document and electronic equipment
CN104951445B (en) Webpage processing method and device
CN110795922B (en) Form information display method and device for PDF document and electronic equipment
CN111428452B (en) Annotation data storage method and device
US20160299880A1 (en) Method and device for updating web page
CN112306336A (en) Document content display method and device
CN112329409A (en) Cell color conversion method and device and electronic equipment
CN113362174B (en) Data comparison method, device, equipment and storage medium
JP2011197983A (en) Information display device and information display program
CN112232046B (en) Method and device for displaying repeated items of table
CN112799564A (en) Method, device, electronic equipment and medium for inserting control in table
KR101242878B1 (en) Method and system for extracting and providing item having annotation on electronic book
CN114692581A (en) Electronic form sub-table display method, device, equipment and storage medium
CN110019492B (en) Information display method and device
US20140325340A1 (en) Information recording method, apparatus, browser and electronic device
CN109033051A (en) A kind of data lead-in method, device and computer-readable medium
CN110543623B (en) PDF document display method and device
CN112784550B (en) Information input method and device
CN111752424B (en) Chart saving method and device, electronic 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