RenderPageToGdPictureImageEx

Discussions about PDF management.
Post Reply
ldm
Posts: 1
Joined: Mon Dec 22, 2014 5:34 pm

RenderPageToGdPictureImageEx

Post by ldm » Mon Dec 22, 2014 5:50 pm

Hi,
I have a problem using RenderPageToGdPictureImageEx method.

I have a PDF in a GdPicturePDF object.
Dimensions of the PDF file read from Acrobat Reader are 220 x 309 mm.

My code:

Code: Select all

_oGdPicturePDF.GetPageHeight() returns 876
_oGdPicturePDF.GetPageWidth() returns 624
int _RasterPageID = _oGdPicturePDF.RenderPageToGdPictureImageEx(200, true);

_oGdPictureImaging.GetVerticalResolution(_RasterPageID) returns 72
_oGdPictureImaging.GetHorizonatlResolution(_RasterPageID) returns 72
Shouldn't it be 200 ?

This causes many problems using DrawRotatedText method...

Thank you all !

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: RenderPageToGdPictureImageEx

Post by Loïc » Mon Dec 22, 2014 6:28 pm

Hi,
Shouldn't it be 200 ?
Yes and no :)

Yes: If the page is raster based and embed a 200 DPI bitmap, or if the page is not raster based and required rasterization to be converted to bitmap.

No: If the page is raster based and embed a non 200 DPI image (this is your case).

Let me know if I am not clear enough.

With best regards,

Loïc

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest