Relative Content

Tag Archive for pdfbox

PDFBox 3 adds padding before text

I’m experiencing an issue with Apache PDFBox version 3 where it seems to add padding or a blank line before rendering text. This was not the case with PDFBox version 2. I have been using the PDPageContentStream class to render text, and the same code that worked perfectly in version 2 now introduces extra spacing in version 3. Has anyone had this sort of problem and please what is the solution?

PDFBox 3 adds padding before text

I’m experiencing an issue with Apache PDFBox version 3 where it seems to add padding or a blank line before rendering text. This was not the case with PDFBox version 2. I have been using the PDPageContentStream class to render text, and the same code that worked perfectly in version 2 now introduces extra spacing in version 3. Has anyone had this sort of problem and please what is the solution?