Welcome Guest Search | Active Topics | Sign In | Register

Page Size Issues Options
Silviu
Posted: Tuesday, August 14, 2012 6:13:29 AM
Rank: Newbie
Groups: Member

Joined: 8/9/2012
Posts: 6
I am using the Page Size property to retrieve the width and height of the pages in an existing PDF document. When viewed in Adobe Reader, the pages are in Portrait mode, and the Page Size is displayed as : 8.36in X 11.69in.

However, when I query the page properties programatically, the witdh and height with

doc.Pages[0].Size.Width, doc.Pages[0].Size.Height

the two values seem to be inverted. Any idea what could be causing this to occur?
eo_support
Posted: Tuesday, August 14, 2012 9:44:17 AM
Rank: Administration
Groups: Administration

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

No. We can not think of anything that can cause this. If you can send us the file we can look into the file and see what we can find. We will PM you as to where to send the file.

Thanks!
eo_support
Posted: Tuesday, August 14, 2012 10:07:54 AM
Rank: Administration
Groups: Administration

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

We looked into the file that you sent to us. The reason that the page displays differently than what Pages[0].Size returns is because the page has a "Rotate" attribute set to 270 degrees. So the paper size is indeed landscape. However the additional "Rotate" attribute tells PDF Viewer to rotate it when display/print the page.

Thanks!
Silviu
Posted: Tuesday, August 14, 2012 10:09:36 AM
Rank: Newbie
Groups: Member

Joined: 8/9/2012
Posts: 6
Interesting. So it's a peculiarity of this file. Thanks a lot!
eo_support
Posted: Tuesday, August 14, 2012 10:32:30 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,195
You are very welcome. Please feel free to let us know if there is anything else.

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.