[Lazarus] fcl-pdf change

Michael Van Canneyt michael at freepascal.org
Thu Nov 3 09:47:59 CET 2016


Hello,

For those using the fcl-pdf package: There has been a change in the API.
Well, there were many additions, but this change may influence existing code.

Till now, the origin of the page was at the (top,left) corner of the page,
contrary to the PDF standard which has the origin at the (bottom,left) corner.

At the same time e.g. text was drawn with the current cursor position at the
(bottom,left) corner of the text. This is counter-intuitive.

The default has now been changed so the origin of the page is now at the
(bottom,left) corner of the page, conform the PDF standard.

You can easily restore the old behaviour by including poPageOriginAtTop in 
the document options.

Michael.


More information about the Lazarus mailing list