
####################
A3DPDFDocumentSaveEx
####################

.. c:function:: A3DStatus A3DPDFDocumentSaveEx(A3DPDFDocument *pDoc, const int iSaveFlags, const A3DUTF8Char *pcFileName)

   .. rst-class:: sig-pretty-signature
   
      | :c:enum:`~A3DStatus` A3DPDFDocumentSaveEx(:c:type:`~A3DPDFDocument`\ \* **pDoc**\ , *const* *int* **iSaveFlags**\ , *const* :c:type:`~A3DUTF8Char`\ \* **pcFileName**\ )
   
   Function to save the PDF document, using some flags for optimizing the size of the resulting PDF.
   
   **Parameters**
   
   
      **pDoc**\ : The Document object to save, using some flags for optimizing the resulting PDF.
   
      **iSaveFlags**\ : The saving flags, composed of bit fields detailed in :ref:`Bit Field to indicate the saving options. <group__a3d__pdf__saveflagsbits>`\ .
   
      **pcFileName**\ : The file name where to save the document. The path (absolute or relative) must be provided (use ".\\" or "./" for the current directory).
   
   
   **Returns**
   
   
      A3D_SUCCESS in case of success or an error code
   
   




