[Gambas-user] PdfDocument class - problem with landscape PDFs

Claus Dietrich claus.dietrich at freenet.de
Fri Dec 22 21:22:44 CET 2023


Hi Benoît

I just tested my app with the up to date master 
(3.18.90+git202312220812.63d9a99e8+build36~ubuntu20.04.1).

Landscape PDFs are still not read as expected. The PDF used for testing 
is attached as reference.

?

Claus

Am 22.12.23 um 11:52 schrieb Claus Dietrich:
>
> Hi Benoit
>
> Thanks as lot! Your comment to the commit ("It's indicative, it's not 
> something to apply.") is however irritating.
>
> I hope that my initial impression was right and apparently I confused 
> myself with different interpretations of the term "landscape PDF 
> document".
>
> Hi Gianluigi:
>
> I returned to my original understanding of a "landscape PDF document" 
> (as in my first post of this thread) and confirm your experience. Your 
> demo app in the farm also doesn't work with a landscape PDF. Sorry if 
> I cause any irritation.
>
> I will test the fixed gb.poppler in the Master when the commit arrived 
> in the ppa and will report.
>
> With best regards
>
> Claus
>
>
> Am 22.12.23 um 01:37 schrieb Benoît Minisini:
>> Le 20/12/2023 à 15:44, Claus Dietrich a écrit :
>>> 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
>>>
>>
>> The last commit should fix the poppler component.
>>
>> Regards,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20231222/c3bbd428/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PDF-job_411_landscape3.pdf
Type: application/pdf
Size: 21838 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20231222/c3bbd428/attachment-0001.pdf>


More information about the User mailing list