The debug EMF are found in the subdirectory Debug under the application folder.
You can mail me the data.
Regards,
Julian
The debug EMF are found in the subdirectory Debug under the application folder.
You can mail me the data.
Regards,
Julian
I tried that but the resulting pdf is exactly the same size. Or - where will I find this debug data?
as usual you can send me test data.
If you set wPDF.DebugMode := true it will create EMF data which include the data which is passed to the PDF engine. By examining that data I am able to see what format has been passed and how.
Thanks,
I tried, didn't help. Perhaps I did not put it in the correct place. I placed i tright before the pdf is rendered. Or should the statement put anywhere else?
micha
I expect that this JPEG is a CMYK jpeg which is not directly supported by the jpeg class in Delphi.
Since it cannot detect that it is cmyk it also cannot change the PDF properties.
If it is rendered ok on screen, it would be possible to render int into a new bitmap and export that.
Try
WPRichText1.RTFData.wpRecodeJpeg := true
In my application I export WPTOOLS-documents directly to PDF (WPDF3, now WPDF4) but some graphics are crippeled like this:
I tried with the demo and could export the document correctly with the WPTools-Premium Demo app, this seems to work, so I bought a wpPDF4 upgrade. Unfortunately the problem persists. If I import the same rtf into my application.
I temporarily solved the problem by removing the JPG image, converting it to PNG and reinserting ist. The PDF also dropped in size from 3MB to 450KB! I also tried to export the jpg from Photoshop with different settings and size, the problem persists. An other graphic (also jpg) in the same document prints well. To a normal printer everything prints fine.
I tried all avaliable wpdf4 options but to no avail. So I suspect it must be a setting in my source WPTOOLS component that creates this error as it seems to export correctly in the wptools7 premium demo app (I also use the latest wptools 7 version).
As my customer created hundreds of documents with this template, we cannot replace the graphic in all of them for archiving. That's why I have to find a solution.