PdfProducerProduce Method (String, ImportOptions, String)
Produce the PDF file using specified import option.
Examples
This sample shows how to produce Pdf file from CGM file.
string inputFile = "myImage.cgm";
string outputFile = "myPdf.pdf";
ImportOptions importOptions = new CgmImportOptions();
PdfProducer.Produce(inputStream, importOptions, outputStream);

Namespace: Aspose.Pdf.Facades
Assembly: Aspose.PDF (in Aspose.PDF.dll) Version: 19.11
Syntax
public static void Produce(
	string inputFileName,
	ImportOptions options,
	string outputFileName
)

Parameters

inputFileName
Type: SystemString
Input file name.
options
Type: Aspose.PdfImportOptions
Import option.
outputFileName
Type: SystemString
Output PDF stream.
Exceptions
ExceptionCondition
InvalidFileFormatExceptionThe exception is thrown when a file is invalid.
ArgumentExceptionInput or output file name is an empty string
See Also