Questions tagged [pdfstamper]

106 questions
0
votes
0 answers

Adding PDFStamper overlay causes XFA pre-populated fields to disappear

The SRC_PDF I'm using was previously filled by a previous method using the following code: XfaForm xfa = form.getXfa(); xfa.fillXfaForm(new FileInputStream(XML)); stamper.close(); reader.close(); Now I'd like to create an image…
0
votes
2 answers

i have a stamp which has a check mark and current date. i need to add this stamp to all the pages in a pdf using itext and java

I have a stamp which has a check mark and current date on it. I need to add this stamp to all the pages in a pdf on click of a button using itext and java. The stamp is a form having a text field where in the date is entered automatically using…
user1416631
  • 195
  • 1
  • 4
  • 15
0
votes
1 answer

Add image to existing document

In my application I have to add barcode image to the existing PDF document. I can write the modified PDF with zero bytes. I am new to iText. I am not able to find issues in this code and I have no time to analyse make it working. PdfReader reader =…
user1636102
  • 121
  • 4
  • 11
0
votes
1 answer

itextsharp pdfsmartcopy only returning last page

I have an issue where only the last page of my pdf is stored. The pdf should be multiple pages long, and this works fine if I just send the pdf to the browser using Response and the mms memory stream, however I need to add it as a pdf to an email…
dave
  • 1,410
  • 1
  • 16
  • 42
0
votes
0 answers

How to Fill the PDF Text Field based on the Key name using iText

we have an editable PDF which contains number of TextFields and other Fields where the user can enter the values into PDF form. For some Fields we need to pre populate the values while displaying the PDF to the user. we display the PDF by reading as…
MKS Raja
  • 21
  • 6
0
votes
1 answer

PdfStamper changes font

I write my letters in one program and export them in PDFs. I recently implemented a small console program, which should iterate over each page and set my special design for letters (containing my address and so on) as the background. The problem is,…
0
votes
2 answers

iText filling multi pages with same textfields

I know there is already some information online but I don't get it. My case: I'm having a PDF of 10 pages, all page contains the same form. When I'm using my code, only the first page is filled out and the others are still blank. If I checked the…
user3388946
  • 49
  • 3
  • 8
0
votes
2 answers

Arabic Data disappears on Form flattening in iText

I have populated an acrofield with some Arabic data using PDFStamper. The text disappears when I flatten the form while it is working fine for English. Please guide. BaseFont unicode = null; unicode = BaseFont.createFont("D:/arialuni.ttf",…
aanchal
  • 33
  • 1
  • 12
0
votes
0 answers

The label and value in a pdf created using PdfStamper are not aligned properly

I am trying to create a PDF file using PDFStamper. ByteArrayOutputStream os = new ByteArrayOutputStream(); PdfReader reader = new PdfReader(new FileInputStream(file)); PdfStamper stamper = new PdfStamper(reader, os); …
Patan
  • 17,073
  • 36
  • 124
  • 198
0
votes
0 answers

ITextSharp Adding Multiple PDFStampers to memoryStream

I have a asp.net application that uses ITextSharp 5.4.5.0 to generate certificates. I have the code that generates one certificate working fine, but when I try to bundle these one page certificates into a single multi-page PDF and output the…
Shane
  • 31
  • 4
0
votes
1 answer

How to use a temporary space as the "Destination" using PdfStamper from iText library?

I am surfing the web-users pdf files from Domino Server. I have a template.pdf and a font file on my Java package to generate these pdf files without SAVING them on the server. However the PdfStamper requires me to use OutputStream which needs a…
0
votes
1 answer

PdfStamper in Java Applet

I use PdfStamper in Java applet to sign pdf files. The problem is that applet every time suspends when reach line with pdfStamper.close(); I think that my problem is related to some java applet policy but I have granted permissions to all…
ryan
  • 31
  • 1
  • 4
0
votes
1 answer

itext Sharp and PDF form stamping with parentheses

My pdf doesnt show the negative numbers correctly i've set up a pdf form with acrobat which contains textfeild formated as numbers. it doesnt display the negative numbers correctly when filled via itext sharp using the stamper unless both Show…
Gareth
  • 11
  • 1
-1
votes
1 answer

Another "Object not set to the instance of an object" Error

I have been struggling with this error for a few days now. Hopefully you can see what I cannot and help point me in the right direction. private void FillFormChg() { pdfTemplate = System.IO.Path.Combine(System.IO.Path.GetTempPath(),…
s.d.c321
  • 3
  • 4
-1
votes
1 answer

PdfStamper not adding new text to assisting PDF

I am trying to add new text to an existing PDF file but it is not adding. From the code below it doesn't show any error but the text is not added. I have also looked at some examples below Example1 Example2 Can you please guide me if there's…
IT Forward
  • 367
  • 2
  • 7
  • 28