"convert" jpeg image into pdf

  • I have images (jpeg format), that are exactly A4 page sized. I want to create pdf document from images. I have tried with simple code:

    WPPDFExport1.Filename := 'x:\export.pdf';
    WPPDFExport1.BeginDoc;
    Image1.Picture.LoadFromFile('x:\image.jpg');
    WPPDFExport1.DrawTGraphic(0,0,0,0, Image1.picture.graphic);
    WPPDFExport1.EndDoc;

    PDF document is created (and size is about same as jpg file), but when I load pdf document in acrobat, it's blank. What am I doing wrong?

    Thanks for help.

    Regards

    Matej Golob

  • It still doesn't work for me. I've sent you files (jpg and produced pdf) two times to support e-mail and I didn't get any answer from you.
    Can you please give me some advice what else should be wrong (I have JPEGDATA enabled).

    Matej

    • Offizieller Beitrag

    This code will export a JPEG file: