PDF-XChange Viewer SDK for Developer's
(ActiveX and Simple DLL Versions)
Moderators:PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange
Just tested this code (C#) - and it does work as expected - giving me the Trim box values, and not deleting any white space. I worked with the Full Demo sample project and in single file mode - hence the 0 for documentID.
- I have your pdf viewer AX in my program.
- I load a pdf into the pdf viewer.
- I execute the javascript command (see my first post in this thread).
- The pdf viewer automatically deletes the whitespace.
My sample application is doing the same:
- loads the AX control
- then I open a file inside it
- execute the JS code just as you provided it
- and it returns the expected string, and no white space is removed.
Please double check your code and see if you are not performing additional operations on the same file which could cause this white space removal.
I also tried the JS in the end user viewer - and it's behaving properly there as well.
I also presume that you have double checked and confirmed that you are using build 201.
I've checked it twice and thrice and found it as a command in a branched function among code which was commented out. I'm very sorry for this awkwardness
But... what is with my thread about Tools.Active.ZoomIn?