RenderXFAPageToStream

Forms, XFA rendering, streams

Description

Converts the selected XFA layout to isolated static page content, resolves bound field values, flattens generated field appearances, and writes one raster page to Target

The configured ordinary page renderer is reused after conversion, including PDFium when selected, and the original XFA document remains editable and unchanged

Syntax

Function TPDFlib.RenderXFAPageToStream(DPI: Double; Page, Options: Integer; Target: TStream): Integer;

Parameters

DPIRaster resolution in dots per inch
PageOne-based generated XFA page number
OptionsThe same raster format option accepted by RenderPageToStream
TargetDestination stream that receives the encoded image

Return values

0Rendering failed; inspect LastRenderError
1The page was rendered successfully