TSRVPageProperty.ConvertPageSizeToPageFormat

Top  Previous  Next

Returns a page format by the specified values of PaperWidth and PaperHeight.

function ConvertPageSizeToPageFormat(UnitsPaper: TRVUnits;

  PaperWidth, PaperHeight: TRVLength): TSRVPageFormat;

PaperWidth and PaperHeight must be specified in portrait orientation.

PaperWidth and PaperHeight are measured in UnitsPaper ("pixels" assume 96 dpi).

If a standard format of this size cannot be found, srvfmCustom is returned.


ScaleRichView © Ilya Zelensky & Sergey Tkachenko