# US 2016/0253306 A1 · The method of inserting objects into a pdf document

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2016/0253306 A1
- Document ID: US20160253306A1
- Status: Published application
- Kind: A1
- Application number: 14/778,178
- Filed: 2014-03-14
- Published: 2016-09-01
- Earliest claimed: 2013-03-19
- Assignees: Fujian Foxit Software Development Joint Stock Co., Ltd.
- Applicants: Fujian Foxit Software Development Joint Stock Co., Ltd.
- Inventors: Xiaolong Fan
- Web page: https://patentgrep.com/patent/US20160253306A1

## CPC

- G06F 40/177: of tables; using ruled lines
- G06F 3/0482: Interaction with lists of selectable items, e.g. menus
- G06F 3/0484: 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
- G06F 40/106: Display of layout of documents; Previewing
- G06F 40/109: Font handling; Temporal or kinetic typography
- G06F 40/111: Mathematical or scientific formatting; Subscripts; Superscripts
- G06F 40/166: Editing, e.g. inserting or deleting
- G06F 40/186: Templates
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

The present invention discloses a method for inserting objects into a PDF document, the method comprises the following steps: S1: collecting all manifestations of the objects to be inserted, and incorporating them into one configuration file; S2: establishing a mapping table, wherein the mapping table comprises indexes, and said indexes indicate the position of each expression form of the objects to be inserted in said configuration file; S3: creating an insert panel, opening said insert panel for a user to select or edit the objects to be inserted after the user issue an instruction of inserting object; and S4: closing said insert panel, and writing the contents edited by the user in the insert panel into the PDF document in the form of stream objects after the user issue a closing instruction. The method provided by the present invention can insert the mathematical formulas and special symbols directly into a PDF document, and modify them at any time according to the demand of users, which thereby greatly facilitates the user to operate on the formulas and special symbols, so that the efficiency of creating and editing a PDF document is enhanced.

## Claims

### Claim 1

A method for inserting objects into a PDF document, wherein, comprising the following steps:
S1: collecting all manifestations of the objects to be inserted, and incorporating them into one configuration file;
S2: establishing a mapping table, which comprising indexes for use as wanting the positions of the each manifestation of the inserted objects in said configuration file;
S3: creating an insert panel, and after the user issues an instruction of inserting object,
Opening said insert panel for user to select or edit the objects to be inserted;
S4: after the user issues a closing instruction, closing said insert panel, and writing the contents edited in said edit panel by the user into the PDF document in the form of stream objects.

### Claim 2 (depends on 1)

The method for inserting objects into a PDF document as claimed in claim 1, wherein, said objects are formulas, and their manifestations are all kinds of formula templates; said mapping table further including attributes, said attributes comprising formula attributes and general attributes; said formula attributes are used to determine formula structures, which comprising whether there are nests, the number of total nest layers and the corresponding index of sub-template of the each nest layer; Said general attributes comprising character pitch of the text, horizontal pantograph level, the array pitch, the font type of the text, the font size and the exhibition mode; the insert panel is an edit panel for the user to edit the formulas to be inserted.

### Claim 3 (depends on 2)

The method for inserting objects into a PDF document as claimed in claim 2, wherein, said step S3 comprising:
S31: judging whether there is any nesting relationship in the current edited formula template, if there is no said nesting relationship, then according to said index to obtain each attribute corresponding to the current formula template from said configuration file and to feed back it to said user; if there is said nesting relationship, then after obtaining said each attribute of internal nest formula template, and in combination with external formula template again so as to adjust, and then feeding back the adjusted integrate attribute to the user.

### Claim 4 (depends on 2)

The method for inserting objects in a PDF document according to claim 2, wherein, said step S4 comprising:
S41: writing formula object identification before completing an edited formula, and then writing said formula object identification together with the edited formula into the PDF document in the form of stream objects.

### Claim 5 (depends on 2)

The method for inserting objects in PDF document as claimed in claim 2, wherein, further comprising the following step:
S5: revising the inserted formulas after the user issues a modifying instruction.

### Claim 6 (depends on 5)

The method for inserting objects into a PDF document as claimed in claim 5 wherein, said step S5 comprising:
S51: extracting associated formula information stored in said identification, which including the template indexes and nesting relationships used in the formula;
S52: analyzing the formula objects according to the extracted information and in combination with the configuration file again, and reproducing them in the edit panels;
S53: after the user issues instruction of finishing the editing, regenerating the formula object identification, deleting the original formula object identification and the contents of the original formula, and writing the modified formula object identification and the formula contents.

### Claim 7 (depends on 1)

The method for inserting objects into a PDF document as claimed in claim 1, wherein, said object is a special character, and the insert panel is a character selection interface, exhibiting the manifestation of variant special characters in the form of tabulation.

### Claim 8 (depends on 7)

The method for inserting objects into a PDF document as claimed in claim 7, wherein, further comprising the following step:
S6: when there does not exist the special characters to be inserted in the character selection interface, allowing the user to write the needed special characters in self-defining way and reminding the user to add them into a self-defining character library.
