pdf-form

How can I edit fields in pdf dynamically from Delphi code?

余生长醉 提交于 2020-01-23 17:50:27
问题 I have to update fields in pdf dynamically from Delphi code. Is it possible to classify a textbox from a checkbox in pdf file? If so, how to update from Delphi code? Is there any third party library available under GNU license for that matter? 回答1: If you can figure out how to run PHP from within Delphi (?), there is another tool TCPDF which is LGPL licensed close to GNU licensing. If you can figure out how to call Java from Delphi, then you could try PDFBox (an Apache project so the licence

How can I prefill a PDF form with iTextSharp while still having it be editable and saveable in Adobe Reader by other users?

别等时光非礼了梦想. 提交于 2020-01-17 04:36:06
问题 Right now I have a form template that has some fields that are prefilled from a database using the iTextSharp library. Users will then fill in the rest of the fields and save the filled out forms. I'll then extract the data and put it in the database. Currently I am able to create the PDFs and they are pre-filling just fine. I'm even able to edit and save them in Adobe Reader on my computer. However I'm finding when anyone else opens those same files, they're not allowed to save the forms.

How can I create buttons to add to a PDF file using iTextSharp?

≡放荡痞女 提交于 2020-01-07 05:06:07
问题 I'm creating "labels" and textboxes and checkboxes using iTextSharp, but my attempts to derive from that code to create buttons has not yet been successful. Here is how I'm creating textBoxes: PdfPCell cellRequesterNameTextBox = new PdfPCell() { CellEvent = new DynamicTextbox("textBoxRequesterName") }; tblFirstRow.AddCell(cellRequesterNameTextBox); . . . public class DynamicTextbox : IPdfPCellEvent { private string fieldname; public DynamicTextbox(string name) { fieldname = name; } public

Java PDFBox setting custom font for a few fields in PDF Form

醉酒当歌 提交于 2020-01-01 06:10:10
问题 I am using Apache PDFBox to read a fillable PDF form and fill the fields based on some data. I am using the below code (as per suggestions from other SO answers) to get the default Appearance String and changing it (as you can see below, I am changing the font size from 10 to 12 if the field name is "Field1". How do I bold the field? Any documentation on what order the /Helv 10 Tf 0 g are arranged? What I need to set to bold the field? If I understand right, there are 14 basic fonts that I

Can a PDF fillable form post itself to an HTTPS URL?

元气小坏坏 提交于 2019-12-28 02:03:36
问题 I am building a webapp that will display PDFs. The PDFs have fillable forms. Instead of making the user save the form, and then re-upload it to the webapp, the idea is to adapt the PDF such that it can POST itself (when the user clicks) from inside the browser to some HTTPS endpoint when the user is done. Is this doable? If so, how? If not, any suggestions? Thanks. 回答1: Yes, there is an option (action) that allows pdfs to post themselves. The steps are as follows: List item Open Adobe Acrobat

iTextSharp Fill Pdf Form Image Field

荒凉一梦 提交于 2019-12-24 09:26:57
问题 I created a pdf form with Acrobat DC 2015. I have a image field on it. I fill text field succesfully. But I don't know how to fill image field. Do you help me? private static void FillPdfForm() { // Original File const string pdfTemplate = @"pdf\form.pdf"; // New file which will be created after fillin PDF var newFile = @"pdf\FilledCV.PDF"; var pdfReader = new PdfReader(pdfTemplate); var pdfStamper = new PdfStamper(pdfReader, new FileStream( newFile, FileMode.Create)); var pdfFormFields =

Adding listchoices to Pdfform with c# code

徘徊边缘 提交于 2019-12-24 01:44:58
问题 I'm trying to add choices to a List-field within a pdf form via C# and the itextsharp library. But i cant find a way to do this. The form already exists, i created it with Acrobat. I would like that the Listfield choices from the PDF are the same as in my program. Therefore I want to create the options in the list-fields via itextsharp to reduce the maintenance. But I cant find away to do this. With the PDFstamper from the library I am able to fill the Fields from the form. And Color some

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

旧时模样 提交于 2019-12-20 07:44:37
问题 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

PDFBox 1.8.10: Fill and Sign Document, Filling again fails

▼魔方 西西 提交于 2019-12-13 01:27:58
问题 In my previous SO question PDFBox 1.8.10: Fill and Sign PDF produces invalid signatures I explained, how I failed to fill and afterwards sign a PDF-Document, using PDFBox 1.8.10. After this got sorted out with some kind help, I now continue to work on the same topic. Starting with doc_v2.pdf (links to the file are below!), I fill and sign it, resulting in doc_v2_fillsigned.pdf (doing it in one go, saving it incrementally). Again I open the edited document (using again PDFBox) and try to fill

Convert data from PDFform to CSV

泄露秘密 提交于 2019-12-12 13:32:01
问题 I am trying to convert the data entered in multiple fill-able pdf-forms to one csv file. This code consists of a few steps: Open new .csv file (header row) Open multiple pdf-forms with "for...in" loop Convert data entered in form-fields to csv However, when running the command I receive the error: fc-int01-generateAppearances: None Traceback (most recent call last): File "C:\Python27\Scripts\test3.py", line 31, in <module> writer.writerow(value) _csv.Error: sequence expected If I just the