Layout

Layout Context

LayoutContext provides context for layout operations within a PDF content generation pipeline, managing state needed for consistent positioning of content elements.

Content Resizing

ContentsResizeParameters and ContentsResizeValue control how existing page content is scaled and positioned within page boundaries. See PDF File Operations for detailed usage examples with PdfFileEditor.resizeContents().

Page Geometry Adjustments

Pages can be resized using PdfFileEditor with specific margin and content size parameters. The factory method ContentsResizeParameters.pageResize(width, height) creates parameters targeting a new page size, with individual margins configurable via setter methods after construction.

See Also