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

iText spacing inbetween paragraph

managerp4.add(Chunk.NEWLINE); managerp4.add(managerVO.getManagerAddress().getRoad2()); managerp4.add(Chunk.NEWLINE); managerp4.add(managerVO.getManagerAddress().getRoad3()); This will generate output in newline like this Road 2 Road 3 but i…
0
votes
1 answer

itextpdf not creating more than one page to print remaining data

I'm developing a quotation generating system which output a PDF created using itextpdf library. I'm printing these data using x,y positions.It works fine when data to be print fit the page. But when it exceed the size of the page it's not creating…
0
votes
1 answer

Itextpdf document with text, rectangles and tables

sorry for my english, i have code which creates a document. In first third is located rectangle with text, representing header. My code: private void createGPDFbutton_Click(object sender, EventArgs e) { string PDFcesta =…
Petr.A
  • 3
  • 2
0
votes
1 answer

Appearance defined by PDFAppearance class dont apply to Signature Field

i am working through the Paper: Digital Signatures for PDF documents. I am working with the .Net Dlls of ITEXT and i wrote this Code similar to example 2.6 of that paper: Private Sub Method() 'step 1: Create a Document Dim document = New…
M. Y.
  • 3
  • 3
0
votes
1 answer

itextpdf embeding fonts only from command line

I use itextpdf on Ubuntu to fill in a PDF form with data. In fact i use a class (utility) included in this kit: PdfFormFiller. The data is represented by Unicode strings. To display correctly the Unicode characters I use -fonts option of…
Sun Dance
  • 1
  • 1
0
votes
1 answer

Write a title on itextPdf table border

I'm using iTextPdf to create a table on an android application. I need to have the title of the table on its upper border as shown on the image below. How can I achieve this? Thanks in advance
Shura Capricorn
  • 119
  • 1
  • 9
0
votes
1 answer

After generating pdf file how to save dynamic name for this pdf?

I generate a PDF document using a file path to create a PDF file with name test.PDF. However, I want to chance this so that the user can choose a name and that this name is used at the time of PDF generation. I am using iText to creating a PDF file…
ATUL
  • 25
  • 1
  • 6
0
votes
0 answers

iTextpdf 5.5.8 With JavaEE method PdfCopy addDocument undefined

I am trying to create a pdf with pdfcopy, which is composed with 2 sides of a card. I am running this with Jetty. but i keep getting this error : [ERROR] The method addDocument(PdfReader) is undefined for the type PdfCopy My code : import…
Bakk
  • 1
  • 3
0
votes
1 answer

shading with transparency with itextdpf

I am trying to use shading in itextpdf. I want my rectangle (here named position) to change from gray to transparent. This is the code I have written but it does not work : it seems that new BaseColor(255,255,255,0) behaves as BaseColor.WHITE. Any…
Sylvain
  • 113
  • 7
0
votes
1 answer

Total page number with itextpdf

I am using itextpdf-5.5.6 for publish my data. I'm trying to set page numbers in PdfPCell of my pdf using following format : page_num/total_page_num For this I use PdfTemplate object filling inside total page number before close document. It warks,…
Valeriane
  • 936
  • 3
  • 16
  • 37
0
votes
1 answer

How to edit PdfTemplate width (in Java)

Is it possible to edit width of PdfTemplate object before close of document ? In my pdf process I create a document, and set a template for write total page number. I set width but it doesnot works : // onOpenDocument PdfTemplate pageNumTemplate =…
Valeriane
  • 936
  • 3
  • 16
  • 37
0
votes
1 answer

how to use very old iText(under 0.99) to create bookmarks / outlines?

may I know how to use old iText(very old version under 0.99, package path = com.lowagie.xxx) to create bookmarks to jump in the internal pdf pls? like the api in new iText jar: PdfOutline outoline2 =…
0
votes
1 answer

iText PDF add text in absolute position on top of the 1st page

I have a script that creates a PDF file and writes contents to it. After the execution is complete I need to write the status (fail, success) to the PDF, but the status should be on the top of the page. So the solution I came up with is to use…
BiJ
  • 1,639
  • 5
  • 24
  • 55
0
votes
3 answers

How to generate mutiple page using PdfWriter

I am generating pdf file for payslip using PdfWriter in C#. And I'm downloading the pdf file from html code, every user it will create a table (...
) and every table display in new page. But all table are displayed in same…
Merbin Joe
  • 611
  • 6
  • 27
0
votes
2 answers

Create PDF Table from HTML String with UTF-8 encofing

I want to create PDF table from HTML string. I can create that table, but instead of Text, I'm getting question marks. Here is my code: public class ExportReportsToPdf implements StreamSource { private static final long serialVersionUID =…
KiKo
  • 1,668
  • 7
  • 27
  • 56