#1 Re: PDF Engine » Parts of EMF are strange printed to PDF » 2015-02-25 10:50:29

Thank you ab for the fast response.

I updated the files to 1.18.973 but the PDF still looks strange.
When I place a breakpoint on the changed code section (SynPdf.pas, function EnumEMFFunc() in case EMR_INTERSECTCLIPRECT) the Debugger didn't stop there.

Does it may have something to do with GDI content, since a comment on the functions says that it doesn't render GDI completely yet?

Regards, topet

#2 PDF Engine » Parts of EMF are strange printed to PDF » 2015-02-20 15:23:49

topet
Replies: 3

I'm using the SynPdf in Version 1.18 and have the problem that parts of the EMF are not printed as aspected.
   
What I do:
- Using TChart to create a Chart and use the TChart-Function TeeCreateMetafile() to get a TMetafile.
- this Metafile is drawn to the TPrintPreview Canvas using StretchDrawGraphic()
- finally I use SynPDF to create the PDF-Document

The EMF is a chart that contains one Dataseries. The Dataseries is horizontal longer than the chart itself.
The chart is printed correctly on the preview and on a printer directly but when I'm using synPDF the dataseries is drawn beyond the chart-borders.

I created a correct PDF (EMF-OK) and one that shows the error (EMF-Strange) as well as the EMF-File (chart.emf) all zipped and available here
https://drive.google.com/file/d/0BwnbjR … sp=sharing

If anyone as an idea or hint, please let me know.
Regards, topet

Board footer

Powered by FluxBB