pdf-form

Making XmlReaderSettings CheckCharacters work for xml string

荒凉一梦 提交于 2019-12-11 07:36:24
问题 I have an xml string coming from Adobe PDF AcroForms, which apparently allows naming form fields starting with numeric characters. I'm trying to parse this string to an XDocument: XDocument xDocument = XDocument.Parse(xmlString); But whenever I encounter such a form field where the name starts with a numeric char, the xml parsing throws an XmlException: Name cannot begin with the 'number' character Other solutions I found were about using: XmlReaderSettings.CheckCharacters using (XmlReader

XFA values initially invisible when AcroForm values are set

浪尽此生 提交于 2019-12-11 00:03:47
问题 I want to fill out a dual AcroForm/XFA PDF form automatically. I included an XFA dataset packet and all values showed up in Adobe Reader. I set the V= key in AcroForms entries to the new value and all values showed up alternative PDF readers. However, when I open the PDF with XFA and AcroForm V= entries in Adobe Reader, only the value of the text field that is currently selected is visible: I cannot find any mention in the PDF specification of a special flag to set when AcroForms and XFA are

Iterating over all fields in a PDF form with JavaScript

▼魔方 西西 提交于 2019-12-10 13:26:19
问题 I would like to modify some properties for all fields in a PDF form in response to the user clicking a button. Which property or method will return me the collection of fields so that I can iterate over them? 回答1: If there is a collection of fields I still haven't found it. There is a way to iterate over all the fields though. The numFields property of the doc object gives the number of fields, getNthFieldName( index ) returns the name of the field with that index and getField( fieldName )

How to check a check box in PDF-form using Java PDFBOX api

﹥>﹥吖頭↗ 提交于 2019-12-07 10:58:44
问题 How to check a check box in PDF-form using Java PDFBOX api Initially I tried with the below piece of code but after the execution check box field is invisible in PDF , but it has been checked.. how to avoid such circumstances or they way i have implemented is wrong ? can any one help me out public void check() throws Exception { PDDocument fdeb = null; fdeb = PDDocument.load( "C:\\Users\\34\\Desktop\\complaintform.pdf" ); PDAcroForm form = fdeb.getDocumentCatalog().getAcroForm(); PDField

How to check a check box in PDF-form using Java PDFBOX api

爱⌒轻易说出口 提交于 2019-12-05 17:01:59
How to check a check box in PDF-form using Java PDFBOX api Initially I tried with the below piece of code but after the execution check box field is invisible in PDF , but it has been checked.. how to avoid such circumstances or they way i have implemented is wrong ? can any one help me out public void check() throws Exception { PDDocument fdeb = null; fdeb = PDDocument.load( "C:\\Users\\34\\Desktop\\complaintform.pdf" ); PDAcroForm form = fdeb.getDocumentCatalog().getAcroForm(); PDField feld3 = form.getField( "check" ); feld3.setValue("check"); fdeb.save("C:\\Users\\34\\Desktop\\complaintform

How to correctly fill in XFA form data using iTextSharp to allow editing and saving result in Acrobat XI

倖福魔咒の 提交于 2019-12-02 09:56:11
I have an application that I'm using the populate a pdf form using iTextSharp. /// <summary> /// Imports XFA Data into a new PDF file. /// </summary> /// <param name="pdfTemplate">A PDF File with an unpopulated form.</param> /// <param name="xmlFormData">XFA form data in XML format.</param> /// <returns>a memorystream containing the new PDF file.</returns> public static void XFAImport(System.IO.Stream pdfTemplate, System.IO.Stream xmlFormData, System.IO.Stream outputStream) { using (iTextSharp.text.pdf.PdfReader reader = new iTextSharp.text.pdf.PdfReader(pdfTemplate)) { using (iTextSharp.text

Adding form elements to a table with iTextSharp

感情迁移 提交于 2019-12-02 06:52:45
问题 I'm trying to create a PDF document that is essentially a list of users in a table format. I need the table to have checkboxes in it. So far, I have the table and the checkboxes separately but I cannot find a way to get the checkboxes in the table. I think I need to add them using the AddCell() method. Here is my code: static void Main(string[] args) { // create the document, filestream, writer Document doc = new Document(PageSize.LETTER); FileStream file = new FileStream(@"C:\Users\test\User

pdf form filled with PyPDF2 does not show in print

一个人想着一个人 提交于 2019-12-01 05:38:52
问题 I need to fill pdf form in batch, so tried to write a python code to do it for me from a csv file. I used second answer in this question and it fills the forms fine, however when I open the filled forms the answers does not show unless the corresponding field is selected. Also the answers does not show when the form is printed. I looked into PyPDF2 documents to see if I can flatten the generated forms but this features has not been implemented yet even though has been asked for about a year

Fill in a PDF form from VBA (MS-Access)

旧时模样 提交于 2019-11-30 14:16:33
I want to fill a PDF form from my MS-Access 2003 .mdb project. The PDF has been created with Adobe LifeCycle Designer ES 8.2, all fields have significant names. However, the users who will run the PDf-filling functionnality don't have LifeCycle installed but only Adobe Reader 9.5 instead (might migrate to Adobe Reader X soon, I would like my code to be a little bit future proof). How can I implement this? Most threads that I've seen on the Web redirect to the official Adobe SDK documentation, which is completely a mess when you're only doing VBA. Thank you. Finally managed to get something

Java pdfBox: Fill out pdf form, append it to pddocument, and repeat

…衆ロ難τιáo~ 提交于 2019-11-30 13:51:29
I have a pdf form made and I'm trying to use pdfBox to fill in the form and print the document. I got it working great for 1 page print jobs but i had to try and modify for multiple pages. Basically it's a form with basic info up top and a list of contents. Well if the contents are larger than what the form has room for I have to make it a multiple page document. I end up with a document with a nice page one and then all the remaining pages are the blank template. What am I doing wrong? PDDocument finalDoc = new PDDocument(); File template = new File("path/to/template.pdf"); //Declare basic