Javascript saveAs() parameter bug  SOLVED

Forum for the PDF-XChange Editor - Free and Licensed Versions

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

Post Reply
askelly
User
Posts: 37
Joined: Wed Mar 15, 2017 4:01 pm

Javascript saveAs() parameter bug

Post by askelly »

PDF-XChange Editor seems to be ignoring the bCopy parameter of the javascript saveAs() function. When bCopy is set to true, a copy of the current file should be created but the currently opened file should remain active in the editor. When bCopy is set to false, a copy of the current file should be created and then become the currently opened file in the editor (after saving and closing the original file). PDF-XChange Editor 6.0.321 is always behaving as if bCopy is false.

Code: Select all

this.saveAs({cPath: "/server/share/filename.pdf", bCopy: true});
User avatar
yogi108
User
Posts: 74
Joined: Thu Mar 09, 2017 9:13 am
Location: Austria, Theiß
Contact:

Re: Javascript saveAs() parameter bug

Post by yogi108 »

Hi,

I can confirm that the following just tested with extracted pages - document not named -
does not work as desired:

Code: Select all

this.saveAs({
cPath: "/g/myDoc.pdf",
bPromptToOverwrite: true,
bCopy: true
});
The not saved document will be saved under cPath and gets the new name also ....

kind regards,
"You cannot know the meaning of your life until you are connected to the power that created you.”
Shri Mataji Nirmala Devi, founder of Sahaja Yoga
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17948
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: Javascript saveAs() parameter bug

Post by Tracker Supp-Stefan »

Hi askelly, yogi108,

I am checking with our devs now and asking them to take a look at the discussed problem.
We will post back here as soon as we have further news!

Regards,
Stefan
User avatar
Ivan - Tracker Software
Site Admin
Posts: 3550
Joined: Thu Jul 08, 2004 10:36 pm
Location: Vancouver Island - Canada
Contact:

Re: Javascript saveAs() parameter bug  SOLVED

Post by Ivan - Tracker Software »

The issue is fixed in build 322 which should be available in few days.
Tracker Software (Project Director)

When attaching files to any message - please ensure they are archived and posted as a .ZIP, .RAR or .7z format - or they will not be posted - thanks.
User avatar
yogi108
User
Posts: 74
Joined: Thu Mar 09, 2017 9:13 am
Location: Austria, Theiß
Contact:

Re: Javascript saveAs() parameter bug

Post by yogi108 »

Cool!

Thanks a lot :-)

kind regards,
"You cannot know the meaning of your life until you are connected to the power that created you.”
Shri Mataji Nirmala Devi, founder of Sahaja Yoga
User avatar
Will - Tracker Supp
Site Admin
Posts: 6815
Joined: Mon Oct 15, 2012 9:21 pm
Location: London, UK
Contact:

Re: Javascript saveAs() parameter bug

Post by Will - Tracker Supp »

:D
If posting files to this forum, you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded.
Thank you.

Best regards

Will Travaglini
Tracker Support (Europe)
Tracker Software Products Ltd.
http://www.tracker-software.com
Post Reply