
################
A3DPDFGetStreams
################

.. c:function:: A3DStatus A3DPDFGetStreams(const A3DUTF8Char *pcFileName, A3DUns32 iFlags, A3DStream3DPDFData **ppStreamData, A3DInt32 *piNumStreams)

   .. rst-class:: sig-pretty-signature
   
      | :c:enum:`~A3DStatus` A3DPDFGetStreams(*const* :c:type:`~A3DUTF8Char`\ \* **pcFileName**\ , :c:type:`~A3DUns32` **iFlags**\ , :c:struct:`~A3DStream3DPDFData`\ \*\* **ppStreamData**\ , :c:type:`~A3DInt32`\ \* **piNumStreams**\ )
   
   Function to retrieve all 3D streams embedded in a PDF document, this function export native and PDF views (defined using Acrobat and not in the origin native CAD file).
   
   It also manages secured PDF.
   
   The stream is the raw binary data stored as a char\* stream. A PRC stream can be interpreted with the function A3DAsmModelFileLoadFromPrcStream. A U3D stream needs to be written as a physical file before being read with classical A3DAsmModelFileLoadFromFile function. If pcFileName is NULL, \*ppStreamData will be freed if \*piNumStreams is non-null. A3DPDFGetStreams(NULL, NULL, ppStreamData, piNumStreams) to release \*ppStreamData.
   
   **Return Values**
   
   
      **A3D_SUCCESS**\ :
   
      **A3D_LOAD_CANNOT_ACCESS_CADFILE**\ :
   
   
   
      12.0
   
   
   **Parameters**
   
   
      **pcFileName**\ : References the path to the PDF file
   
      **iFlags**\ : view flags :ref:`tBit Field to indicate the options for filtering 3D views. <group__a3d__pdf___filter_views>`
   
      **ppStreamData**\ : Array of stream data
   
      **piNumStreams**\ : Number of streams
   
   
   **Returns**
   
   
      A3D_SUCCESS in case of success or an error code
   
   




