sending a pdf (form) by email using JS

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

cbswiss
User
Posts: 2
Joined: Fri Jan 04, 2013 9:09 am

sending a pdf (form) by email using JS

Post by cbswiss »

Good morning and a happy new year,

I hope to be in the right place here.
Right from the start: I am new to PDX Xchange /Viewer.

My problem is that I have built a form within Acrobat using some javascript to check fields and doing some calculations. Those work perfectly in my PDF XChange Viewer. However I also created a button that sends the PDF by E-Mail using the default mail client with a given subject and body text (generated from the form entries). This button works as expected in Adobe Reader but has NO function at all in PDF XChange Viewer.

Is that a common issue or is there a workaround? Does anyone have an idea how to get this done so that it works for both, Adobe Reader and XChange Viewer?


The code I used for the button is this:

var cToAddr = "xx@yy.de";
var cCCAddr = ""; //this.getField("ClientEmail").value;
var cBody = "blablabla.\n" + "blablabla.\n";

var Subject1 = this.getField("Datefield").value;
var Subject2 = this.getField("SomeNumber").value;
var Subject3 = this.getField("SomeString").value;
var Dat = "blabla: ";
var Kom = ", bla.: ";
var Bau = ", blabla: ";

this.mailDoc({
bUI: true,
cTo: cToAddr,
cCc: cCCAddr,
cSubject: Dat + Subject1 + Kom + Subject2 + Bau + Subject3,
cMsg: cBody
});


Thank you in advance for helping out.

Best regards
Stephan
User avatar
Ivan - Tracker Software
Site Admin
Posts: 3586
Joined: Thu Jul 08, 2004 10:36 pm

Re: sending a pdf (form) by email using JS

Post by Ivan - Tracker Software »

In current build of V2.5 the function mailDoc is not implemented. Will implement in the next build.
PDF-XChange Co Ltd. (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.
cbswiss
User
Posts: 2
Joined: Fri Jan 04, 2013 9:09 am

Re: sending a pdf (form) by email using JS

Post by cbswiss »

thank you for that information. Can you predict a possible release date for that next release?

Is there possibly some workaround for the meantime?
User avatar
John - Tracker Supp
Site Admin
Posts: 5223
Joined: Tue Jun 29, 2004 10:34 am

Re: sending a pdf (form) by email using JS

Post by John - Tracker Supp »

I am afraid there is no work around and the next release is due before the end of this month if all goes to plan

thanks for your patience.
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
Tracker Support
http://www.tracker-software.com