Xportability / css-to-pdf

Convert any HTML page or region to PDF - supports CSS, SVG, embedded XML objects, and more..
http://www.cloudformatter.com/CSS2Pdf
207 stars 77 forks source link

How do i redirect of the pdf is downloaded. Please help #67

Closed noman0911 closed 7 years ago

kbrown01 commented 7 years ago

It is not clear what you mean. If you examine the Javascript, you would see some things like this:

__postBackSuccess: function(Response) { jQuery(document).trigger( "xepOnlineStatus", ["Finished"]); var base64 = jQuery(Response).find("Result").text();

So at that moment the PDF is in the object base64 (in base64 encoding). Modify the Javascript so that you take that and post it to wherever you like, however you want. You could post to a service and store in a server, attach to an email, whatever you like. That is the PDF.

noman0911 commented 7 years ago

i mean after the pdf get downloaded I want to redirect to another page or show some message. How to do that?????

kbrown01 commented 7 years ago

Easy. Write it, Yourself. In the Javascript.

noman0911 commented 7 years ago

I did but than pdf does not get downloaded. Only redirect to that address.