Portrait/Landscape display issue

PDF-XChange Editor SDK for Developers

Moderators: TrackerSupp-Daniel, Tracker Support, Paul - Tracker Supp, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan

Forum rules
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.

When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
Post Reply
prime clinical systems
User
Posts: 211
Joined: Sun Aug 05, 2012 5:20 pm

Portrait/Landscape display issue

Post by prime clinical systems »

Hi, please see the included image, but basically I must be missing some setting, as this issue does not happen in end user editor, so I need some help.. I load a document that is in portrait, rotate 90, and shows fine as landscape, then reload the document, the content remains in landscape rotated, but the page size shows as portrait. I tried these settings to no avail:
' frmMain.PDFC.Inst.Settings.Item("PagesView.UseDocLayout").v = True
' frmMain.PDFC.Inst.Settings.Item("PagesView.RestoreLastView").v = True
' frmMain.PDFC.Inst.Settings.Item("DocView.RestoreLastLayout").v = True
Capture.PNG
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17948
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: Portrait/Landscape display issue

Post by Tracker Supp-Stefan »

Hello prime clinical systems,

Do you rotate the actual content, or just the view?
Can we see the snippet of code where you do this rotation?

Regards,
Stefan
prime clinical systems
User
Posts: 211
Joined: Sun Aug 05, 2012 5:20 pm

Re: Portrait/Landscape display issue

Post by prime clinical systems »

Not using code to rotate, using the rotate icon, not the green one which just temporaily rotates the view, the rotate that actually alters the image. it is command cmd.document.rotatePages. Is there a difference on how a document loads based on the method of loading? for example, I just use the .src = docpath command, not OpenDocFromPath

thanks
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Portrait/Landscape display issue

Post by Sasha - Tracker Dev Team »

Hello prime clinical systems,

Can this be reproduced in the FullDemo application? Or is this VB6 related issue?

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Post Reply