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
0
votes
0 answers

creating new page with document.newpage() method inside for loop

In this piece of code I am using iText to create a PDF file. I am trying to create multiple pages by looping over an ArrayList. The file is created but the data is not written properly and a new page is not created. int totalPageNo = 0; int…
surendra
  • 1
  • 1
0
votes
0 answers

How to rotate character 90 degrees clockwise with a font otf?

Recent, i bought a font type otf (*). Look in this font, i see many glyphs which are rotated 90 degrees clockwise as below : How to display character same as above (use ItextPdf) with font (*).
Han Kun
  • 73
  • 12
0
votes
1 answer

to trim page's whitespace using itextpdf

I have prepared a pdf which comprises of some data, followed by some whitespace. I don't know how large the data is,but i have to remove the whitespace in document,see the following code Note:documents contains only text Document document = new…
venky pup
  • 1
  • 3
0
votes
1 answer

acroform field values is not working in icepdf

I am working on a project that should read a pdf file/form that contains value filled up by a Java code. form.setField("permitnumber", p.getApplicationorno()); form.setField("amountpaid", p.getAmount_app()); …
silent_coder14
  • 583
  • 2
  • 10
  • 38
0
votes
1 answer

Unable to detect rotation using Itext PDF

I'm using ItextPdf PdfSmartCopy and PdfDictionary. I've to detect the rotation of the input pdf file, based on rotation I've to decide how much should I rotate in order to bring it to zero degree(Normal view). Generally if the user scan the file,…
dev123
  • 11
  • 1
  • 5
0
votes
1 answer

New iText Producer field causes validation failure

I switched from the old iText library to the iTextPdf library and noticed a problem. The new library sets the producer to a value that includes non-Unicode characters (windows TM symbol and copyright symbol). The problem is that validation programs…
Mark.ewd
  • 694
  • 1
  • 8
  • 22
0
votes
1 answer

java XMLWorkerHelper - NoSuchMethodError: com.itextpdf.text.pdf.PdfPTable.addCell

I am trying to convert html into pdf using itextpdf but it is giving nosuchmethoderror even i used latest version of itextpdf Dependency com.itextpdf.tool xmlworker
Dinesh Appuhami
  • 710
  • 1
  • 11
  • 24
0
votes
1 answer

iText PDF - Thread contention

I am using iTextPDF version 5.4.2 and i am having thread contention issues when there is heavy load. I am using IBM JDK 6 This is the problem, when there are multiple independent threads trying to generate different pdf files i see a contention on…
Joe
  • 33
  • 8
0
votes
1 answer

Cannot hide border of iText PDF Cell while putting a sub table into one parent PDFPCell

I am using itextpdf.text.pdf.PdfPTable for creating tables in PDF. But I cannot get rid of border of one pdfPcell. I have searched almost everywhere, but didn't get a solution. I can implement no border while i am using only below code- …
Ani
  • 87
  • 10
0
votes
1 answer

Can't delete file after calling FontFactory.getFont() method

I am using iTextPdf 5.5.3 to create PDF/A documents, I want the user to select custom fonts by uploading the .ttf file of the font, and becuase FontFactory.getFont() method only takes the font name as a string I have to write the uploaded file to…
Shahe
  • 964
  • 2
  • 13
  • 34
0
votes
1 answer

itextpdf-5.4.3 throws com.itextpdf.text.pdf.parser.InlineImageUtils$InlineImageParseException: EI not found after end of image data

I am receiving the EI not found error in this specific pdf found under https://bfs.ever-team.com/files/6fce4cef9769e40d1994e684a881d4bf/facture3_1.pdf. I am using itextpdf-5.4.3 jar and below is the code: com.itextpdf.awt.geom.Rectangle rec = new…
user2318955
  • 95
  • 10
0
votes
0 answers

split pdf using itextpdf vb.net code

I Have this code to split pdf file that I am using in a web application. It works fine for 1000 pages in the sense that it returns a web page after 1000 pages are split. But I have pdf containing 6000 pages and it takes more time to split a PDF with…
0
votes
0 answers

vb.net code to generate pdf and email it respectively

i have this code to generate pdf file with multiple pages. Protected Sub GenerateReport() 'pdf(creation) Dim document As New Document(PageSize.A4, 50.0F, 25.0F, 25.0F, 35.0F) Dim NormalFont As Font = FontFactory.GetFont("Times New…
0
votes
1 answer

HTML to PDF Using iTextPdf : java.lang.NoSuchMethodError

I have HTML file which i'm tring to convert into pdf using iTextPdf but I'm getting following error, java.lang.NoSuchMethodError: com.itextpdf.text.log.LoggerFactory.getLogger(Ljava/lang/Class;) Lcom/itextpdf/text/log/Logger; the lib are as…
user2582360
  • 55
  • 3
  • 13
0
votes
0 answers

Can we fill chines text(Not the unicode) into acrobat form and then flatten it using iTextPdf?

Can we fill chines text(Not the Unicode) into acrobat form and then flatten it? if yes can you please provide me the sample code? and steps ?
Jaipal
  • 1
  • 2