Take a survey

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

Transforming page content
The Transform element allows you to alter the page content of existing pages in the following ways:
Scaling: You can make the contents of the page larger or smaller by using the scale attribute, which is a nonnegative number that can be expressed as a decimal or percentage. A value less than 1 scales the contents down, and a value greater than 1 scales them up.
Translation: You can move the page contents horizontally or vertically by using the newX and newY attributes. These values are length specifiers (see Specifying length).
The default for all of the attributes is to do no transformation on the page contents.
The Transform element is categorized as a page content element rather than a page property element because it affects existing page content. It has no effect on the properties of the page itself. For example, rotating the contents of the page does not change the orientation of the page (portrait or landscape).
Note: You must be careful when using this element because it is possible to move part or all of the page content outside the visible portions of the page.
This example shrinks the page content of doc1.pdf to one-quarter size, moves the origin from the page to 50 points horizontal and 80 points vertical, and rotates the content by 90 degrees. The content of doc2.pdf is unchanged.
Example: Transforming page content
<PDF result="doc3.pdf">
	<PDF source="doc1.pdf">
		<Transform 
			scale="0.25" newX="50" newY="80" rotate90="90"/>
	</PDF>
	<PDF source="doc2.pdf"/>
</PDF>
This figure shows how the page looks before and after the Transform element is applied.
 

 

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.14.html