Questions tagged [pdfstamper]

106 questions
2
votes
1 answer

Importing PDF position PDFStamper

I'm lost at the moment. What I try to accomplish is adding one PDF on another (like a watermark). The problem is that I dont seems to understand the coordinate system that is used because my watermark just behaves unexpected. The two PDFs have…
traffiq
  • 99
  • 8
1
vote
1 answer

itext5 sign PDF containing only image

I have a code that successfully add visible signature block into a "normal" PDF. <...> PdfStamper stamper = PdfStamper.createSignature(reader, os, '\0'); PdfSignatureAppearance appearance =…
1
vote
0 answers

Copy and paste a stamp with populated form fields without the pop-up box prompting me to complete the filled fields everytime in adobe?

I created a custom Adobe stamp with form fields and included a Javascript so that when it's first applied, a prompt appears that asks 2 questions and then auto populates the date. All of this works great but I then need to copy and paste the stamp…
1
vote
1 answer

PDF stamps javascript, how to find the stamp instance name?

While inserting a pdf stamp I have a script that will retrieve the AP identification of the source stamp. This is easily done by using event.source.stampName. But what about the name of the stamp instance that is being inserted? I need to identify…
César Amorim
  • 367
  • 3
  • 16
1
vote
1 answer

Using PDF Stamper to password protect PDFs having digital signature

I am using the following code to password protect a PDF. import com.itextpdf.text.Document; import com.itextpdf.text.DocumentException; import com.itextpdf.text.Paragraph; import com.itextpdf.text.pdf.PdfWriter; import…
Allan
  • 25
  • 1
  • 8
1
vote
0 answers

iTextSharp does not read fields in pdf correctly

I have issue with iTextSharp. Let's assume I have two rows of fields in PDF file (the file is given and I don't know how was created) Row…
notyou
  • 9
  • 3
1
vote
0 answers

iTextSharp - adding stamp - stamp is not on top of content but under it

I am trying to stamp existing pdf document using ITextSharp's stamper. I am able to open existing pdf and put an image inside on the desired position. (stamp the pdf) Probleme is that stamp (red image) is always under the drawing. (black lines are…
fxdx
  • 399
  • 1
  • 3
  • 9
1
vote
1 answer

Digital Signature For PDF Documents

Is it possible to generate digital signature for already signed PDF document ? I am using following code to generate digital signature for PDF documents. public void sign(String src, String dest, Certificate[] chain, PrivateKey pk, String…
1
vote
1 answer

PDF Javascript for Custom Stamp not working in Adobe Reader DC

Code below is for a custom stamp in Adobe Reader. This code is for a row of 3 text fields in the stamp table. What it does: Asks for user input in a javascript window when stamp is placed. Once submitted, the text fields in the table of the custom…
Joey
  • 11
  • 4
1
vote
2 answers

PdfContentStreamEditor rotating image on PDF file

I have what I hope is an easy question. I'm trying to use iTextSharp to modify some PDF files, however it seems that the XMP metadata that iTextSharp puts at the end of the files is ruining the layout of the PDF files (and I'm not very conversant in…
BevanWeiss
  • 135
  • 1
  • 15
1
vote
1 answer

How do you change the icon size of a PDF sticky note placed via iTextSharp?

I'm trying to enlarge the icon of a PDF sticky note. Here's an image showing the sticky icon that I've stamped on the first page of the PDF for context: I was under the impression the icon was guided by a rectangle that could be manipulated. Here's…
DBlair
  • 9
  • 3
1
vote
0 answers

Modifying an existing document using pdfstamper

I have a pdf which is half static and half dynamic which can grow multiple pages. I created the static part in Adobe LiveCycle and using itext to create the dynamic part. The dynamic part of the form is a table which has to expand based on the input…
uabhiram88
  • 11
  • 3
1
vote
1 answer

Read password protected PDF in Pentaho using UDJC

I am trying to unlock the password protected PDF using bcprov-jdk15on-1.56.jar and itextpdf-5.5.10.jar but I am getting following exception. I am using 'User Defined Java Class' task of transformation. Exception: class…
NNaseet
  • 68
  • 1
  • 8
1
vote
0 answers

PdfStamp of IText 5.4.4 causes exception when calling Close()

The simple code below causes exception "Data at the root level is invalid. Line 1, position 1" AS LONG AS the pdf producer is "Mac OSX 10.8.5 Quartz PDFCOntext" 1.4 (Arcobat 5.x). Any other pdf works without err. PdfReader reader = new…
mark ma
  • 11
  • 2
1
vote
1 answer

Using PdfStamper to add an image with AffineTransform

I am using PdfStamper getOverContent() so I can add an image to the output PDF file using an AffineTransform of Identity type. PdfContentByte content = stamper.getOverContent(1); data.image.setAbsolutePosition(desc.X,desc.Y); …