openhtmltopdf
openhtmltopdf copied to clipboard
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)!
EDIT: I tested the HTML fragment (in the end of post) in https://sandbox.openhtmltopdf.com/ and it shows the same behavior I described (try to select the line to see it happen)....
[version: 1.0.9-SNAPSHOT; commit: [ccd29f03ede2aecadac9c39fda95a5fedfb23645](https://github.com/danfickle/openhtmltopdf/tree/ccd29f03ede2aecadac9c39fda95a5fedfb23645)] I noticed that `font` CSS shorthand property doesn't work, while the corresponding `font-*` CSS properties do: [CssFont.pdf](https://github.com/danfickle/openhtmltopdf/files/6237287/CssFont.pdf) [CssFont.html.txt](https://github.com/danfickle/openhtmltopdf/files/6237286/CssFont.html.txt) Here are the declarations used: ```html /* This...
(Subject and problem changed. See below.) For various reasons we are inlining external resources before rendering PDF / PNG. ```css @font-face { font-family: "Roboto"; src: url(data:font/ttf;base64,AAEAAAASAQAABAAgR0RFRrRCsIIAAidIAAACYkdQT1P/...=); ... ```` This works...
If i have na element defined as `running` at the top of the page, and the content of this element is bigger than the page margin i get result where...
I have lots of German umlauts in my html file like this: `Zwölf Boxkämpfer` Trying to convert that file to PDF like mentioned here: https://github.com/danfickle/openhtmltopdf/wiki/Integration-Guide#minimal-usage leads to an error: `The...
Hi, I have tables heder rotated using a style: `.rotated-name { transform: rotate(-75deg); }`. When rotated, the table headlines are scattered. See the attachment. I also attached an HTML that...
when the page content is not full,be half or less,for example <div style="position:absolute ;bottom:10px"></div>,the style "position:absolute ;bottom:10px" does not good work,then the div's position is relative the bottom content position.
Looking for the support of optional content groups (OCGs, also known as PDF layers), I couldn't find any reference to `org.apache.pdfbox.pdmodel.graphics.optionalcontent.PDOptionalContentGroup` in OHTP: can someone confirm OCGs (and, more generically,...
``` bullet list item 1 bullet list item 2 nested bullet list item 1 double nested numbered list item 1 double nested numbered list item 2 nested buttlet list item...
Hi, when I was trying with page-break and pagination the table didn't break off cleanly instead the table column borders are still shown. Below would be the code from sandbox:...