HPDFLayoutManager

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(wchar_t const *name)

This method sets the filename of the template to modify

Parameters:name – Fully qualified path of PDF template
inline void Set3DFieldName(wchar_t const *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(wchar_t const *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(wchar_t const *name, wchar_t const *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(wchar_t const *name, wchar_t const *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.