[Gambas-user] Using pdf in Gambas

Benoit Minisini gambas at ...1...
Thu Dec 28 21:34:53 CET 2006


On Thursday 28 December 2006 13:27, rolf wrote:
> Hi everybody out there,
>
> I try to find any documentation or an example for the usage of gb.pdf.
> Could somebody give me a hint.
>
> Thanks
> rolf
>

The component is not finished. You can just open a PDF file and gets an image 
from each page of the PDF document.

This way:

DIM hPDF AS NEW PDFDocument
DIM hPict AS Picture
DIM iPage AS Integer

hPDF.Open(PdfFilePath)
hPDF.Scale = ...
hPDF.Rotation = ...

FOR iPage = 0 TO hPDF.Count - 1
  hPict = hPDF[iPage].GetPicture()
  ...
NEXT

Regards,

-- 
Benoit Minisini





More information about the User mailing list