I'm trying to create a PDF from a template in my backend and then serve it to the user when it needs to download it. The only problem that I have is that one of the fields in that template must have HTML source in it and must be rendered. Is there any way to add HTML source in that field and render it ? I am currently using PDFBox.
Asked
Active
Viewed 77 times
0
-
1I suspect you mean XHTML for richtext. This is done with `setRichTextValue()`. Rendering these (I assume you mean create the appearance stream from there) is not supported. – Tilman Hausherr Sep 02 '19 at 09:02
-
Hi, thanks for answering. Do you know weather if I return the pdf as embedded in an html page then will that field be rendered ? – Matthew Sep 02 '19 at 10:00
-
Never mind the previous comment. Do you know any other tool that can serve this purpose ? Thanks. – Matthew Sep 02 '19 at 10:14
-
1) if with PDF.js (firefox) then no (don't know about Chrome), 2) no. – Tilman Hausherr Sep 02 '19 at 10:19