Skip to content
Advertisement

Tag: pdfbox

Can’t get a image from resources

I have problem to get an image from another package of my Eclipse project! I saw this post here My code is this CreateTableOnPDF.java: I getting this exception: I don’t know what I am doing wrong? Maybe is the a lot hour a have spend already infront of my monitor. Here is my project structure: Thanks for your attention and

Extract all text with string positions from a PDF

This may seem an old question, but I didn’t find an exhaustive answer after spending half an hour searching all over SO. I am using PDFBox and I would like to extract all of the text from a PDF file along with the coordinates of each string. I am using their PrintTextLocations example (http://pdfbox.apache.org/apidocs/org/apache/pdfbox/examples/util/PrintTextLocations.html) but with the kind of pdf

Watermarking with PDFBox

I am trying to add a watermark to a PDF specifically with PDFBox. I’ve been able to get the image to appear on each page, but it loses the background transparency because it appears as though PDJpeg converts it to a JPG. Perhaps there’s a way to do it using PDXObjectImage. Here is what I have written thus far: Answer

Advertisement