Close

Relief for ODA Team in Ukraine

Learn more
ODA Kernel SDK
OdFile::exportPdf Method (OdDocumentPtr&, OdStreamBufPtr&)
Syntax
C++
OdUInt32 exportPdf(OdDocumentPtr& doc, OdStreamBufPtr& output);

Writes specified document content to a specified data stream.

Parameters
Description
doc
[in] A smart pointer to the document instance.
output
[in] A smart pointer to the output data stream buffer.

Returns the result of the write operation. If data has been written successfully, returns eOk, otherwise returns an error code.

If a PDFToolkit exception occurs, the method returns an error code from the PDFToolkit level. If another exception occurs, the method returns the particular error code. If an unknown exception occurs, the method returns the eInternalError value.

Copyright © 2002-2022. Open Design Alliance All rights reserved.