ComPDF React Native - v3.0.0
    Preparing search index...

    Class CPDFWidgetUtil

    Copyright © 2014-2026 PDF Technologies, Inc. All Rights Reserved.

    THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE ComPDFKit LICENSE AGREEMENT. UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES. This notice may not be removed from this file.

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Creates a unique field name for a PDF form widget with timestamp

      This method generates a field name by combining the widget type name with the current date and time.

      Parameters

      • widgetType: string

        The type of the widget

      Returns string

      A unique field name in the format: WidgetType_YYYYMMdd HH:mm:ss.SSS

      const fieldName = CPDFWidgetUtil.createFieldName(CPDFWidgetType.TEXT_FIELD);
      // Returns: 'Textfield_20260122 14:30:45.123'
      const checkboxName = CPDFWidgetUtil.createFieldName(CPDFWidgetType.CHECKBOX);
      // Returns: 'Checkbox_20260122 14:30:45.456'