ImageEn, unit iexBitmaps

TIOParams.PDF_PaperLayout

TIOParams.PDF_PaperLayout

Declaration

property PDF_PaperLayout : TIEPageLayout;

Description

PDF_PaperSize provides a quick way to set PDF_PaperWidth and PDF_PaperHeight.
With PDF_PaperLayout you can also specify the layout as portrait or landscape.

Note:
If you are using a TIEMultiBitmap or TImageEnMView, you can use DuplicateCompressionInfo to propagate the parameter to all frames
iepLedger and iepTabloid pages will always be treated as ielPortrait (because iepLedger is just a landscape version of iepTabloid)
PDF_PaperLayout has no effect if PDF_PaperSize is iepAuto
This property is NOT used when saving files from an PdfViewer

Example

// Save using A4 Landscape paper size
ImageEnView1.IO.Params.PDF_PaperSize := iepA4;
ImageEnView1.IO.Params.PDF_PaperLayout := ielLandscape;
ImageEnView1.IO.SaveToFile('D:\output.pdf');

// Which is the same as...
ImageEnView1.IO.Params.PDF_PaperWidth  := 842;
ImageEnView1.IO.Params.PDF_PaperHeight := 595;
ImageEnView1.IO.SaveToFile('D:\output.pdf');

See Also

IEPaperSizeToStr
IEStrToPaperSize
IEPointsToPaperSize
IEPaperSizeToPoints