# HPDFLayoutManager

## Functions

| `HPDFLayoutManager`
| `~HPDFLayoutManager`
void | `SetTemplateName`
void | `Set3DFieldName`
void | `AddMiscModification`
void | `AddTextModification`
void | `AddImageModification`
vlist_s * | `GetFieldModificationList`
wchar_t * | `GetTemplateName`
wchar_t * | `Get3DFieldName`

## Detailed Description

class HPDFLayoutManager

  The HPDFLayoutManager class allows for modifications of an existing PDF template

  Public Functions

  inline HPDFLayoutManager()

    Constructs an HPDFLayoutManager object.

  inline ~HPDFLayoutManager()

    HPDFLayoutManager destructor.

  inline void SetTemplateName(const wchar_t *name)

    This method sets the filename of the template to modify

    Parameters

      name – Fully qualified path of PDF template

  inline void Set3DFieldName(const wchar_t *name)

    This method sets the name of the PDF field which serves as the 3D container

    Parameters

      name – Name of PDF field

  inline void AddMiscModification(const wchar_t *name, wchar_t *javascript = 0, HPDFLayoutVisibility visibility = HUnchanged)

    This method allows the user to attach javascript to a field and change its visibility

    Parameters

      - name – Name of PDF form field

      - javascript – Javascript code to attach to this PDF form field

      - visibility – New visibility setting for this PDF form field.

  inline void AddTextModification(const wchar_t *name, const wchar_t *text)

    This method allows the user to change the text of a PDF form field

    Parameters

      - name – Name of PDF form field

      - text – New text of PDF form field

      - isText – Specifies if PDF form field to modify is text field or button

  inline void AddImageModification(const wchar_t *name, const wchar_t *imagename, HPDFLayoutImageType imagetype, int imagewidth, int imageheight)

    This method allows the user to change the image of a PDF form field

    Parameters

      - name – Name of PDF form field

      - imagename – Full path to the image

      - imagetype – Type of image

      - imagewidth – Width of Image

      - imageheight – Height of Image

  inline vlist_s *GetFieldModificationList()
    Returns

      A pointer to the list of field modifications.

  inline wchar_t *GetTemplateName()
    Returns

      A pointer to the template name

  inline wchar_t *Get3DFieldName()
    Returns

      A pointer to the PDF field name for the 3d object.