#1 PDF Engine » Need help/direction for WMF file. » Today 07:25:33

sameerpandit
Replies: 1

Hello,

I have wmf files like the one below :

Sample of WMF file

I am unable to Render/Draw the above wmf accurately in the PdfDocument.

If i tinker with the ScaleX,ScaleY parameters for RenderMetaFile method i am able to get results. However the accuracy isnt 100%.

On the other hand if i try using the VclCanvas.Draw method then images at bottom of page are missing in the Pdf.

Any sort of guidance will be appreciated.

-Sam

PS : I am not using any code worth mentioning. Simply like below :

Sample of code used

PPS : Edited the URLs. Thanks for pointing out RVK.

#2 Re: PDF Engine » [Ignore] Drawing. Wmf containing image » 2025-02-07 11:28:20

@rvk

Ok. Thanks for trying.

I google searched & found couple of threads on
Stackoverflow where people had same issue (not
with synpdf). It's related to D7.

#3 Re: PDF Engine » [Ignore] Drawing. Wmf containing image » 2025-02-07 09:02:11

@rvk
I am simply using code from the thread titled
"Render metafile....... ". It's second in the sticky
List.

To confirm the issue I created a wmf file with images of
1 inch height. on A4 size page. Last image would
get skipped.

Please note I have not tried this on any other version.
Only D7.

#4 PDF Engine » [Ignore] Drawing. Wmf containing image » 2025-02-07 05:17:22

sameerpandit
Replies: 5

Hi,

I am use Synpdf with D7.

I am drawing wmf on page canvas. However
If my WMF file contains image at bottom of
Page (approx. below. 6 inches) then it won't
Show in pdf.

I tried to trace the issue & found that the enumeration
Function skips the image.

Is this issue related to Delphi 7 ?
Is any workaround possible?

Thanks.

Board footer

Powered by FluxBB