Declaration
function IEPaperSizeToStr(const ASize: TIOPDFPaperSize) : string;
Description
Convert a
TIOPDFPaperSize value to a human-readable string.
TIOPDFPaperSize values can be specified for
PS_PaperSize and
PDF_PaperSize.
Note:
◼No value is returned for iepUnknown
◼A localized value of "Automatic" is returned for iepAuto
Example 1
Caption := IEPaperSizeToStr(iepLetter); // Caption becomes 'US Letter';
Example 2
procedure TMainForm.FormCreate(Sender: TObject);
var
a: TIOPDFPaperSize;
begin
// Fill combobox with available PDF paper sizes
cmbPaperSize.Clear;
for a := Low(TIOPDFPaperSize) to iepAuto 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
◼IEStrToPaperSize◼IEPointsToPaperSize◼IEPaperSizeToPoints◼IECalcPaperSize