摘要 |
Disclosed is a method for inserting an object in a PDF document. The method comprises the following steps: S1: collecting all the expression forms of an object to be inserted, and incorporating same into one configuration file; S2: establishing a mapping table, wherein the mapping table comprises an index, and the index indicates the location of each expression form of the object to be inserted in the configuration file; S3: creating an insert panel, and after a user issues an instruction to insert the object, opening the insert panel for the user to select or edit the object to be inserted; and S4: after the user issues a closing instruction, closing the insert panel, and writing the content edited by the user in the edit panel into the PDF document in the form of stream objects. According to the method proposed in the present invention, mathematical formulas and special symbols can be directly inserted into a PDF document, and modification can be performed thereon at any time according to the needs of users, thereby greatly facilitating the users to operate the formulas and the special symbols, so that the efficiency of creating and editing a PDF document is improved. |