THotPDF.Resolution

THotPDF

 

Top  Previous  Next

Indicates the PDF file resolution value.

 

Delphi syntax:

property Resolution: Integer;

 

C++ syntax:

__property int Resolution;

 

Description

Use the Resolution property to determine resolution value of the PDF file.

Drawing coordinates, margins, font sizes and the results of TextWidth and TextHeight are in 1/Resolution inch, so at 144 a value of 144 is one inch. THPDFPage.Width and THPDFPage.Height stay in points; use THPDFPage.UserWidth and THPDFPage.UserHeight for the page size in drawing units. A page sized by setting Width and Height draws in points whatever the Resolution.

A few values are not drawing units. Line dash lengths, character and word spacing, leading and text rise are in points, like the PDF operators that take them. Translate, Concat, SetTextMatrix and ShowImageMatrix take PDF user space values, in points with the origin at the lower left. The page Canvas and DrawBarcode work in the screen pixels of the page canvas, which cover the page the same way at any Resolution. Default argument and property values, such as the module size of DrawQRCode or the default font size of a table, are drawing units like any other value.

 

Default value = 72;