'Declaration
Public Function ConvertToPDF( _ ByVal InputStream As Stream, _ ByVal DocumentFormat As DocumentFormat, _ ByVal OutputStream As Stream, _ Optional ByVal Conformance As PdfConformance _ ) As GdPictureStatus
public GdPictureStatus ConvertToPDF( Stream InputStream, DocumentFormat DocumentFormat, Stream OutputStream, PdfConformance Conformance )
public function ConvertToPDF( InputStream: Stream; DocumentFormat: DocumentFormat; OutputStream: Stream; Conformance: PdfConformance ): GdPictureStatus;
public function ConvertToPDF( InputStream : Stream, DocumentFormat : DocumentFormat, OutputStream : Stream, Conformance : PdfConformance ) : GdPictureStatus;
public: GdPictureStatus ConvertToPDF( Stream* InputStream, DocumentFormat DocumentFormat, Stream* OutputStream, PdfConformance Conformance )
public: GdPictureStatus ConvertToPDF( Stream^ InputStream, DocumentFormat DocumentFormat, Stream^ OutputStream, PdfConformance Conformance )
Parameters
- InputStream
- An input stream object. This stream object must be initialized before it can be sent into this method and it should stay open for subsequent use.
This stream should be open for reading and should be closed/disposed by the user as well.
- DocumentFormat
- A member of the DocumentFormat enumeration. Specifies a file format of the input document. Supported input document formats are listed here.
You can use a value of GdPicture14.DocumentFormat.DocumentFormatUNKNOWN if you are not sure about the document's format.
- OutputStream
- An output stream object. This stream object must be initialized before it can be sent into this method and it should stay open for subsequent use.
This stream should be open for writing and should be closed/disposed by the user as well.
- Conformance
- A member of the PdfConformance enumeration. Specifies the required PDF version or conformance to the PDF or PDF/A standard of the resuting PDF document.
Return Value
We strongly recommend always checking this status first.