Approved
Last Updated: 31 Jan 2019 13:30 by ADMIN
ADMIN
Tanya
Created on: 21 Feb 2018 16:55
Category: PdfProcessing
Type: Bug Report
5
PdfProcessing: Form Fields are not copied when merging documents
When merging, only the widgets are copied but not their fields. This can lead to ArgumentNullException when exporting the document. Implement copying the fields and consider cases which include collision of names of the fields.

Workaround:
Repair the generated document using the following code:
foreach (Widget widget in this.pdfDocument.Annotations.Where(annot => annot.Type == AnnotationType.Widget))
{
    if (!this.pdfDocument.AcroForm.FormFields.Contains(widget.Field.Name))
    {
        this.pdfDocument.AcroForm.FormFields.Add(widget.Field);
    }
}
In case of Name collision, you can use the project attached to the following feedback item to rename the duplicate fields: Provide a way to rename FormFields.
4 comments
ADMIN
Tanya
Posted on: 31 Jan 2019 13:30
Thank you for this update.

Regards,
Tanya
Progress Telerik
Get quickly and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
GuiGuiGui
Posted on: 29 Jan 2019 00:57

In case it helps anyone else... you need to run the workaround repair code on your RadFixedDocument *after* you have merged your documents. Don't do it on the PDF form file(s) you are readying to merge before actually doing your merge.

 

ADMIN
Martin
Posted on: 23 Nov 2018 12:51
Hello,

We added an example project for renaming RadioButtonField in the feedback item concerning this functionality.: https://feedback.telerik.com/document-processing/1356455-pdfprocessing-provide-a-way-to-rename-formfields.

I hope that this helps.

Regards,
Martin
Progress Telerik
Get quickly and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
GuiGuiGui
Posted on: 15 Nov 2018 21:31

Has anyone tried the attached project for name collisions with a radio button? It is slightly different than Textbox/Checkbox/Listbox etc and am having trouble with it.