startMetaPrintJob() in the webclient

Hello,

i’ve a question about startMetaPrintJob() & endMetaPrintJob() in the webclient.
How can i save the pdf in the browser?

plugins.file.showFileSaveDialog() doesn’t work in the web.

My method looks like this:

var success = plugins.pdf_output.startMetaPrintJob();
if(success)
{
....
var vMedia = plugins.pdf_output.endMetaPrintJob();
}

vMedia is a byte-array, but what can i do with this in the web?

Thanks,
Alex


Alexander Stefan
Dr. Maison & Partner GmbH
www.servoy-plugins.de
www.maison-partner.de

Let user view and then save the PDF by clicking the disk icon in the upper left corner of the Acrobat Reader window.

http://www.acords.com/Flash/HowToFillFo … lForm.html

Dean

hello Dean,

thank you for your help!
Can you give me some lines of code to explain how i can open the pdf in Acrobat Reader when i’m in the browser?

Thanks!
Alex

Create a “pdf” folder in the server ROOT directory. Place your pdf in “thepdfblob”:

var thepdfblob
var installdir = java.lang.System.getProperty("user.dir")
var rnd =  Math.round(Math.random()*373840329493398)
var filepath = installdir + '/server/webapps/ROOT/pdf/pfc' + rnd + '.pdf'
plugins.file.writeFile(plugins.file.convertToJSFile(filepath), thepdfblob)
if (application.getApplicationType()==5)
{
	application.showURL('/pdf/pfc'+rnd+'.pdf','_self')
}
else
{
	application.showURL(filepath,'_self')
}

Dean

cool!
it works!
thank you very much!

greetings,
Alex

Just noticed that your MailPro plugin now provides access to Google e-mail.

That’s cool!

Dean