Approved
Last Updated: 28 Dec 2018 11:55 by ADMIN
ADMIN
Tanya
Created on: 21 Feb 2018 16:55
Category: PdfProcessing
Type: Bug Report
3
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.
(Total attached files size should be smaller than 20mb. Allowed extensions: .zip, .rar, .jpg, .png, .gif)
2 comments
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.