Questions tagged [itextpdf]

itextpdf is part of the package name of iText, a PDF library available on itextpdf.com

Questions about the Java version of iText and the C# version of iText (aka iTextSharp) are usually posted using the tag.

227 questions
1
vote
1 answer

Fitting a JTable in an iText PDF Document

I have a JTable that has four columns. I am using iText libraries to print PDF documents with data from the JTable. The problem is that the JTable is not showing properly in the PDF. I have searched on Google and came across the same situation here.…
CN1002
  • 1,115
  • 3
  • 20
  • 40
1
vote
1 answer

create pdf dynamically and sign it using itext pdf

I am dynamically creating a PDF document, add a signature field and afterwards trying to sign it. The signing works properly, but i am getting an exception: "certfied by %, invalid signature and signature contains invalid data" import…
Ajay kuar
  • 13
  • 1
  • 4
1
vote
1 answer

Converting PDF with form to PDF without form

i have a PDF template containing a form. At present, I'm using itextpdf to fill the form fields, and save the resulting pdf. Is there a way to get completeley rid of the pdf form (i.e. converting the pdf to a form-free pdf containing the inserted…
Mr.Radar
  • 775
  • 1
  • 11
  • 32
1
vote
1 answer

itextpdf acrofields format as Percentage

I use ITextPdf feom c# code. I use acrofields to populate a form with data. I am losing my formatting. Stream os = new FileStream(PDFPath, FileMode.CreateNew); PdfReader reader = new PdfReader(memIO); PdfStamper stamper = new PdfStamper(reader, os,…
Arne
  • 11
  • 4
1
vote
1 answer

iTextPdf Page size not set to custom size

I have been using the old itext jar (com.lowagie) to generate some pdfs from image files. But when I upgraded to the itextpdf jar (5.5.0) the page size ends up being set to A4 (even though I call doc.setPageSize(rectangleOfCustomSize)). When I look…
Mark.ewd
  • 694
  • 1
  • 8
  • 22
1
vote
1 answer

How to adjust the page height to the content height?

I'm using iTextPDF + FreeMarker for my project. Basically I load and fill an HTML template with FreeMarker and then render it to pdf with iTextPDF's XMLWorker. The template is: …
BackSlash
  • 21,927
  • 22
  • 96
  • 136
1
vote
2 answers

Loading Fonts from Jar while writing PDF-A (archive) file

I am using PdfAWriter to create PDF-A (PDF Archive format) file and using .ttf to embed fonts in PDF. My TTF files are under config folder . And when I try to create font like below it works in local Font BOLD_10 =…
1
vote
0 answers

How to let user specify pdf location using iText?

I made a program that would generate reports. The user is then allowed to save that report in a pdf file format. I want to know if there's a way of letting the user specify which location to save that file. I am using iText on Netbeans. Thank you…
skinny
  • 237
  • 1
  • 2
  • 9
1
vote
1 answer

iText PDF body content Overlapping on Footer part

I use itextpdf-5.5.3 version. When I generate PDF and use PdfPTable it overlapped on Footer part. Some Code for PDF. writer=PdfWriter.getInstance(document, out); document.setPageSize(PageSize.A4); document.setMargins(50, 45, 50,…
Lalit Bhudiya
  • 4,332
  • 4
  • 26
  • 32
1
vote
0 answers

Contribution for support of Hindi (Indian language) in itextpdf

I was looking for Hindi language support in my project using itextpdf version 5.3.2 but unfortunately, I have observed there is no such thing present. I have seen many blogs for Hindi support where itext has asked developers to contribute but a few…
saurabh2208
  • 72
  • 1
  • 1
  • 7
1
vote
1 answer

How to draw a path on pdf canvas by using itext pdf?

I am implementing pdf editing application by using itextpdf. I added a text into pdf and I am drawing a name on android system canvas by using canvas.drawPath() method.Like that I want to draw a names on pdfCanvas is it possible?. I tried some of…
user123456
  • 123
  • 1
  • 15
1
vote
2 answers

PageSize of PDF always the same between landscape and portrait with itextpdf

I have a PDFReader which contains some page in landscape mode and other in portrait. I need to distinct them to do some treatment... However, if I call the getOrientation or getPageSize, the value is always the same (595 for pagesize and 0 for…
Jean-François Savard
  • 20,626
  • 7
  • 49
  • 76
1
vote
1 answer

underline justified pdf text with itextpdf

I am trying to underline justified test in a pdf with itextpdf and I think I have uncovered a bug, and I'd really like a work around. When I call getBaseline() as described on the mailing lists the underline extends far passed the end of the text…
user833970
  • 2,729
  • 3
  • 26
  • 41
1
vote
0 answers

itextpdf diacritics ț, ă and ș excluded from the document visible signature text

I am working on a project where I use itextPdf for digitally signing pdf documents. The signing works just fine except the fact that diacritics (ț, ă and ș) are not displayed in the pdf signature appearance layer text. For instance if I sign a…
inniko
  • 21
  • 1
  • 3
1
vote
1 answer

Is it possible to set only owner password while using setEncryption method in iText?

Is it possible to set owner password as some value and user password as null or empty while using set encryption method of PdfWriter class? I tried using code something like this String OWNER = "test"; …
TechnoCrat
  • 2,055
  • 4
  • 23
  • 35