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

How to make a footer in generating a pdf file using an itextpdf

I have been searching the net on how to make or set a footer using itextpdf in java. and up until now i havent found anything on how to do it. I have seen some articles on how to use and set a header. but not footers. here's a sample code Document…
Weddy
  • 543
  • 6
  • 10
  • 21
2
votes
1 answer

itextpdf xmlworker add-on does not align the text justified in PDF

I am using itext-pdf 5.4 to create PDF documents. In this process, I plan to create some HTML and then parse with xmlworker add-on. However, irrespective of the fact that, I am specifying
..
OR

I am…

Code4Fun
  • 125
  • 3
  • 13
2
votes
2 answers

iTextPDF Library - Can't find the class "com.itextpdf.text.pdf.PdfAWriter"

Can't find the class "com.itextpdf.text.pdf.PdfAWriter" in latest version of itextpad v5.4.0. I have even tried downloading the extra jars but to no avail. Any help will be appreciated.
javadmirer
  • 81
  • 1
  • 1
  • 7
2
votes
3 answers

Path of Image in drawable

I am using a library iTextPDF.jar and the following is a line of code from my program Image imageHeader = Image.getInstance(path); How to specify the path of an Image that I have stored in drawable? Thanking you in advance, Sreekanth
Sreekanth Karumanaghat
  • 3,383
  • 6
  • 44
  • 72
2
votes
0 answers

iText PDF Exporter UTF-8 Character Encoding Error

I'm facing with character encoding issue while exporting PDF with using iText PDF Library despite I set exporter's CHARACTER_ENCODING property to UTF-8 as I added below : Class clazz = Class.forName(User.class); Document document = new…
talha06
  • 6,206
  • 21
  • 92
  • 147
1
vote
1 answer

Using itextpdf with KFGQPC Uthman Taha Naskh Font

i am required to use the Font : KFGQPC Uthman Taha Naskh wich is the font used to write the holy Quraan, you can find more information about the font in this link. Now you can use the exact Same Sample of say_peace used in itextpdf site and change…
1
vote
1 answer

Inconsistent result while reading multiple QR Code from scanned PDF using zxing library

I am new to zxing library and so to QR Codes. Using zxing library 1.7 I have generated QR codes, those QR codes are sticked to the papers and papers are later scanned in a PDF. I do have created client program of course using zxing library itself…
1
vote
0 answers

Convert html source to pdf using iText

I have an html file, which is generated as a response by my site. While opening the html file in my browser, all the images and other elements are displaying properly. Moreover, I want to convert this html file into a pdf file. So am using iText API…
Psl
  • 3,830
  • 16
  • 46
  • 84
1
vote
1 answer

Why the PDF edited with iTextPDF is corrupted in a Web Servlet Context?

I have a problem using iTextPdf in a WEB Context application. I have a web servlet that downloads a PDF after I have edited it in runtime. If I call my method that prepare the PDF in a NON-WEB context application, the PDF is created perfectly and it…
Alessandro C
  • 3,310
  • 9
  • 46
  • 82
1
vote
0 answers

why pdfstamper is not working to insert new buttons in itextpf

I just copied a program from website (I am sure it was written by Bruno) but does not work for me. I just have a very plain pdf fie and interested to insert buttons in it using this program exactly. But it does not insert the button on the file. My…
mushtaq
  • 11
  • 2
1
vote
1 answer

Writing J Free chart with Chinese labels To pdf

I am trying to write a JFree chart with Chinese labels To PDf, I am able to see the chart in pdf without lables. But i need chart with lables. Below is the code snippet. Could someone please help on this. public static void main(String[] args)…
naveenR
  • 53
  • 4
1
vote
1 answer

Embed non-embedded fonts in PDF with IText

So I have the following problem. I receive a PDF file which contains a set of fonts. These fonts are not embedded into the file. Here is a simple example: I would like to embed these fonts inside the PDF, so they're self-contained and always…
Jaims
  • 1,515
  • 2
  • 17
  • 30
1
vote
2 answers

How to export and image from a map and insert it into a new PDF file?

I have a webpage where I display a map using openstreetmap's ol3 library and other elements from primefaces:
1
vote
0 answers

Creating PDF document with different page sizes

I want to create a PDF document with different page sizes. I am able to create a document with all the pages of same size. i.e. A4 using HTMLWorker, where I pass the entire HTML Content as input. Then I read the same PDF and trying to generate the…
Richa
  • 21
  • 5
1
vote
0 answers

save rich text area content in same format in a word doc using XWPF

It can easily convert the normal text area content to word document using XWPF or to pdf using iTextpdf, but when I am trying to get data from rich text area, the content is not displaying in word document or pdf I want to create a word document…
Lukman
  • 101
  • 1
  • 1
  • 9