Close

Relief for ODA Team in Ukraine

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

Writes specified document content to a specified file.

Parameters
Description
doc
[in] A smart pointer to the document instance.
file
[in] A full path to the output file.

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.