pdfbox Questions

6

Solved

I want to use PDFBox for printing PDF files created by iText. I have tried this successfully with PDDocument class and its method print(). You can find documentation here: http://pdfbox.apache.org/...
Reinforce asked 5/9, 2013 at 12:40

5

Solved

I want to generate the image(thumbnail) from pdf file just like done by WhatsApp as shown below I have tried PDFBox (https://github.com/TomRoush/PdfBox-Android) Tika (compile 'org.apache.tika:t...
Sacristy asked 8/8, 2016 at 11:45

3

I have an existing PDF file that I would like to convert to excel file using python script. Currently using PDFBox, however there are multiple errors similar to the following: org.apache.pdfbox.pd...
Strengthen asked 13/11, 2019 at 2:47

4

Solved

I am trying to extract the hyperlink information from a PDF using PDFBox but I am unsure how to get for( Object p : pages ) { PDPage page = (PDPage)p; List<?> annotations = page.getAnnot...
Conglomerate asked 26/7, 2016 at 10:37

4

Solved

We are planning to migrate our pdf generation utilities from iText to PDFBox (Due to licensing issues in iText). With some effort, I was able to write and position text, draw lines etc. But creatin...
Saturn asked 21/1, 2015 at 4:18

2

Digital text with text and background imageI am trying to digitally sign pdf file using PDFBox in Java with visible text to appear on page similar to one that gets created when manually created in ...
Kuching asked 1/6, 2017 at 15:21

3

Solved

I create a PDF from HTML with jsoup and OpenHTMLToPDF. I have to use a different font in my PDF to have non-latin glyphs covered (see here). How can I embed my font correctly? Simplified program re...
Deeann asked 25/3, 2019 at 13:48

5

I am trying to retrieve a File or InputStream instance from PDDocument without saving a PDDocument to the file system. PDDocument doc= new PDDocument(); ... doc.save("D:\\document.pdf"); Fi...
Bowlds asked 3/6, 2013 at 8:24

3

I want to write some content in my PDF using PDFBox. Once the page height is less than the margin I need to create another page. I want to retain the cursor information. I s there a way through whi...
Comptroller asked 31/8, 2015 at 10:17

3

Solved

I can insert simple text like this: document = new PDDocument(); page = new PDPage(PDPage.PAGE_SIZE_A4); document.addPage(page); PDPageContentStream content = new PDPageContentStream(document, pag...
Marquita asked 17/5, 2012 at 17:0

2

I'm trying to extract the signature image from a PDF signed with Adobe Sign. Not sure how Adobe adds this image. I have tested in Java with iText and PDFBox. Normally when you traverse through the...
Hargeisa asked 29/8, 2023 at 17:22

2

I am following a tutorial online. I am working with PDFBox with Eclipse and am having issues with loading the font that is suppose to be in the libraries. I've loaded all 9 jars into my external li...
Rydder asked 19/10, 2021 at 18:17

3

Solved

I am currently trying to grab text from a PDF that is already uploaded and accessed through a link by using PDFBox and Selenium. I used this as a source: http://www.seleniumeasy.com/selenium-tutori...

2

I am trying to create a PDF from HTML content. public byte[] generatePdf(final XhtmlPDFGenerationRequest request) { ByteArrayOutputStream baos = new ByteArrayOutputStream(); PDDocument documen...
Musketeer asked 31/10, 2013 at 17:54

8

Solved

When trying to print a PDF page using Java and the org.apache.pdfbox library, I get this error: PDFBOX : U+000A ('controlLF') is not available in this font Helvetica encoding: WinAnsiEncoding
Tutu asked 9/10, 2017 at 10:44

9

Solved

In my application I have to fill a predefined PDF form with data from DB. We are using Java and Pdfbox. The filling itself is not a problem. The problem is that in resulting PDF-file all texts in ...
Supersonic asked 30/8, 2012 at 14:5

2

Is there a way to create a table of contents using Java PDFBox library? The table of contents should be clickable (jump to the right page) Thanks.
Caloric asked 8/5, 2014 at 21:42

4

Solved

I have this java code: try { PDFTextStripper pdfs = new PDFTextStripper(); String textOfPDF = pdfs.getText(PDDocument.load("doc")); doc.add(new Field(campo.getDestino(), textOfPDF, Field.St...
Lassalle asked 11/2, 2011 at 11:31

7

Can someone give me an example on how to use Apache PDFBox to convert a PDF file in different images (one for each page of the PDF)?
Amygdala asked 27/4, 2014 at 17:25

2

Solved

I'm currently using Java and the PDFBox library to create some PDFs on the fly. I need to be able to set the character spacing/tracking of some text but can't seem to figure it out. It looks as t...
Fasano asked 9/5, 2015 at 20:23

4

Solved

I'm attempting to open an existing pdf file and then add another page to the pdf document from within an Android application. On the added page, I need to add some text and an image. I am wanting ...
Uranic asked 24/1, 2012 at 0:36

6

Solved

I want to convert PDF to SVG. I have written my own Java program using the Apache PDFBox and Batik libraries PDDocument document = PDDocument.load( pdfFile ); DOMImplementation domImpl = GenericDO...
Introit asked 8/11, 2010 at 0:55

1

I am getting java.lang.OutOfMemory error when I am trying to merge one 44k pages pdf. I am fetching all the 44k pages from my DB in chunks and trying to merge with my main document. It is processin...
Shenyang asked 3/12, 2022 at 10:19

2

I have to merge two pdf Files using PdfBox of Apache. I have taken physical pdf files to do so. Below is the code: PDFMergerUtility ut = new PDFMergerUtility(); ut.addSource(path1); ut.addSource(p...
Promoter asked 2/6, 2016 at 10:43

4

Solved

How to remove metadata on PDF using Java? Is IText will do or any other frameworks have ability to do this? I didn't find any examples or Classes which will remove metadata using IText. If anybody...
Zaremski asked 22/1, 2014 at 22:32

© 2022 - 2025 — McMap. All rights reserved.