.fdf after 'this.exportAsFDF' failed

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
PeMü
User
Posts: 6
Joined: Fri Mar 27, 2020 8:51 am

.fdf after 'this.exportAsFDF' failed

Post by PeMü »

in Java-Script-Konsole :
I get the file I want
when called:
this.exportAsFDF(true, true, null, false,"werte.fdf");
but
With New Process
.StartInfo.WindowStyle = ProcessWindowStyle.Hidden
.StartInfo.FileName = PdfXChExe
.StartInfo.Arguments = " /runjs: Log =yes " &
Chr(34) & fdf_js & Chr(34) & " " &
Chr(34) & pdf_infile & Chr(34)
.Start()
.WaitForExit()
End With
fdf_js contain: this.exportAsFDF(true, true, null, false,"werte.fdf");
pdf_infile heißt : "E:\Dokumente\pbeakk.pdf"
message in LOG:
------ Document "E:\Dokumente\pbeakk.pdf": ------
Result[OK]:
>
<
===========================================================================================================

but "E:\Dokumente\werte.fdf"
is not present.

What's my mistake?
User avatar
Vasyl-Tracker Dev Team
Site Admin
Posts: 2351
Joined: Thu Jun 30, 2005 4:11 pm
Location: Canada

Re: .fdf after 'this.exportAsFDF' failed

Post by Vasyl-Tracker Dev Team »

Hi PeMü.

I guess the problem was caused by whitespace between "/runjs:" and "Log" parts. Please avoid using extra spaces when it's unnecessary.

for example I tried this in system's CMD utility:

PDFXEdit.exe /runjs:Log=yes "e:\Dokumente\script.js" "e:\Dokumente\pbeakk.pdf"

Cheers.
Vasyl Yaremyn
Tracker Software Products
Project Developer

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
PeMü
User
Posts: 6
Joined: Fri Mar 27, 2020 8:51 am

Re: .fdf after 'this.exportAsFDF' failed

Post by PeMü »

Thank you, it worked.
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17765
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

.fdf after 'this.exportAsFDF' failed

Post by Tracker Supp-Stefan »

:)
Post Reply