Export PDF with Graphic File

  • Hi,

    i have trouble with Export to PDF.
    If i Export a RTF File with a jpg-Graphic, which was inserted in TWPRichText with this Code
    "WPRichText1.InsertGraphicDialog('Graphic files|*.BMP;*.JPG;*.WMF', false, [wpobjRelativeToParagraph]);"
    the Grapic is not exported to PDF.
    If i insert the same Graphic with STRG-C in IrfanView and STRG-V in WPTools the Export is ok.
    The Export is realized with then TWPPDFExport component an the Source is

    WPPDFExport1.filename:=exportFName;
    WPPDFExport1.Print;

    What can i do?

    • Offizieller Beitrag

    Hi,

    Maybe the JPEG format of this image is not supported and IrfanView corrects this. Usually the original JPEG Data is preserved and embedded into PDF when the image is inserted as JPEG in the text. With Copy&Paste the image can be JPEG, but does not have to be. It can also be a DIB Bitmap. I cannot tell without seeing the saved file in WPT format.

    Usually inserted images are exported and JPEGs are even better than Bitmaps since they are not "painted" for the export but just embedded..

    Julian