Looking to convert some HTML into a PDF file using a service that requires form-data as the payload.
Is there a way to extract HTML from the DOM and save it as a file for use in the payload?
<p>some other HTML</p>
<div id="content">
some content
</div>
const html = document.getElementById('content').innerHTML;
const builder = new Blob([html], {type: 'text/html'});
Encountering an issue that states: The format of the request must be of multipart/form-data type.