Welcome Guest Search | Active Topics | Sign In | Register

PDF Page To Png or EMF Options
Lionello Giampaolo PROMETEO SRL
Posted: Monday, January 29, 2024 10:00:15 AM
Rank: Member
Groups: Member

Joined: 11/8/2021
Posts: 21
Good morning,
If we define a customised screen resize on Windows at 135% when exporting the image of a page in jpg format with:
oImage = GetPageImage(PageNumber - 1, Resolution)
oImage.Save(DestFileName, System.Drawing.Imaging.ImageFormat.Jpeg)
the exported image is correct.
If instead we use Render.RenderAsEMF(PageIndex - 1, DPI) it adds a margin to the right and bottom of the image.
How come?
Are we doing something wrong?
Lionello Giampaolo PROMETEO SRL
Posted: Tuesday, January 30, 2024 12:39:51 PM
Rank: Member
Groups: Member

Joined: 11/8/2021
Posts: 21
Need further information?
eo_support
Posted: Tuesday, January 30, 2024 2:14:02 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,217
Hi,

We are still looking into this. We will reply here again if we need any additional information.

Thanks!
eo_support
Posted: Friday, February 2, 2024 1:35:34 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,217
Hi,

Please try to enable high DPI aware in your application and see if it correct the problem for you. Please see this thread for sample code:

https://www.essentialobjects.com/forum/postst11391_PageImages-are-blurry.aspx

We will work on our end to automatically adjust based on whether high DPI aware is enabled so that such code would not be necessary in future build.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.