API Reference > Classes > PRC Export-Import Classes > OdPrcToPdfModule Class > OdPrcToPdfModule Methods > prcToPdf Method > OdPrcToPdfModule::prcToPdf Method (OdPrcHostAppServices &, OdStreamBufPtr, OdStreamBufPtr, OdGsPageParams &, OdGeMatrix3d &, double, double, PDF3D_ENUMS::PRCRenderingMode)
OdPrcToPdfModule::prcToPdf Method (OdPrcHostAppServices &, OdStreamBufPtr, OdStreamBufPtr, OdGsPageParams &, OdGeMatrix3d &, double, double, PDF3D_ENUMS::PRCRenderingMode)
Syntax
C++
virtual OdResult prcToPdf(OdPrcHostAppServices & pServices, OdStreamBufPtr pPrcStream, OdStreamBufPtr pPdfStream, const OdGsPageParams & pdfParams, const OdGeMatrix3d & C2W, double CO, double OS, PDF3D_ENUMS::PRCRenderingMode rendMode = PDF3D_ENUMS::kDefaultMode);
Parameters 
Description 
OdPrcHostAppServices & pServices 
[out] A placeholder for a host services object.  
OdStreamBufPtr pPrcStream 
[in] A smart pointer to an input stream with PRC data.  
OdStreamBufPtr pPdfStream 
[in] A smart pointer to an output stream (.pdf file) to write to.  
const OdGsPageParams & pdfParams 
[in] Graphic parameters of a page.  
const OdGeMatrix3d & C2W 
[in] A matrix which determines the camera position within the world coordinate system.  
double CO 
[in] A distance between the camera and the center of rotation.  
double OS 
[in] A scale value.  
PDF3D_ENUMS::PRCRenderingMode rendMode = PDF3D_ENUMS::kDefaultMode 
[in] A rendering mode value.
 

Returns eOk if PRC data was successfully written to a specified output stream or an appropriate error code in the other case.

Writes PRC data to a specified output stream.

Copyright (c) 2002-2020. Open Design Alliance. All rights reserved.