Category "pdfbox"

Is there a way to set bounding box of figure in PDFBox

I'm trying to create a PDF that's PAC3 compliant and I need to add images to the PDF. I was able add an image to the PDF but when I run the PDF in PAC 3. I get

How to edit the contents of an existing PDF programmatically in JAVA [closed]

Let's assume I have an existing pdf with a fixed header and footer and blank body like the below image And I have to add content to the body(

How to fix 'Unexpected byte range values defining scope of signed data' using pdfbox

How to fix 'Unexpected byte range values defining scope of signed data. Details: The signature byte range is invalid' while adding external signature in multipl

Find blank space(rectangle) for signature field using PDFBox

When you want to create a visible signature using PDFBox you need to create a Rectangle2D object. Rectangle2D humanRect = new Rectangle2D.Float(100, 200, 150, 5

What is the proper way to add rich text annotation in PDFBox?

I add three annotations into empty PDF: call .setContents("...") call .setRichContents("..."); call .setContents("..."); and .setRichContents("..."); First anno

PDFBox - How to change encoding from WinAnsiEncoding to Unicode?

I am trying to find a way I could change the WinAnsiEncoding to Unicode, I've tried setting font like this, PDDocument doc = new PDDocument(); PDPage page = n

Rotating each page in the PDF using java

Hi folks i have a few use cases i need to cover while rotating the page in the PDF . I need to check each page rotation value and rotate it to 0 degree. when i

PDFBox render image misses content

When using PDFBox, we encounter an issue where if we call render on a PDDocument, it sometimes loses content, such as fonts or certain shapes. Having dug into

How can I fill empty space with null in a pdf? using pdfbox

I am using Java PDFBOX to read a pdf It is a very long pdf with more than 40 pages, and I need to extract more than 100 elements on each page, doing it manually

Extracting exact table data from PDF

I am trying to extract each row of my table from a pdf file I created before. The problem I have, is that empty cells, which I thought would be saved as 'null'