
#####################################
A3DPDFDocumentAppendPageFromPDFFileEx
#####################################

.. c:function:: A3DStatus A3DPDFDocumentAppendPageFromPDFFileEx(A3DPDFDocument *pDoc, const A3DUTF8Char *pcFileName, const A3DBool bRenameFields, A3DPDFPage **ppPage)

   .. rst-class:: sig-pretty-signature
   
      | :c:enum:`~A3DStatus` A3DPDFDocumentAppendPageFromPDFFileEx(:c:type:`~A3DPDFDocument`\ \* **pDoc**\ , *const* :c:type:`~A3DUTF8Char`\ \* **pcFileName**\ , *const* :c:type:`~A3DBool` **bRenameFields**\ , :c:type:`~A3DPDFPage`\ \*\* **ppPage**\ )
   
   Appends new pages from a PDF template to a document, with the possibility to rename all form fields to avoid PDF conflicts.
   
   **Parameters**
   
   
      **pDoc**\ : The Document object to work with.
   
      **pcFileName**\ : The input file name of the PDF template.
   
      **bRenameFields**\ : If true, the form fields of the template pages are renamed, appending the position of the pages in the final document to every fields. Note that the index of the first page is 1. For example, a field 'MyTitle' will be renamed 'MyTitle_1' if the page is inserted as the first page of the document. If false, the form fields are not renamed and the function will fail if some fields already exist on the document with the same name.
   
      **ppPage**\ : The Page object for the last page inserted.
   
   
   **Returns**
   
   
      A3D_SUCCESS in case of success or an error code
   
   




