find out width and visibility of views on the left (like layers)

PDF-XChange Editor SDK for Developers

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Paul - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

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.
MaSeife
User
Posts: 20
Joined: Thu Jun 27, 2019 11:21 am

find out width and visibility of views on the left (like layers)

Post by MaSeife »

Is it possible to find out, if a view is visible on the left (e.g. layers) and how much space it currently needs (especially width)?

When I execute the following javascript (ctrl+J)

Code: Select all

var result = " ";
for (var key in this.innerDocWindowRect) {result = result + key + "=" +  this.innerDocWindowRect[key]+ "  ";  };
result;
I get something like '0=1622 1=368 2=3259 3=1700' as a result. After showing the properties pane on the right, one of the values changes (e.g. '0=1622 1=368 2=2959 3=1700'). But there are no changes to these values when views on the left are shown/hidden.

The values are used to compute the size of the area that contains the actual document/page.

The unresolved post viewtopic.php?p=199053 has a similar problem.