Take a survey

Developing Applications Using APIs > Assembling PDF Documents > Adding and Manipulating Page Content

Adding and Manipulating Page Content
You can add and remove several types of content to the pages of assembled PDF documents:
Headers and footers consist of text or graphics that appear in one or more of three locations (left, center, and right) at the top or bottom of a page. Typically, they contain information such as the date, page number, and document title.
Watermarks and backgrounds consist of text or graphics that can appear anywhere on a page, either on top of the existing content (watermarks) or in back of the existing content (backgrounds).
Overlays and underlays consist of entire PDF pages that are placed on top of the existing content (overlays) or in back of the existing content (underlays).
Note: For the Assembler service, reapplying a Header, Footer, Watermark, Background, PageOverlay, or PageUnderlay to a PDF file will cause the file to grow in size. This growth occurs even if you set the PDF element’s save attribute to Full, as shown in the example below.
The reason the file grows is that the Header, for example, references an optional content group (OCG) in the PDF document. Because different PDF objects may reference the same OCG, it is assumed that the OCG associated with the Header may be needed by other PDF objects. For this reason, reapplying the Header will not result in the associated OCG being removed, but rather in the addition of a new OCG associated with the new Header.
For example, the following DDX will cause the file to grow in size each time it is applied to the file:
<PDF result="result.pdf" save="Full">
   <PDF source="input.pdf" />
   <Header> <Center>
     <StyledText>
        <p>For review</p>
     </StyledText> </Center>
   </Header>
</PDF>

 

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/assemblePDFPage_content.103.1.html