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
1 answer

how to add watermark to pdf using itexpdf

i am using following code to generate pdf file, everything is fine and working but i need to add watermark with the pdf file also alternate color to rows generated in pdf table. response.setHeader("Content-disposition", "attachment; filename=\"" +…
Java Questions
  • 7,813
  • 41
  • 118
  • 176
0
votes
1 answer

iTextPdf: Using a non-embedded font

I've created a table using Java and iTextPdf that lays out a bunch of cells. I can't quite figure out how to change the font for the text inside of these cells. It's something for my kids, so I'm trying to use Comic Sans MS. Everything compiles and…
AndroidDev
  • 20,466
  • 42
  • 148
  • 239
0
votes
1 answer

how to clear this error iTextPdf Document error?

I am getting a The document has no pages. runtime error in this program... public class Windows { public static void main(String[] args) throws FileNotFoundException, DocumentException { java.io.File f = new…
-1
votes
1 answer

itextpdf insert space beetwen 7 and dot after extract text

My problem describe this image http://185.49.12.119/~pogdan/7spacedot/7spacedot.jpg input file http://185.49.12.119/~pogdan/7spacedot/monitor_2016_99.pdf output file http://185.49.12.119/~pogdan/7spacedot/monitor_2016_99.txt all set files with…
pogdan
  • 11
  • 2
-1
votes
1 answer

Java exception when writing PDF with iTextPDF

I'm trying to write a PDF, more specifically write as a HMTL page, using iTextPdf and XMLWorkerHelper, using verions 5.5.9 of both. But when I try to write to the PDF I get an exception, NoSuchMethodError, no clue as to what is causing…
Uriel Bertoche
  • 883
  • 2
  • 13
  • 23
-1
votes
2 answers

itext how to check if giant string is present on the pdf page

-I am using the IText plugin to create/read pdfs on my java project. -I am reading multiple text files from any extension(pdf,doc,word etc) and writing their content on a new pdf(all the content of all the files joint together) -To separate each…
user2997681
  • 121
  • 1
  • 14
-1
votes
1 answer

Pagination in ItextPdf

we use itextpdf and xmlworker APIs ( itextpdf-5.1.1.jar, Xmlworker-1.1.0.jar) for PDF generation tasks in our application. We generate HTML content from XML-XSLT conversion and then use the HTML content to create pdf document. When we trying to…
VenkatRam
  • 51
  • 3
  • 11
-1
votes
1 answer

Only English characters visible in PDF reader after adding field's value of existing pdf file using itext

I put some values to form fields using following code . //------------------------------------------------------- PdfReader reader = new PdfReader(in); PdfStamper stamper = new PdfStamper(reader, new FileOutputStream(out)); AcroFields form =…
-1
votes
1 answer

images padding when converting html to pdf using itextpdf and XMLWorker

I am using XMLWorker 5.5.3 and itextpdf 5.5.3 to convert html to pdf. my html contain table with cells that conatin images. i.e. part of my code : my problem is that some cells add padding > 0 so the td that contain the image is bigger than it…
tamih
  • 93
  • 1
  • 15
-1
votes
1 answer

How to Check pdf file contain scanned page or not using itext library in java

I am using itext library to merge multiple pdfs, I am able to merge multiple pdfs but if pdf contain scan pages then i don't want to add it in merged PDF, Does it possible to check scan pages using itext?. I am using Following code to merge…
Butani Vijay
  • 4,181
  • 2
  • 29
  • 61
-1
votes
1 answer

NullPointerException when I try to generate a pdf with with itextpdf

I tried to generate a pdf with two classes, but, I don't get the pdf because I have a NullPointerException in the line where I call the function that generates the document in the second class. I separate the process to generate pdf´s, because the…
user2928923
  • 1
  • 1
  • 1
-1
votes
2 answers

is there any way we can find PDF file is compressed or not?

we are using ITEXTPDF to compress the PDF but the issues is we want to compress the files which are compressed before uploading into our site...if the files are uploaded without compressing we would like to leave those like that.. so to do that we…
Vicky
  • 45
  • 2
  • 9
-1
votes
1 answer

iTextPdf JTextArea Unicode

I am able to load/save JTextArea unicode (devanagari) contents to file fine. I wanted to print the contents to pdf file so I am using iTextPDF api. My snippet is as below which prints empty file instead of with contents. package i18n; import…
Miten
  • 356
  • 7
  • 23
-2
votes
1 answer

how to make pdf annotation as read only using itext?

I am trying to make a program that multiple users can share one PDF document , and every one can put his comments on the PDF using add sticky note without changing/modifying other notes. For example , The program will transfer that PDF file to…
Ali Alawi
  • 33
  • 1
  • 8
-2
votes
1 answer

Android ItextPDF...Unwanted border for Image

iTextPDF in android sets a border in the images in the PDF which I don't want. How to solve this issue. NB:- I searched a lot for a solution,I couldn't find any. com.itextpdf.text.Document pdfDocument = new com.itextpdf.text.Document(); …
Sreekanth Karumanaghat
  • 3,383
  • 6
  • 44
  • 72
1 2 3
15
16