|
|
You can attach a file to any page of a PDF document as a file attachment annotation. To do this, you specify a FileAttachment element as a child of a PDF element. The syntax is similar to that for document-level file attachments, with these exceptions:
• Page-level file attachments do not use the nameKey attribute.
• Page-level file attachments have an additional subelement, AttachmentAppearance, that specifies the appearance of the annotation icon on the page that represents the file attachment.The file is attached to the first page represented by the parent element. Therefore, to attach a file to any page other than the first page, you must use multiple PDF source elements, as in the following example.Example: Attaching a file to a page<PDF result="doc3.pdf"><PDF source="doc1.pdf"/><PDF source="doc2.pdf" pages="1-2"/><PDF source="doc2.pdf" pages="3-last"><FileAttachments source="meetingnotes.txt"><File filename="meetingnotes.txt" mimetype="text/plain"/><FilenameEncoding encoding="ISO-8859-1"/><Description>comments from meeting</Description><AttachmentAppearance icon="Paperclip" color="red" opacity="75"x="36.0" y="360.0" /></FileAttachments></PDF><PDF source="doc2.pdf" pages="4-last"/></PDF>This example creates a result document by assembling doc1.pdf and doc2.pdf. The goal is to attach the file meetingnotes.txt to page 3 of the second source document, doc2.pdf. (Assuming doc1.pdf has 3 pages, this file attachment will appear on page 6 of the resulting doc3.pdf.)To do this, doc2.pdf is specified twice as a PDF source element, the first specifying pages 1-2 and the second specifying pages 3-last. The FileAttachments element causes the file to be attached to the first page of the range 3-last; that is, page 3.
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/livecycle/es/sdkHelp/programmer/sdkHelp/assemblePDFFile_attachments.99.5.html