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

When I fill the Acrobat Fields with chines text. text is not appearing on pdf

The problem is by using the below code am able to fill the china text on Acrobat fields dynamically using iTextPdf, but when i open the generate pdf, the chines text is not displaying (When i click on the field then only it is appearing. Please…
Jaipal
  • 1
  • 2
0
votes
1 answer

Last row on the first page in iText table isn't drawing border at baseline of the font like all the other rows when table is split across pages

I have an example below that generates a table with ten rows, the last row taking up two lines. The document height is two points smaller than it needs to be to correctly fit the entire table. As expected the last row on the first page contains…
Michael Hogenson
  • 1,292
  • 1
  • 15
  • 31
0
votes
0 answers

Unable to convert HTML text into PdfPCell using itextpdf

I'm trying to display a HTML string in the PdfPTable using itextpdf. Here's what I have done: String solution = "

some text

"; Phrase htmlPhrase = new Phrase(": ", fontNormal10); StyleSheet styleSheet = new…
talha06
  • 6,206
  • 21
  • 92
  • 147
0
votes
0 answers

ArrayList and itextpdf , table

I have table with 30 rows and array list full of strings.Table has 2 columns, in first is like company name , in second i need to write Strings from list, each row of that second column should have 10 elements, How do I do that ? PDF Output should…
0
votes
0 answers

Export HTML in a java to PDF

I'm trying to export some auto generated HTML that is in a JavaScript var with iTextPdf in the java code, but I don't know how it works, because I've got an String in the var and I don't know how to Export it. This is my HTML code. …
Raknoz
  • 9
  • 2
0
votes
0 answers

How to customize the print button in itext pdf?

For displaying pdf files in java i am using itext pdf jar.i am facing problem with customize the print button(located on top which is provided by itext).why i am customizing means,when i click on print button need to save the details of my…
user2853462
  • 31
  • 1
  • 5
0
votes
2 answers

Cropping a PDF document using itext returns undesired output

I have to crop a PDF document using itext but the resultant output pdf is not that for which i have provided the cordinates of rectangle to crop the same. I have uploaded the sample file on this…
choudhary
  • 29
  • 4
0
votes
0 answers

For variables names for text components ending with a dot(.) , itextpdf appends .widget to them

For variable names that i am declaring using pdf expro, having dot(.) character at the end, the itext is appending "Widget" to them. IF my variable name on pdf template for a textbox is "Payment transaction no." then itextpdf makes it as "Payment…
DevK
  • 38
  • 5
0
votes
0 answers

UTF fonts not coming in itextpdf acroform

I am trying to include Hindi font using the font file mangal.ttf that i have kept on some file location. It was picking up this font earlier, but now all of a sudden, its not displaying any font on the resultant pdf. Dots are appearing instead of…
DevK
  • 38
  • 5
0
votes
1 answer

All links of existing pdf change the action property to inherit zoom - iText library

This Code is perfect. But the only problem is that I want to copy links and I want to change the property of links to inherit zoom. public class links { public static void main(String[] args) throws DocumentException,…
Paresh3489227
  • 845
  • 11
  • 22
0
votes
1 answer

Incorporating font styles in HTML to PDF conversion using itextPDF5.3.4.jar

I am trying to include multiple font styles in HTML to be reflected on my code using the following snippet. The html text when having font style mentioned in font face tag, is not being picked up to be displayed in PDF. String htmlText =…
DevK
  • 38
  • 5
0
votes
0 answers

Exporting Multiple Images or Exporting Images to PDF causes OutOfMemoryException

I have no clue what to about this exception, since I try to discard each bitmap as they've been used and flush the stream to where I write these images. I use this method to save bitmaps to a PDF, but the idea is probably the same as just exporting…
Deukalion
  • 2,516
  • 9
  • 32
  • 50
0
votes
0 answers

Re-size page size in existing pdf using itext

I am using following code to create new document from existing pdf. I want to shrink all pages(re-size) of existing pdf in new generated pdf. Code i am using: public void resize() throws IOException, DocumentException { PdfReader reader =…
Butani Vijay
  • 4,181
  • 2
  • 29
  • 61
0
votes
1 answer

cannot instanciate the type list of itextpdf

I want to display in a pdf a list of clients. I use this attribute : List client; This is a method wihch creates a special list to be displayed on the PDF: private static void createList(Section subCatPart){ List list = new List(true,…
sadzag
  • 83
  • 7
0
votes
1 answer

Error msg is displayed when stamped pdf(using itext) opens

I have a pdf which contain acrofields. When i do stamping of those field and make this pdf flattened, everything is working fine. I got the pdf and all the acrofields have proper value. Problem is when I am opening this stamped file, Acrobat opens…
user906221
  • 29
  • 2
  • 4