WPCubed Product Support

Incorect behaviour

2.6k Views 6 links 2 users read 2 min
wpsupport

wPDF is based on GDI, not GDI+.

It also depends that paths and world transformations are correctly encapsulated with SaveDC/RestoreDC. If this is not done, it has to make assumptions since PDF does not allow the definitiopn of a World, but just incremental changes to it. The same is true for clipping.

You can activate EMF writing for debug purposes

wPDF.DebugMode := true

You can send the created EMF to support to reprodce the problem.

#2 ♥ 0

Here are two pdf files generated with our application.

The "Arbredegroupe.pdf" file is generated using the wPDF 4 Standard plugin. We create a TWPPDFPrinter object and plot in its Canvas. The test is done with version 5, which gives the same results.

The second "Arbredegroupemptp.pdf" is generated by a virtual pdf printer (in this case "Microsoft print to PDF"). We create a TPrinter object and plot in its Canvas.

Drawings are made with the GDI+ library.

You can see that on the first file, the rightmost cells are empty, whereas on the second, they're filled in.

Another comment. You may notice that the pdf generated by WPDF is four times larger. Why is this? The circles are drawn with a transparent brush, so they appear squared off ?

The files are available here :

https://telechargement3.heredis.com/download/divers/Arbredegroupe.pdf

https://telechargement3.heredis.com/download/divers/Arbredegroupemptp.pdf

Thanks.

#1 ♥ 0