|
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?
|
|
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!
|
|
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!
|
|
Rank: Newbie Groups: Member
Joined: 8/9/2012 Posts: 6
|
Interesting. So it's a peculiarity of this file. Thanks a lot!
|
|
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!
|
|