rtfarte / OpenPDF

No longer actively maintained. Please send all pull requests to: https://github.com/librepdf/openpdf
Other
31 stars 12 forks source link

HTML's unordered list parsed and put into PdfCell doesn't have bullets #14

Open syakovyn opened 8 years ago

syakovyn commented 8 years ago

Hi,

I've prepared the test example showing an issue: https://gist.github.com/syakovyn/8a28ab096bf5fa160f0baf0c6559a24a

The attached PDF shows a workaround that has bullets, but without spaces; the original lists without bullets at all; and the required behavior (default one when creating lists programmatically) test.pdf

There are two issues here:

  1. With a Paragraph containing a List. Adding the Paragraph to a PdfCell causes the List items being rendered without bullets. A workaround is to add the List directly to PdfCell.
  2. With an HTMLWorker.parseToList method creating Lists with ListSymbol not having a space at its end.

Serhiy

ghost commented 8 years ago

Thanks for the bugreport. Perhaps you could please submit a pull request for a fix?

syakovyn commented 8 years ago

Working on it

ghost commented 8 years ago

Cool! If you could perhaps help us release OpenPDF to the public maven repo, that would be a very valuable contribution to the project. (issue #3) Thanks!