Using version Prince 12 attempting to embed a base64 encoded PDF in HTML to be rendered as a PDF along with the rest of the HTML document but prince does not output the PDF data and generates a blank page.
There is no issue with getting the PDF to render correctly in the browser using HTML but any attempt at rendering using prince fails, here are the errors received along with the tags tried - these all work properly when viewing in a browser.
<iframe src="data:application/pdf;base64...." type="application/pdf"></iframe>
Recieve Error : error: Start tag expected, '<' not found
<embed src="data:application/pdf;base64..." type="application/pdf"></object>
prince: debug: loaded resource: type: yes(resource_type("application/pdf", [], unknown, no))
prince: data URL: warning: Unknown image MIME type: application/pdf
<object data="data:application/pdf;base64..." type="application/pdf"></object>
prince: debug: loaded resource: data URL
prince: debug: loaded resource: type: yes(resource_type("application/pdf", [], unknown, no))
There is no issue with getting the PDF to render correctly in the browser using HTML but any attempt at rendering using prince fails, here are the errors received along with the tags tried - these all work properly when viewing in a browser.
<iframe src="data:application/pdf;base64...." type="application/pdf"></iframe>
Recieve Error : error: Start tag expected, '<' not found
<embed src="data:application/pdf;base64..." type="application/pdf"></object>
prince: debug: loaded resource: type: yes(resource_type("application/pdf", [], unknown, no))
prince: data URL: warning: Unknown image MIME type: application/pdf
<object data="data:application/pdf;base64..." type="application/pdf"></object>
prince: debug: loaded resource: data URL
prince: debug: loaded resource: type: yes(resource_type("application/pdf", [], unknown, no))