ImageEn, unit iexBitmaps

TIOPDFPaperSize


Declaration

TIOPDFPaperSize = (iepA0, iepA1, iepA2, iepA3, iepA4, iepA5, iepA6, iepB5, iepLetter, iepLegal, iepLedger, iepTabloid, iepAuto, iepUnknown);


Description

Standard paper sizes that can be specified for PS_PaperSize and PDF_PaperSize. If iepAuto is selected (PDF only) then the page will be output at the size of the image (which may create huge PDF pages).
You can also specify the page layout (Portrait or landscape).


Example

procedure TMainForm.FormCreate(Sender: TObject);
var
  a: TIOPDFPaperSize;
begin
  // Fill combobox with available PDF paper sizes
  cmbPaperSize.Clear;
  for a := Low(TIOPDFPaperSize) to High(TIOPDFPaperSize) do
    cmbPaperSize.Items.Add( IEPaperSizeToStr( a ));

  // Make "US Letter" the selected one
  cmbPaperSize.ItemIndex := cmbPaperSize.Items.IndexOf( IEPaperSizeToStr( iepLetter ));
end;

// Set PDF paper size to user's selection
ImageEnView1.IO.Params.PDF_PaperSize := IEStrToPaperSize( cmbPaperSize.Text );


See Also

- IEPaperSizeToStr
- IEStrToPaperSize
- IEPointsToPaperSize
- IEPaperSizeToPoints
- IECalcPaperSize