79803938

Date: 2025-10-29 15:10:20
Score: 0.5
Natty:
Report link

I know I'm late, but I just stumbled upon the same issue. I'm using OpenPDF-1.3.33, and by default cell's element is aligned to the left.

You need to make

p.setAlignment(Element.ALIGN_CENTER); // not Element.ALIGN_MIDDLE
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: SoldierKB