I am trying to output the of a JSF page to a pdf file. The converted HTML tags from JSF pages are written to the pdf file instead of the contents.
Have been trying to resolve this for a while. Any help is very much appreciated.
My intend is to store the byteArray. Just to make sure the bytearray content is good, I am creating this temporay pdf file.
The content written to the pdf file is (Full file is not written, maybe buffer size issue):