# A3DPDFDocumentAppendPageFromPDFFileEx

A3DStatus `A3DPDFDocumentAppendPageFromPDFFileEx`(A3DPDFDocument *pDoc, const A3DUTF8Char *pcFileName, const A3DBool bRenameFields, A3DPDFPage **ppPage)
  `A3DStatus` A3DPDFDocumentAppendPageFromPDFFileEx(`A3DPDFDocument`* pDoc, const `A3DUTF8Char`* pcFileName, const `A3DBool` bRenameFields, `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

Conversation saved
HOOPSY BETA

### Hello! I'm HOOPSY

Your multilingual generative AI assistant for documentation. Ask me anything about HOOPS Exchange in your own language, or choose a sample question below to start a conversation:

What is HOOPS Exchange?
What are the latest release notes for HOOPS Exchange?
How do I start evaluating HOOPS Exchange?
How do I write my first sample application?
How can I get assistance?

HOOPSY may store conversations according to OpenAI's policy. Responses may not always be accurate.

HOOPSY is thinking...