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:
 This property is only used when saving PDF files natively, e.g. using TImageEnIO.SaveToFilePDF or TImageEnMIO.SaveToFilePDF (and the PdfViewer is disabled). It is NOT used when saving with PDFium
 If you are using a TIEMultiBitmap or TImageEnMView, you can use DuplicateCompressionInfo to propogate 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


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