
############################
A3DPDFPageFieldButtonSetIcon
############################

.. c:function:: A3DStatus A3DPDFPageFieldButtonSetIcon(A3DPDFPage *pPage, const A3DUTF8Char *pcFieldName, const A3DPDFImage *pImage)

   .. rst-class:: sig-pretty-signature
   
      | :c:enum:`~A3DStatus` A3DPDFPageFieldButtonSetIcon(:c:type:`~A3DPDFPage`\ \* **pPage**\ , *const* :c:type:`~A3DUTF8Char`\ \* **pcFieldName**\ , *const* :c:type:`~A3DPDFImage`\ \* **pImage**\ )
   
   Function to set the icon of a button form field.
   
   The image is defined from a :c:type:`~A3DPDFImage`\ object. It is always scaled non-proportionally, which means always adapted and stretched to the size of the field.
   
   **Parameters**
   
   
      **pPage**\ : The Page object to work with.
   
      **pcFieldName**\ : The name of the form field. Only Acroform fields are supported.
   
      **pImage**\ : The image to store on the button field.
   
   
   **Returns**
   
   
      A3D_SUCCESS in case of success or an error code
   
   




