[Gambas-user] Understanding how to use gb.poppler instead of gb.pdf

Benoît Minisini g4mba5 at gmail.com
Mon Nov 1 18:50:07 CET 2021


Le 01/11/2021 à 10:47, Rolf-Werner Eilert a écrit :
> In several projects I have used gb.pdf to show PDF files (mostly as a 
> printing preview). With qt5 and newer Linux versions it might be wise to 
> use the newer gb.poppler instead. At least the gb.pdf is deprecated.
> 
> In a first trial I simply replaced the library and expected to be lead 
> by the help texts how to use gb.poppler. But as it turned out, the help 
> was of no help.
> 
> For instance, a simple .Open(PathToFile) seems not possible anymore, but 
> there is no indication at all on how to load and show a pdf.
> 
> Could someone explain to me how to achieve this? And maybe we should 
> complete the help texts, especially with simple examples of how to 
> handle PDF files in gb.poppler.
> 
> Regards
> Rolf
> 
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
> .

The Open() method has been removed because it is now useless. You pass 
the path of the Pdf file directly to the constructor.

If some of the 'gb.pdf' methods or properties are missing in 
'gb.poppler', tell me, I will see what I can do.

Regards,

-- 
Benoît Minisini


More information about the User mailing list