1

I would like to use jQuery to POST for a dynamically generated PDF and display it on the same page.

I have successfully been able to POST the data to a PDF generating script (PHP), create a randomly named PDF file, and return that for jQuery to put into an <object></object> however that generates two requests. I also don't want to have jquery set an <object> src to generate.php?data=DATA_HERE due to the fact that there is a lot of data and I would rather POST

I would like to fetch the binary PDF data with jQuery and embed it into the DOM. Is this possible?

user3621014
  • 271
  • 1
  • 2
  • 4

0 Answers0