A3DGet3DPDFStreams
-
A3DStatus
A3DGet3DPDFStreams(const A3DUTF8Char *pcFileName, A3DStream3DPDFData **ppStreamData, A3DInt32 *piNumStreams) A3DStatusA3DGet3DPDFStreams(constA3DUTF8Char* pcFileName,A3DStream3DPDFData** ppStreamData,A3DInt32* piNumStreams)Retrieve all 3D streams embedded in a PDF document.
The stream is the raw binary data stored as a char* stream. A PRC stream can be interpreted with the function A3DAsmModelFileLoadFromPrcStream. If pcFileName is null, *ppStreamData will be freed if *piNumStreams is non-null. A3DGet3DPDFStreams(0, ppStreamData, piNumStreams) to release *ppStreamData.
Note that this method does not set the identifier of the given
A3DStream3DPDFDataobject. It will be defaulted tokA3DPDFUnknownStreamIdentifier.Return Values
A3D_LOAD_INVALID_FILE_NAME: if the file does not correspond to a valid file name
A3D_LOAD_CANNOT_ACCESS_CADFILE: if the file can’t be accessed
A3D_LOAD_INVALID_FILE_FORMAT: if the PDF format could not be detected
A3D_ERROR: if another generic error
A3D_SUCCESS:
Parameters
pcFileName: References the path to the PDF file
ppStreamData: Array of stream data
piNumStreams: Number of streams
Returns
A3D_SUCCESS in case of success or an error code