danfickle / openhtmltopdf

An HTML to PDF library for the JVM. Based on Flying Saucer and Apache PDF-BOX 2. With SVG image support. Now also with accessible PDF support (WCAG, Section 508, PDF/UA)!
https://danfickle.github.io/pdf-templates/index.html
Other
1.9k stars 355 forks source link

QR Code from Primefaces (JSF) page? #651

Open testing138 opened 3 years ago

testing138 commented 3 years ago

Hi all,

I have a question - maybe it´s completely wrong what I try to do: I have a XHTML page which includes a barcode from Primefaces: http://primefaces.org/showcase/ui/multimedia/barcode.xhtml?jfwid=d6c40

Should this code appearing for the current Open HTML to PDF implementation? Currently I have an issue with the session, Primefaces is saying that I have no valid session....

If change it to:, I got no exception, but the QR Code is also not showing... builder.withW3cDocument(doc, null);

I saw also this post here: https://github.com/danfickle/openhtmltopdf/wiki/Plugins:-1D-2D-Barcode-with-ZXing

But here seems like also "ZXingObjectDrawer" is not valid?

Can anybody help me?

syjer commented 3 years ago

hi @testing138 , it's hard to understand what you are trying to do.

could you show us the html input and the java code?