Web forum is in read-only mode. Login as active registered customer for write access
  Forum Search   New Posts New Posts

Export to PDF (EMF in a footer)

 Post Reply Post Reply
Author
Christian Hungbaur View Drop Down
New Member
New Member
Avatar

Joined: 11 Nov 2014
Posts: 29
Post Options Post Options   Quote Christian Hungbaur Quote  Post ReplyReply Direct Link To This Post Topic: Export to PDF (EMF in a footer)
    Posted: 14 Feb 2019 at 11:43am
Dear TMS Software team,

is it possible to improve the export to PDF (EMF picture in the footer) ?

Please check the link for the picture.

https://photos.app.goo.gl/WzNeUN3prcGqKpAZA


I sent an email with some attachments to your support email also.

Thank you in advance
Back to Top
Adrian Gallero View Drop Down
TMS Support
TMS Support
Avatar

Joined: 18 May 2010
Posts: 1212
Post Options Post Options   Quote Adrian Gallero Quote  Post ReplyReply Direct Link To This Post Posted: 14 Feb 2019 at 12:47pm
Hi,
There are 2 things going on here:
1. The resolution of the raster png that will be embedded in the pdf (pdf doesn't support EMF pictures which are a Windows-only file format, so we need to raster them)
You can change that by writing something like:

FlexCelConfig.DpiForImages = 1200;

Somewhere in your code. This is a static variable so it will affect all images in the app. 
Just watch out for the generated pdf sizes. They probably won't grow much, but this could depend on the type of images you have.

2. Sadly GDI+ doesn't antialias the text when converting EMF files to pdf, and we can't use any unmanaged API for this. So even when you up the resolution with the code in point 1., text won't be completely smooth. There is no way we know we can fix this without going unmanaged (and we really want to keep FlexCel a fully managed dll). But I think the results with higher dpi might be good enough.
Back to Top
Christian Hungbaur View Drop Down
New Member
New Member
Avatar

Joined: 11 Nov 2014
Posts: 29
Post Options Post Options   Quote Christian Hungbaur Quote  Post ReplyReply Direct Link To This Post Posted: 14 Feb 2019 at 2:18pm
Thank you for the tip.

Now it is fine. (FlexCelConfig.DpiForImages = 2400);
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down