OpenPDF is a freeware and open-source tool for viewing and modifying PDF documents and other PDF objects. It is a fork of the last non-AGPL version of iText.
Questions tagged [openpdf]
94 questions
68
votes
4 answers
What is the difference between lowagie and iText?
What is the difference between lowagie and iText? Is this just version difference or an upgrade to the library. Which one is recommended to be used?

Adeeb Cheulkar
- 1,128
- 2
- 10
- 22
44
votes
7 answers
Compare these products for PDF generation with Java given requirements inside: iText, Apache PDFBox or FOP?
There were questions on that but not recently and technology must have gone ahead since then.
Requirements:
generating pdf documents based on predefined template (I can use either pdf forms or xsl-fo)
being able to fill textual data
being able to…

topchef
- 19,091
- 9
- 63
- 102
10
votes
1 answer
DSSException: Revocation data is missing
I'm using DSS to sign Pdf documents. I need these docs to be timestamped and LTV enabled (PAdES LTV enabled).
I'm running into some issues regarding the Revocation data.
I'm kinda new to this domain so bear with me.
I'm following the instructions…

Asfourhundred
- 3,003
- 2
- 13
- 18
9
votes
1 answer
Adding Text/Annotations into existing PDF file and View/Rendering the output in android
I am working on a pdf editor.
I have made my changes on pdf files with OpenPDF core that is based on iText
And I am viewing the Pdf file with AndroidPdfViewer
My problems are:
Adding new annotations like text or tags or icons into an existing pdf…

Hamid Reza
- 624
- 7
- 23
5
votes
2 answers
How to convert HTML to Pdf with OpenPdf
How can I convert an HTML to PDF with OpenPDF?
For what I know, OpenPdf is a fork of Itext 4. Unluckily I can't find Itext 4 documentation.

Marco Sulla
- 15,299
- 14
- 65
- 100
4
votes
1 answer
iTextPDF to OpenPDF Integration
I've been trying to migrate from iText v5.5.11(License version) library to OpenPDF v1.2.8(Open Source) library.I think that both are having similar functionalities.
But,the renderImage function from iText library is missing in OpenPDF library and…

karthi keyan
- 213
- 2
- 19
3
votes
1 answer
PDF formfield radiobutton syntax latex3 generation
I stumbled over the following PDF since my PDF library has problems with it. It contains what I would call a peculiar interpretation of the PDF specification thus the radiobutton is not working correctly in most viewers. However a standard could be…

Lonzak
- 9,334
- 5
- 57
- 88
3
votes
1 answer
Rectangular header and footer block on every page of PDF using OpenPDF
I am generating a PDF invoice report using OpenPDF. On the PDF, I have to set a rectangular block for header/footer on every page. I have used the HeaderFooter class to add header/footer on every page but this works only for a Phrase.
HeaderFooter…

java_maestros
- 296
- 2
- 13
3
votes
1 answer
Center/Align text in table cell with OpenPDF in Java
I am using OpenPDF 1.3.20 with Java and want to change the alignment of a text/paragraph in a table cell.
No matter what I tried so far changed the positioning of text anywhere.
I only learned that a text added as table.addCell("sometext") would…

Azrael
- 161
- 1
- 7
3
votes
2 answers
OpenPDF: Table not located in footer
When I add a table to the footer of the page, the footer resizes to the right size, however, the table does not stay within this footer, however it locates itself at the top of the page.
I have created a test scenario to illustrate what I…

Kasper Helsted
- 219
- 1
- 13
3
votes
1 answer
OpenPDF/iText corrupt documents
I've been trying to re-implement the concatenate example from OpenPDF 1.2.4 and 1.2.11 in Scala:
def mergePdfs(docs: Seq[Array[Byte]]): Array[Byte] = {
log.debug(s"merging ${docs.size} PDFs")
val output = new ByteArrayOutputStream()
val…

ILikeFood
- 400
- 2
- 8
- 22
3
votes
1 answer
Illegal reflective access operation warning in Java 10
I would appreciate some help to rewrite some Java code which uses reflection, to remove warning from the compiler on Java 10:
This is the Java method in question:
public static boolean clean(final java.nio.ByteBuffer buffer) {
if (buffer == null…

roschdal
- 103
- 1
- 9
2
votes
0 answers
How to embed OCR text from TIFF images into PDF documents using Java and OpenPDF?
I have scanned paper documents and OCR'ed them into text. I am creating PDF documents from groups of the TIFF images. I am using Java and OpenPDF. How can I embed the text behind the tiff image when creating a PDF in a manner that allows the…

user8862290
- 51
- 3
2
votes
1 answer
FlyingSaucer with openpdf doesn't render flex box correctly
I want to render a PDF document using latest FLyingSaucer
build.gradle:
implementation 'org.xhtmlrenderer:flying-saucer-pdf-openpdf:9.1.22'
Input HTML document (almost a copy from W3 schools):