CN108319574A - The generation method and generating means of interactive pdf document - Google Patents
The generation method and generating means of interactive pdf document Download PDFInfo
- Publication number
- CN108319574A CN108319574A CN201710034844.1A CN201710034844A CN108319574A CN 108319574 A CN108319574 A CN 108319574A CN 201710034844 A CN201710034844 A CN 201710034844A CN 108319574 A CN108319574 A CN 108319574A
- Authority
- CN
- China
- Prior art keywords
- interactive component
- interactive
- document
- pdf document
- 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
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
- G06F40/134—Hyperlinking
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/166—Editing, e.g. inserting or deleting
- G06F40/186—Templates
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The present invention proposes a kind of generation method and generating means of interactive pdf document, wherein the generation method of the interactive mode pdf document includes:Interactive component is added in type-setting document;The parameter information of the interactive component is set;According to the parameter information of the interactive component, the PDF objects met described in PDF specifications are created;When the type-setting document is converted into pdf document, the PDF objects are written in the pdf document.The interaction of user and pdf document may be implemented in technical solution through the invention, to promote the usage experience of user.
Description
Technical field
The present invention relates to typesetting system fields, in particular to a kind of generation method and one kind of interactive pdf document
The generating means of interactive pdf document.
Background technology
Currently, can only have word or image in pdf document, user can read pdf document, but cannot achieve use
The interaction at family and pdf document, the usage experience for resulting in user are bad.
Therefore, the interaction for how realizing user and pdf document, the usage experience to promote user become urgently to be resolved hurrily
Technical problem.
Invention content
The present invention is based on the above problem, it is proposed that user and pdf document may be implemented in a kind of new technical solution
Interaction, to promote the usage experience of user.
In view of this, the first aspect of the present invention proposes a kind of generation method of interactive pdf document, including:It is arranging
Interactive component is added in version file;The parameter information of the interactive component is set;According to the parameter information of the interactive component, wound
Build the PDF objects met described in PDF specifications;When the type-setting document is converted into pdf document, the PDF objects are write
Enter into the pdf document.
In the technical scheme, by adding interactive component in type-setting document, type-setting document is being converted into pdf document
When, PDF objects are written in pdf document, in this way, pdf document is interactive pdf document, user can pass through PDF texts
Interactive component in part is interacted with pdf document, to improve the usage experience of user.
In the above-mentioned technical solutions, it is preferable that the interactive component is:Button, video or audio.
In the technical scheme, interactive component includes but not limited to button, video, audio, i.e., in addition to word in pdf document
Except image, can also having button, video, either audio passes through button, video or audio and pdf document thereby using family
It interacts.
In any of the above-described technical solution, it is preferable that the parameter information of the interactive component includes:The interactive component exists
Coordinate in the type-setting document and the corresponding action of the interactive component, wherein described if the interactive component is button
The corresponding action of interactive component includes the action of jump page;If the interactive component is video, the interactive component corresponds to
Action include play video action;If the interactive component is audio, corresponding act of the interactive component includes broadcasting
The action of playback frequency.
In the technical scheme, user can realize page jump, if for example, pressing when reading pdf document by button
The corresponding action of button when then the button is triggered, jumps directly to the homepage of pdf document, in addition, button pair to jump to homepage
The action answered, which can also be, to be jumped to last page, jumps to page up, jump to lower one page, jump to specific page, jump to URL's
Page etc..But also audio or video can be played in pdf document, it is handed over pdf document many-sided to meet user
Mutual demand.
In any of the above-described technical solution, it is preferable that the PDF objects include:Name object and Annots objects, it is described
Name object includes:The title of the title of each page in all pages of the type-setting document, each page has
Uniqueness.
The second aspect of the present invention proposes a kind of generating means of interactive pdf document, including:Adding device is used for
Interactive component is added in type-setting document;Setting unit, the parameter information for the interactive component to be arranged;Creating unit is used
In the parameter information according to the interactive component, the PDF objects met described in PDF specifications are created;Generation unit, for inciting somebody to action
When the type-setting document is converted into pdf document, the PDF objects are written in the pdf document.
In the technical scheme, by adding interactive component in type-setting document, type-setting document is being converted into pdf document
When, PDF objects are written in pdf document, in this way, pdf document is interactive pdf document, user can pass through PDF texts
Interactive component in part is interacted with pdf document, to improve the usage experience of user.
In the above-mentioned technical solutions, it is preferable that the interactive component is:Button, video or audio.
In the technical scheme, interactive component includes but not limited to button, video, audio, i.e., in addition to word in pdf document
Except image, can also having button, video, either audio passes through button, video or audio and pdf document thereby using family
It interacts.
In any of the above-described technical solution, it is preferable that the parameter information of the interactive component includes:The interactive component exists
Coordinate in the type-setting document and the corresponding action of the interactive component, wherein described if the interactive component is button
The corresponding action of interactive component includes the action of jump page;If the interactive component is video, the interactive component corresponds to
Action include play video action;If the interactive component is audio, corresponding act of the interactive component includes broadcasting
The action of playback frequency.
In the technical scheme, user can realize page jump, if for example, pressing when reading pdf document by button
The corresponding action of button when then the button is triggered, jumps directly to the homepage of pdf document, in addition, button pair to jump to homepage
The action answered, which can also be, to be jumped to last page, jumps to page up, jump to lower one page, jump to specific page, jump to URL's
Page etc..But also audio or video can be played in pdf document, it is handed over pdf document many-sided to meet user
Mutual demand.
In any of the above-described technical solution, it is preferable that the PDF objects include:Name object and Annots objects, it is described
Name object includes:The title of the title of each page in all pages of the type-setting document, each page has
Uniqueness.
The interaction of user and pdf document may be implemented in technical solution through the invention, to promote the use body of user
It tests.
Description of the drawings
Fig. 1 shows the flow diagram of the generation method of interactive pdf document according to an embodiment of the invention;
Fig. 2 shows the structural schematic diagrams of the generating means of interactive pdf document according to an embodiment of the invention.
Specific implementation mode
It is below in conjunction with the accompanying drawings and specific real in order to be more clearly understood that the above objects, features and advantages of the present invention
Mode is applied the present invention is further described in detail.It should be noted that in the absence of conflict, the implementation of the application
Feature in example and embodiment can be combined with each other.
Many details are elaborated in the following description to facilitate a thorough understanding of the present invention, still, the present invention may be used also
To be implemented different from other modes described here using other, therefore, protection scope of the present invention is not by described below
Specific embodiment limitation.
Fig. 1 shows the flow diagram of the generation method of interactive pdf document according to an embodiment of the invention.
As shown in Figure 1, the generation method of interactive mode pdf document according to an embodiment of the invention, including:
Step 102, interactive component is added in type-setting document.
Preferably, interactive component is:Button, video or audio.
Interactive component includes but not limited to button, video, audio, i.e., may be used also other than writings and image in pdf document
To have button, video, either audio is interacted thereby using family by button, video or audio and pdf document.
For example, opening type-setting document by software for composing, the option of addition component is shown in software for composing, if the choosing
Item is triggered, then pops up the dialog box of selection interactive component, interactive component to be added is selected by the dialog box.
Step 104, the parameter information of interactive component is set.
Preferably, the parameter information of interactive component includes:Coordinate and interactive component of the interactive component in pdf document correspond to
Action, wherein if interactive component be button, interactive component it is corresponding action include jump page action;If interaction group
Part is video, then the corresponding action of interactive component includes playing the action of video;If interactive component is audio, interactive component pair
The action answered includes playing the action of audio.
User can realize page jump when reading pdf document by button, if for example, the corresponding action of button is
Homepage is jumped to, then when the button is triggered, jumps directly to the homepage of pdf document, in addition, the corresponding action of button can be with
It is to jump to last page, jump to page up, jump to lower one page, jump to specific page, jump to URL (Uniform
Resource Locator, uniform resource locator) the page etc..But also audio can be played in pdf document or regarded
Frequently, to meet user the needs of various aspects are interacted with pdf document.
For example, after choosing interactive component, the option of addition action is displayed whether, if having selected the choosing that addition acts
It selects, then shows at least one action, for user's corresponding action of selection interactive component at least one action.
Step 106, according to the parameter information of interactive component, the PDF objects met described in PDF specifications are created.
Preferably, PDF objects include:Name object and Annots objects, name object include:All pages of type-setting document
The title of the title of each page in face, each page has uniqueness.
Wherein, each object in name object and Annots objects has unique ID.Name object includes a mesh
Object is marked, target object includes a title array, and each entry in the title array includes the page in a type-setting document
Title, which can at will take, but not reproducible, that is, have uniqueness.Where each entry further includes target object
Page index, coordinate and scaling information, such as:
2 0obj
<<
/Pages 3 0R
/Names 52 0R
/Type/Catalog
>>
Endobj
Above description quotes a name object, 52 0R.
52 0obj
<<
/Dests 53 0R
>>
Endobj
// it is description name object above, include the reference of a target object.53 0R
53 0obj
<<
/Names[
<FEFF672A547D540D0030>[18 0R/XYZ null null null]]
// above description target object, including the page reference where title, target object, left top, zoom compositions
Array.
In addition, it is specific as follows to create Annots objects:
Step 108, when type-setting document is converted into pdf document, PDF objects are written in pdf document.
Wherein, PDF objects are traversed, and the PDF objects are written in pdf document.
In the technical scheme, by adding interactive component in type-setting document, type-setting document is being converted into pdf document
When, PDF objects are written in pdf document, in this way, pdf document is interactive pdf document, user can pass through PDF texts
Interactive component in part is interacted with pdf document, to improve the usage experience of user.
Fig. 2 shows the structural schematic diagrams of the generating means of interactive pdf document according to an embodiment of the invention.
As shown in Fig. 2, the generating means 200 of interactive mode pdf document according to an embodiment of the invention, including:Add
Add unit 202, setting unit 204, creating unit 206 and generation unit 208.
Adding device 202, for adding interactive component in type-setting document;Setting unit 204, for interactive component to be arranged
Parameter information;Creating unit 206 creates the PDF met described in PDF specifications for the parameter information according to interactive component
Object;Generation unit 208, for when type-setting document is converted into pdf document, PDF objects to be written in pdf document.
In the technical scheme, by adding interactive component in type-setting document, type-setting document is being converted into pdf document
When, PDF objects are written in pdf document, in this way, pdf document is interactive pdf document, user can pass through PDF texts
Interactive component in part is interacted with pdf document, to improve the usage experience of user.
In the above-mentioned technical solutions, it is preferable that interactive component is:Button, video or audio.
In the technical scheme, interactive component includes but not limited to button, video, audio, i.e., in addition to word in pdf document
Except image, can also having button, video, either audio passes through button, video or audio and pdf document thereby using family
It interacts.
In any of the above-described technical solution, it is preferable that the parameter information of interactive component includes:Interactive component is in pdf document
In the corresponding action of coordinate and interactive component, wherein if interactive component be button, interactive component it is corresponding action include jump
The action in blade-rotating face;If interactive component is video, the corresponding action of interactive component includes playing the action of video;If interaction group
Part is audio, then the corresponding action of interactive component includes playing the action of audio.
In the technical scheme, user can realize page jump, if for example, pressing when reading pdf document by button
The corresponding action of button when then the button is triggered, jumps directly to the homepage of pdf document, in addition, button pair to jump to homepage
The action answered, which can also be, to be jumped to last page, jumps to page up, jump to lower one page, jump to specific page, jump to URL's
Page etc..But also audio or video can be played in pdf document, it is handed over pdf document many-sided to meet user
Mutual demand.
In any of the above-described technical solution, it is preferable that PDF objects include:Name object and Annots objects, name object
Including:The title of the title of each page in all pages of type-setting document, each page has uniqueness.
Technical scheme of the present invention is described in detail above in association with attached drawing, technical solution through the invention may be implemented
The interaction of user and pdf document, to promote the usage experience of user.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field
For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, any made by repair
Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.
Claims (8)
1. a kind of generation method of interactive mode pdf document, which is characterized in that including:
Interactive component is added in type-setting document;
The parameter information of the interactive component is set;
According to the parameter information of the interactive component, the PDF objects met described in PDF specifications are created;
When the type-setting document is converted into pdf document, the PDF objects are written in the pdf document.
2. the generation method of interactive mode pdf document according to claim 1, which is characterized in that
The interactive component is:Button, video or audio.
3. the generation method of interactive mode pdf document according to claim 2, which is characterized in that
The parameter information of the interactive component includes:Coordinate of the interactive component in the type-setting document and interactive group described
The corresponding action of part,
Wherein, if the interactive component is button, the corresponding action of the interactive component includes the action of jump page;If institute
It is video to state interactive component, then the corresponding action of the interactive component includes playing the action of video;If the interactive component is
Audio, then the corresponding action of the interactive component includes playing the action of audio.
4. the generation method of the interactive pdf document according to claims 1 to 3, which is characterized in that the PDF objects packet
It includes:Name object and Annots objects, the name object include:Each page in all pages of the type-setting document
The title of title, each page has uniqueness.
5. a kind of generating means of interactive mode pdf document, which is characterized in that including:
Adding device, for adding interactive component in type-setting document;
Setting unit, the parameter information for the interactive component to be arranged;
Creating unit creates the PDF objects met described in PDF specifications for the parameter information according to the interactive component;
Generation unit, for when the type-setting document is converted into pdf document, the PDF objects to be written to the PDF texts
In part.
6. the generating means of interactive mode pdf document according to claim 5, which is characterized in that
The interactive component is:Button, video or audio.
7. the generating means of interactive mode pdf document according to claim 6, which is characterized in that
The parameter information of the interactive component includes:Coordinate of the interactive component in the type-setting document and interactive group described
The corresponding action of part,
Wherein, if the interactive component is button, the corresponding action of the interactive component includes the action of jump page;If institute
It is video to state interactive component, then the corresponding action of the interactive component includes playing the action of video;If the interactive component is
Audio, then the corresponding action of the interactive component includes playing the action of audio.
8. according to the generating means of the interactive pdf document described in claim 5 to 7, which is characterized in that the PDF objects packet
It includes:Name object and Annots objects, the name object include:Each page in all pages of the type-setting document
The title of title, each page has uniqueness.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710034844.1A CN108319574A (en) | 2017-01-18 | 2017-01-18 | The generation method and generating means of interactive pdf document |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710034844.1A CN108319574A (en) | 2017-01-18 | 2017-01-18 | The generation method and generating means of interactive pdf document |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108319574A true CN108319574A (en) | 2018-07-24 |
Family
ID=62892215
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710034844.1A Pending CN108319574A (en) | 2017-01-18 | 2017-01-18 | The generation method and generating means of interactive pdf document |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108319574A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8522158B2 (en) * | 2010-10-19 | 2013-08-27 | Apple Inc. | Systems, methods, and computer-readable media for providing a dynamic loupe for displayed information |
CN103548083A (en) * | 2011-04-13 | 2014-01-29 | 张真赫 | System for playing multimedia for a PDF document-based e-book and method for playing same, and application for a PC or a mobile device in which the same is implemented |
CN104424282A (en) * | 2013-08-30 | 2015-03-18 | 北大方正集团有限公司 | Method and device for inserting multimedia material into document file |
CN104572598A (en) * | 2013-10-24 | 2015-04-29 | 北大方正集团有限公司 | Typesetting method and device for digitally published product |
CN105741630A (en) * | 2016-02-03 | 2016-07-06 | 李毅鸥 | System enabling demonstration file to have interactive function and method thereof |
-
2017
- 2017-01-18 CN CN201710034844.1A patent/CN108319574A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8522158B2 (en) * | 2010-10-19 | 2013-08-27 | Apple Inc. | Systems, methods, and computer-readable media for providing a dynamic loupe for displayed information |
CN103548083A (en) * | 2011-04-13 | 2014-01-29 | 张真赫 | System for playing multimedia for a PDF document-based e-book and method for playing same, and application for a PC or a mobile device in which the same is implemented |
CN104424282A (en) * | 2013-08-30 | 2015-03-18 | 北大方正集团有限公司 | Method and device for inserting multimedia material into document file |
CN104572598A (en) * | 2013-10-24 | 2015-04-29 | 北大方正集团有限公司 | Typesetting method and device for digitally published product |
CN105741630A (en) * | 2016-02-03 | 2016-07-06 | 李毅鸥 | System enabling demonstration file to have interactive function and method thereof |
Non-Patent Citations (3)
Title |
---|
LATEX_FUN: "LaTeX技巧363:LaTeX插入视频和flash多媒体方法", 《HTTP://BLOG.SINA.COM.CN/S/BLOG_5E16F1770100LUB8.HTML》 * |
ROBIN553: "PDF文件中怎么添加音频文件 声音文件", 《HTTPS://JINGYAN.BAIDU.COM/ARTICLE/380ABD0A1B56601D90192C8C.HTML》 * |
何知宇: "方正书版文件转换PDF文档的几种方法比较", 《中国科技期刊研究》 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11669225B2 (en) | Categorized and tagged video annotation | |
CN101930779B (en) | Video commenting method and video player | |
KR100878094B1 (en) | Storage device and recording medium | |
US20130047097A1 (en) | Methods, systems, and computer program products for displaying tag words for selection by users engaged in social tagging of content | |
CN107562680A (en) | Data processing method, device and terminal device | |
CN104244081B (en) | The providing method and device of video | |
RU2322687C2 (en) | System and method for providing multiple reproductions of content of documents | |
TW200913714A (en) | Video data producing method and device | |
US20110151426A1 (en) | Learning tool | |
KR102505973B1 (en) | Image processing apparatus, control method thereof and computer readable medium having computer program recorded therefor | |
CN103986938A (en) | Preview method and system based on video playing | |
US20150111189A1 (en) | System and method for browsing multimedia file | |
Green et al. | Classification of digital content, media, and device types | |
CN108319574A (en) | The generation method and generating means of interactive pdf document | |
CN104768083B (en) | A kind of video broadcasting method and device of chapters and sections content displaying | |
JP2006050469A (en) | Content generating apparatus, content generating method, program and recording medium | |
JP5080368B2 (en) | Video content search apparatus and computer program | |
US9093074B2 (en) | Image processing apparatus, image processing program and image processing method | |
KR20080082149A (en) | Method and apparatus for changing text-based subtitle | |
KR102067495B1 (en) | System for editing electronic document and operating method thereof | |
Bellido | Patents In Miniature: The Effects of Microfilm as an Information Technology, 1938–68 | |
JP5206003B2 (en) | Information distribution system, information distribution apparatus, and program | |
JP2009116810A (en) | Electronic document creation system and pdf file | |
WO2013018515A1 (en) | Information processing device | |
Alexander | From GoPros to green screens, Barnard's IMATS is a student filmmaker's one-stop shop for everything. |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180724 |
|
RJ01 | Rejection of invention patent application after publication |