Welcome Guest Search | Active Topics | Sign In | Register

Changing the Page Size not working in 18.0.55 Options
Tyler Miller
Posted: Saturday, October 13, 2018 2:00:55 PM
Rank: Advanced Member
Groups: Member

Joined: 1/22/2014
Posts: 38
Trying to swap the width to the height of a page and it doesn't work in 18.0.55 but does in newer versions:

document.Pages[i].Size = new PdfSize(document.Pages[i].Size.Height, document.Pages[i].Size.Width);

Our license extends to 18.0.55. This worked before. What are our options?
eo_support
Posted: Sunday, October 14, 2018 10:01:32 AM
Rank: Administration
Groups: Administration

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

Please use another PDF authoring tool to check the rotation setting of the page. Strictly speaking, a PDF page itself does not has a single "Size" value. There are a number of different values that defines different area/aspect of a page in the PDF file, with rotating being one of these values. We try to simply it by deriving a single Size property based on those different values when you get this property, and automatically adjust the multiple underlying values accordingly when you set this property. Your version does not support rotated page. So it might have appeared to you that it worked before but suddenly stops working, but most likely it's because it worked on "normal" files before for you but now you have a file with rotated page which your version does not support.

If modifying the rotated page for the input file or avoiding those files is an option for you, then you can do that and that should make it work the same as before. However going forward you should consider renewing your subscriptions. This is exactly why subscription exists ---- as we continue to work on the product, it gets better and better and is more capable of handling relatively rare/corner cases. Additionally, it would also give you tech support ---- as technically we are not obligated to support your question at all since your subscription has already expired.

Hope this helps.

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.