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

How to copy header and footer from one pdf to another

I need to create a report in pdf in java. This report is being created in two steps. 1. Create textual part of report on first page (with Header/Footer) 2. Create graphic part of report in next page. (using itext pdf) For the graphics part, I need…
TajinderS
  • 1
  • 1
0
votes
0 answers

preset printer settings while generating pdf in iText

Is it possible to preset print paper size as Legal using addViewerPreference method? Document's paper size is custom (8.5" x 12"). I do not want to change it as it is being derived from some template. However I would like to preset print paper size…
TechnoCrat
  • 2,055
  • 4
  • 23
  • 35
0
votes
1 answer

API or itext and PDFBox

How do i use an existing PDF and fill out the information given by the user online or in a java program. I know itext and pdfbox are used but they are all showing documentation to create a new pdf and then fill out the information. My problem is…
user231767
  • 1
  • 1
  • 1
0
votes
0 answers

How to set vertical text alignment with itextpdf in android?

How is it possible to set the text vertically starting from bottom to top? These are dynamically generated texts. So I considered putting each text in a tags in a table. This isn't working: for (int j = 0; j < cur.getCount(); j++) { VerticalText vt…
sjain
  • 23,126
  • 28
  • 107
  • 185
0
votes
0 answers

iTextPdf set fields of xfa form

It's been many days that im trying to figure out how to set the values of fields in a PDF XFA form. I managed to do it using fill xfa.fillXfaForm() where I pass an input stream to my xml file containing the dataset. However i found that not all…
demotics2002
  • 792
  • 1
  • 8
  • 20
0
votes
1 answer

How to enclose a text in box in itextpdf (while generating pdfs)

I have to display a normal text and then the next following text should be inclosed in a box. how can i do this in itextpdf. is there an easy way. Example Name: MY NAME In the above MY NAME should be inclosed in a box.
0
votes
0 answers

Table embedded in a table causing "illegal (beyond boundaries/overlapping)" error in itext

I use table within a table when generating the PDF and i get the following error. com.ost.radhaz.struts.survey.action.PreviewSurveyAction caught an exception: com.lowagie.text.BadElementException com.lowagie.text.BadElementException: ***Adding a…
0
votes
1 answer

Problems with HTML content in generated PDF

I am generating a PDF from HTML, but instead of interpreting it as normal text my PDF pages are filled with html tags like

,

  • , etc.
  • darkHorse
    • 13
    • 8
    0
    votes
    1 answer

    itextpdf: how to insert a new page when a table splits?

    I'm using iTextPdf 5.4.1. I have a table with many rows in it, and when the table auto-splits to the next page, I want to insert an Image and then another page break to continue the table's rows. For example: say a table will take up 2 pages based…
    P Sheldon
    • 43
    • 2
    • 6
    0
    votes
    1 answer

    How to set different colours in the border of a table cell using itextpdf in java

    I want to set 4 different colours in 4 border of a cell using itextpdf.When i used the below the code itz not working.Please help me to solve this. private static PdfPTable insertCell(PdfPTable table, String text, int align, int colspan, Font…
    user2210071
    • 203
    • 3
    • 6
    • 11
    0
    votes
    3 answers

    iText - how to find last row is split into next page

    I have group of tables with dynamic rows. There are some scenarios where a table is splitted between pages. In some scenarios, only the last row is split into next page. Suppose if a table has 10 rows, the rows 1 thru 9 are displayed in page 1 and…
    Chandra Shekar
    • 113
    • 1
    • 3
    • 7
    0
    votes
    1 answer

    itext pdf in tapestry

    I am working on itext pdf when I am extending a PdfPageEventHelper class it is showing following errror. Base class com.lowagie.text.pdf.PdfPageEventHelper (super class of de.fu_berlin.inf.klausurenportal.pages.question.TableHeader) is not in a…
    srinivas
    • 1
    • 1
    0
    votes
    2 answers

    Barcode customization with itextpdf

    In my java code I'm generating Code 39 with itextpdf in de facto standard way: Barcode39 code39 = new…
    1ac0
    • 2,875
    • 3
    • 33
    • 47
    0
    votes
    3 answers

    Read pdf using java

    i have a problem with reading PDF file content in java using itextpdf.jar , if i read a small sized(5-15MB) PDF file means its working well, it is possible to read it's contents but when i read large sized(200MB) PDF file means its showing Run…
    kark
    • 4,763
    • 6
    • 30
    • 44
    0
    votes
    1 answer

    How much file size can iTextPDF can read?

    I am having Force Close in my application, when i choose a file1(size: 33,016,510 - not sure if byte or kb) but when i try a file2(size: 604,612) it does not force close. How much file size can iTextPDF can read? file1: 400-500pages, Has Image…
    Christian Eric Paran
    • 980
    • 6
    • 27
    • 49