Hoping someone can help me with this. I am trying to convert web pages (html/css) containing job descriptions to PDF’s to display on my site. I’m using a 3rd party site to do this for me. Works great. When the user enters a URL an AJAX request is sent to the 3rd a party url with the user input url, my api code, and some formatting instructions and the site sends me back a string of the PDF. I tested this by having it send me back a file and it worked great. Now the tricky part. I have the string in the div where I need it to be displayed on my page. The problem, I can’t decode it. I’ve tried several methods (atob() - returns can’t decode Latin 1 error, other methods tell me my URI is malformed and the list goes on). Any guidance would be much appreciated.
The purpose for this is I want to retain the state of the page I’m showing, essentially just need a snap shot to show on my page. If anyone has a better method to accomplish this I’m open to anything. Let me know if you have questions or I can elaborate further. Thanks!!!
via Ryan Freude
No comments:
Post a Comment