Approved
Last Updated: 30 Jul 2019 12:32 by ADMIN
ADMIN
Deyan
Created on: 03 Jul 2017 08:28
Category: PdfProcessing
Type: Feature Request
10
PdfProcessing: Implement API for flattening form fields
This API should provide a method for removing all fields and widgets in the document and draw the default widget appearance in place of the removed widgets.

WORKAROUND: Sample implementation for flattening form fields may be seen in the FlattenFormFields method from the attached demo project.
Attached Files:
4 comments
ADMIN
Tanya
Posted on: 30 Jul 2019 12:32
Hi Hector,

The task is not scheduled for implementation during the current release as we are working on more demanded functionalities for the library. Although the flattening is with a high priority in our backlog, at this point I cannot say when it might be available. Please, continue following this item so we can notify you when its status changes.

Regards,
Tanya
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Hector
Posted on: 23 Jul 2019 21:47
Any plans on implementing this into the core application?
ADMIN
Tanya
Posted on: 12 Mar 2019 14:06
Thank you for this update, Hector.

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.
Hector
Posted on: 07 Mar 2019 16:26

I know this is old, but in the code snippet there was one critical issue. When a textbox has NO data, the FormSource from Content.NormalContentSource will be NULL. Which will cause an issue when you get to FixedContentEditor.DrawForm(). Simple null check will avoid this issue since an empty textbox (with no borders/style) is just blank anyhow.

 

        private static void FlattenWidgetAppearance(FixedContentEditor pageEditor, Widget widget)
        {
            FormSource widgetAppearance = GetWidgetNormalAppearance(widget);

            if (widgetAppearance == null) return;

            pageEditor.Position.Translate(widget.Rect.Left, widget.Rect.Top);
            pageEditor.DrawForm(widgetAppearance, widget.Rect.Width, widget.Rect.Height);
        }