PdfProducerProduce Method (String, ImportFormat, String)
Produce the PDF file using specified import format.
Examples
This sample shows how to produce Pdf file from CGM file.
string inputFile = "myImage.cgm";
string outputFile = "myPdf.pdf";
PdfProducer.Produce(inputFile, ImportFormat.Cgm, outputFile);

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

Parameters

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