Questions tagged [acrofields]

Refers to form fields used in Adobe Acrobat

124 questions
0
votes
1 answer

How to add image to acrofield in iTextsharp in c#?

I am using iTextSharp for set values in PDF. All text is working perfectly but the image is now showing in PDF. My code is as below : string pdfTemplate = string.Empty; pdfTemplate = Server.MapPath("~/Documents/PDF/ESignSummary.pdf"); PdfReader…
Harry R
  • 69
  • 1
  • 11
0
votes
1 answer

PDFBox invalid option in radio

When trying to fill the form of this pdf (http://vaielab.com/Test/2.pdf) with this code PDDocument pdfDocument = PDDocument.load(new File("2.pdf")); pdfDocument.setAllSecurityToBeRemoved(true); PDDocumentCatalog docCatalog =…
Etienne
  • 177
  • 4
  • 17
0
votes
1 answer

Problem implementing PDF radio button fields

I'm currently in the process of implementing support for AcroForm for HexaPDF. Check boxes are already working fine but radio buttons give me a headache. I created a simple PDF with two radio buttons. As far as I can tell the resulting PDF contains…
gettalong
  • 735
  • 3
  • 10
0
votes
1 answer

How get acrofield custom attributes with iTextSharp

I have a PDF (vs1 (dopo).pdf) with 6 acrofield ... 4 radio button and 2 signature fields. Signature fields have some custom properties that I would like to read but I don't know how. This is the code I use to retrieve the fields: PdfReader pdfReader…
Gigi
  • 315
  • 7
  • 23
0
votes
1 answer

How to find the index position of a radio button selected in a PDF Acrofield using iText Java

PdfReader reader = new PdfReader(pdfbytes); AcroFields acroFields = reader.getAcroFields(); Set fields = acroFields.getFields().keySet(); for (String field:fields) { if (AcroFields.FIELD_TYPE_RADIOBUTTON ==…
Anusuya
  • 1
  • 1
0
votes
0 answers

Font difference in acroform fields between regular and display value

I just started a project for a personalized bookkeeping software where I fill in the results in a premade PDF form. I have everything working correctly but in one of the forms the text entered with iText7 has a different font then fields that are…
MicaH
  • 1
  • 2
0
votes
0 answers

Filling in AcroFields with UTF-8 strings in iTextPdf

I wish to fill in a PDF form with information containing special characters: public class Main { public static void main(String[] args) throws IOException, DocumentException { PdfReader reader = new PdfReader("in.pdf"); …
Snackoverflow
  • 5,332
  • 7
  • 39
  • 69
0
votes
0 answers

PDF form does not get filled by application

I got a problem regarding the fillings of pdf-forms. I wrote a code in laravel to fill previously defined fields in my pdf form while using https://github.com/mikehaertl/php-pdftk . At first it worked very well with my pdf. Now I made a new pdf but…
Janosch
  • 84
  • 1
  • 6
0
votes
1 answer

PDF/A validation

I am trying to validate a self created PDF file against the PDF/A-1b specification but I am getting below errors (For the validation I used the Apache PDFBox Preflight library. The version for Apache PDFBox and Preflight is 2.0.15) 3.1.1 : Invalid…
Fotios
  • 79
  • 8
0
votes
1 answer

Vertically center text in PDF acrofield (C#, iTextSharp)

My program has to do some styling on PDF Acrofields. One of those is to center the text inside a multiline textfield (not a richtext field) horizontally and vertically. I managed to center it horizontally using this code: var centeredField =…
kappadoky
  • 321
  • 2
  • 12
0
votes
1 answer

Flattening PDF fields removes formatting

I try to flatten form fields (PDAcroForm.flatten()) in a pdf, which contain rich text. When doing so the formatting (bold, italics, color, size) get lost. It's not edible any longer, but the formatting is also gone. String inputFileName =…
luckydonald
  • 5,976
  • 4
  • 38
  • 58
0
votes
0 answers

Issues with filling PDF forms. Should I use C# with IText AcroFields to fill forms programmatically from a database? Or is this solution outdated?

TLDR; Having below issues with IText solution, and have not found a "better" option. Project currently is finding the best way to fill forms programatically from a database. After researching heavily I found a few solutions based on the following…
Talldave
  • 11
  • 4
0
votes
0 answers

Read acrofields with variable page size within document with iText

I am using iText to add and read acrofields. But it runs into issue where page size within document is variable. So for eg. Pdf document with 3 pages -> letter, legal , letter Its unable to get all acrofields. But if all pages legal or all pages…
0
votes
1 answer

iText alignment of Acrofield [C#]

I got a PDF file with some Acrofields. I'd like the text of one textfield to be centered. I tried: var centeredField = stamper.AcroFields.GetFieldItem(fieldname); centeredField.GetMerged(0).Put(PdfName.Q, new…
kappadoky
  • 321
  • 2
  • 12
0
votes
1 answer

iTextSharp Create Duplicate TextField As ReadOnly

I am creating a duplicate of an existing TextField on another page of my pdf and i want the duplicate field to be readonly, so that the user can only change the value from the original field. Here is the section where i create the…
knutter539
  • 74
  • 8
1 2 3
8 9