A3DGet3DPDFStreams

A3DStatus A3DGet3DPDFStreams(const A3DUTF8Char *pcFileName, A3DStream3DPDFData **ppStreamData, A3DInt32 *piNumStreams)
A3DStatus A3DGet3DPDFStreams(const A3DUTF8Char* 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 A3DStream3DPDFData object. It will be defaulted to kA3DPDFUnknownStreamIdentifier.

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