'Declaration
Public Overloads Function ConvertToPDFA( _ ByVal Stream As Stream, _ ByVal Conformance As PdfConversionConformance, _ ByVal AllowVectorization As Boolean, _ ByVal AllowRasterization As Boolean, _ Optional ByVal TimeoutMillisec As Integer _ ) As GdPictureStatus
public GdPictureStatus ConvertToPDFA( Stream Stream, PdfConversionConformance Conformance, bool AllowVectorization, bool AllowRasterization, int TimeoutMillisec )
public function ConvertToPDFA( Stream: Stream; Conformance: PdfConversionConformance; AllowVectorization: Boolean; AllowRasterization: Boolean; TimeoutMillisec: Integer ): GdPictureStatus;
public function ConvertToPDFA( Stream : Stream, Conformance : PdfConversionConformance, AllowVectorization : boolean, AllowRasterization : boolean, TimeoutMillisec : int ) : GdPictureStatus;
public: GdPictureStatus ConvertToPDFA( Stream* Stream, PdfConversionConformance Conformance, bool AllowVectorization, bool AllowRasterization, int TimeoutMillisec )
public: GdPictureStatus ConvertToPDFA( Stream^ Stream, PdfConversionConformance Conformance, bool AllowVectorization, bool AllowRasterization, int TimeoutMillisec )
Parameters
- Stream
- A Stream object where the converted PDF document will be saved to. This Stream object must be initialized before it can be sent into this method and it should remain open for subsequent use.
- Conformance
- A member of the PdfConversionConformance enumeration. Specifies the required conformance level of the converted PDF document.
- AllowVectorization
- Set this parameter to true, if you want to let the conversion engine use the page vectorization when the direct conversion is not possible. Otherwise set it to false. Vectorization produces vector based graphic elements where applicable, for example, fonts and paths, and combines them with image resources.
The recommended value is true.
- AllowRasterization
- Set this parameter to true, if you want to let the conversion engine use the page rasterization when the direct conversion and vectorization are not possible or allowed. Otherwise set it to false. Rasterization renders the document content using the raster (pixel-based) approach.
The recommended value is true.
- TimeoutMillisec
Return Value
A member of the GdPictureStatus enumeration. If the method has been successfully followed, then the return value is GdPictureStatus.OK.
We strongly recommend always checking this status first.