Take a survey

DDX Reference > DDX Language Elements > Background

Background
Provides styled text or PDF content for placement behind the existing page content. The Background element applies a background to all pages in the scope of its parent element, replacing any pre-existing backgrounds on those pages if replaceExisting has not been specified or is "true". In LiveCycle Assembler ES and later, you can retain pre-existing backgrounds when adding one new background. This is specified with the replaceExisting attribute. If replaceExisting is "false", a new Background will be added to the existing Background. There may still only be one background specified (added) per page. Transient results allow for the addition of multiple backgrounds.
If the background content is provided in a PDF source element, the first page from the source document is used for the background.
<Background
	alternation="None" or "OddPages" or "EvenPages"
	fitToPage="true" or "false"
	horizontalAnchor="Left" or "Center" or "Right"
	horizontalOffset="0pt" or "length"
	opacity="100%" or "percentage"
	rotation="0" or "xs:integer"
	scale="100%" or "percentage"
	showOnScreen="true" or "false"
	showWhenPrinting="true" or "false"
	verticalAnchor="Top" or "Middle" or "Bottom"
	verticalOffset="0pt" or "length"
	replaceExisting="true" or "false"
>
	<StyledText> or < PDF source> [1]
	<TargetLocale> [0..1]
</Background>
Can be contained in the elements PDF result, PDF source, PDFGroup, TableOfContents, PackageFiles filter, select, or conversion elements, TableOfContentsPagePattern, BlankPage, and StyleProfile.
If the background content is provided by a PDF source element, the first page from the source document is used for the background.
Use the Watermark element to place content over the existing page content.
Category
Page content
Attributes
 
Optional. Specifies whether the element’s settings apply to all pages or to alternating pages. This attribute can have the following values:
None (default) - Settings apply to all pages.
OddPages - Settings apply to odd pages only.
EvenPages - Settings apply to even pages only.
false (default) - Background content is scaled according to the scale attribute.
true - Background content is forced to fit the boundaries of the page size, by either expanding or shrinking the text. The scale attribute is ignored.
Optional. Specifies a horizontal anchor point, relative to the PageMargins element of the page on which the background is placed. The placement relative to this anchor can be modified by the horizontalOffset attribute. This attribute can have the following values:
Left - Left page margin
Center (default) - Midpoint between the left and right margins
Right - Right margin
Optional. Offset from the horizontal anchor point specified in the horizontalAnchor attribute. A positive value moves the background right, while a negative value moves it left. (See Length values.)
Optional. Transparency of the background. The value can be a decimal in the range of .0 to 1.0 or a percentage in the range of 0% to 100%. In the latter case, the percentage sign (%) is required.
Optional. If set to false, then any pre-existing backgrounds in the source PDF document will remain, and not be replaced by a specified background.
Optional. Scaling of the background. The valid range is 8% to 3200%. The value can be a decimal in the range of .0 to 1.0 or a percentage in the range of 0% to 100%. In the latter case, the percentage sign (%) is required.
Optional. Controls whether the background is displayed when pages are viewed with an application such as Acrobat. This attribute can have the following values:
true (default) - The background is displayed.
false - The background is not displayed.
Optional. Controls whether the background is included when pages are printed with an application such as Acrobat. This attribute can have the following values:
true (default) - The background is included.
false - The background is not included.
Optional. Specifies a vertical anchor point, relative to the PageMargins element of the page on which the background is placed. The placement relative to this anchor can be modified by the verticalOffset attribute. This attribute can have the following values:
Top - Top page margin
Middle (default) - Midpoint between the top and bottom margins.
Bottom - Bottom margin
Optional. Offset from the vertical anchor point specified in the verticalAnchor attribute. A positive value moves the background up, while a negative value moves it down. (See Length values.)

 

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/ddxRefMain.163.6.html