[Gambas-user] PdfDocument class - problem with landscape PDFs
Claus Dietrich
claus.dietrich at freenet.de
Wed Dec 20 15:44:57 CET 2023
Hi
Someone in the German Gambas Club raised the question, why the reading
of a PdfDocument in portrait format is OK, but not if it is a PDF in
landscape format.
Please find attached a small demo which confirms his observation. I used
the PdfDocument class of the gb.poppler component and the render-method
to read the PDF. The text appears to be horizontally stretched while its
vertical dimensions seem to be correct. After I changed to the gb.pdf
component and adapted the code the result was OK.
Is this possibly a bug of the gb.poppler component (couldn't find
anything relevant in the bugtracker) or a wrong use of the PdfDocument?
Best regards
Claus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20231220/80d24b26/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pdfDocument_demo-0.0.1.tar.gz
Type: application/gzip
Size: 40229 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20231220/80d24b26/attachment-0001.gz>
More information about the User
mailing list