The scenario I have is:
I am trying to integrate a web service called PDFreactor, which takes an amount of HTML and converts it to a PDF.
- I want a button on the front end that when clicked:
- The server POSTS the html on the current page to the PDFreactor server endpoint via a REST service
- Then the server sends the PDF to the client
I’m not sure what is the best way to approach this. I had a look at REST assets but i’m not sure how the REST asset would be able to get document.documentElement.outerHTML. If I pass in a hardcoded URL to the REST body, the web service doesn’t get access to every element in the DOM because some elements are generated after the page loads.
I am very green, so any advice would be greatly appreciated.