#1 2012-03-28 16:39:31

betoneto.tbo
Member
From: Brasil
Registered: 2011-05-10
Posts: 29

Another bug drawing metafiles in pdf

I created a filter implementation for QuickReport, to export the report to a PDF, using PdfEngine 1.15.

The example attached reproduces the bug.
Take a look at "Page1.emf" inside the zip, note that the metafile is correct, but when I play it to the pdf, the metafile imagens become larger...


Zip with sourcecode to reproduce the bug:
http://www.4shared.com/zip/01AQRFxN/Syn … e_bug.html

Thanks.

Offline

#2 2012-03-28 16:46:42

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,655
Website

Re: Another bug drawing metafiles in pdf

I'm not able to download the zip without registering, which I do not want to.

Did you use the latest version from SynPDF?
You may better retrieve the latest version from http://synopse.info/fossil
See http://synopse.info/fossil/wiki?name=Get+the+source

Offline

#3 2012-03-28 18:04:54

betoneto.tbo
Member
From: Brasil
Registered: 2011-05-10
Posts: 29

Re: Another bug drawing metafiles in pdf

I`m using the latest version ...

Please try download from this one http://www.mediafire.com/?ftesmt6xm4k9r70

Offline

#4 2012-03-28 20:51:24

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,655
Website

Re: Another bug drawing metafiles in pdf

There are some background erasing which sounds not taken in account in the pdf enumeration.
The pictures are not bigger, they are not clipped / erased as with the emf.

You may use the EmfExplorer tool (see http://frazmitic.free.fr/emfexplorer/) to guess what is wrong.
Even this tool is not able to render the emf content correctly.

So I guess there is something tricky in the generated emf content.

Offline

#5 2012-03-29 11:03:26

betoneto.tbo
Member
From: Brasil
Registered: 2011-05-10
Posts: 29

Re: Another bug drawing metafiles in pdf

Only one thing I do not understand ....

Printing the report from QuickReport with PDFCreator printer, all is well. The resulting PDF becomes correctly.

There is no possibility to make a work around? I don`t want to "hunt" this bug over QuickReport, it sucks!


Thanks!

Offline

#6 2012-03-29 11:47:46

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,655
Website

Re: Another bug drawing metafiles in pdf

The EMFExplorer tool is able to 'unserialize' the emf content into a list of GDI commands.

You'll certainly be able to find out which elements are not rendered as expected.

Then you can report here which kind of EMF commands have a problem.

Offline

#7 2012-03-30 11:39:32

betoneto.tbo
Member
From: Brasil
Registered: 2011-05-10
Posts: 29

Re: Another bug drawing metafiles in pdf

OK, I found the image problem, but only it, using the EMF Explorer.

If you open the generated PDF with that EMF, you will able to see others bugs:
- image size (barcode image)
- rectangles drawed in incorrect positions

Offline

#8 2012-03-30 12:16:32

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,655
Website

Re: Another bug drawing metafiles in pdf

This is not about image size, but image crop, I think.

Are the cropping functions visible in EMF Explorer GDI commands lists handled by the code?

Offline

#9 2012-03-30 13:28:25

betoneto.tbo
Member
From: Brasil
Registered: 2011-05-10
Posts: 29

Re: Another bug drawing metafiles in pdf

This ?


R0808: [081] EMR_STRETCHDIBITS    (s=36884)    {rclBounds(55,155,72,167), Dest[x:0, y:0, cx:134, cy:91)], dwRop(0x00CC0020), Src[x:0, y:0, cx:134, cy:91, iUsage:0, offBmi:80, Bmi:40, offBits:120, Bits:36764] BmiHeader[biSize:40, biWidth:134, biHeight:91, biPlanes:1, biBitCount:24, biCompression:0, biSizeImage:36764, biXPelsPerMeter:0, biYPelsPerMeter:0, biClrUsed:0, biClrImportant:0]}


You cannot download my source code and take a look ?
  http://www.mediafire.com/?ftesmt6xm4k9r70

Offline

Board footer

Powered by FluxBB