Class PdfProducer
内容
[
隐藏
]PdfProducer class
表示一个从其他格式生成 PDF 的类。此示例展示了如何从 CGM 文件生成 Pdf 文件。
string inputFile = "myImage.cgm";
string outputFile = "myPdf.pdf";
try
{
PdfProducer.Produce(inputFile, ImportFormat.Cgm, outputFile);
// Success produced pdf file.
}
catch (InvalidCgmFileFormatException e)
{
// Do something...
}
public abstract class PdfProducer
Methods
| Name | Description |
|---|---|
| static Produce(Stream, ImportFormat, Stream) | 使用指定的导入格式生成 PDF 流。此示例展示了如何从 CGM 流生成 Pdf 流。 |
| static Produce(Stream, ImportFormat, string) | 使用指定的导入格式生成 PDF 文件。此示例展示了如何从 CGM 流生成 Pdf 文件。 |
| static Produce(Stream, ImportOptions, Stream) | 使用指定的导入选项生成 PDF 文件。此示例展示了如何从 CGM 流生成 Pdf 流。 |
| static Produce(Stream, ImportOptions, string) | 使用指定的导入选项生成 PDF 文件。此示例展示了如何从 CGM 流生成 Pdf 文件。 |
| static Produce(string, ImportFormat, Stream) | 使用指定的导入格式生成 PDF 流。此示例展示了如何从 CGM 文件生成 Pdf 流。 |
| static Produce(string, ImportFormat, string) | 使用指定的导入格式生成 PDF 文件。此示例展示了如何从 CGM 文件生成 Pdf 文件。 |
| static Produce(string, ImportOptions, Stream) | 使用指定的导入选项生成 PDF 流。此示例展示了如何从 CGM 文件生成 Pdf 流。 |
| static Produce(string, ImportOptions, string) | 使用指定的导入选项生成 PDF 文件。此示例展示了如何从 CGM 文件生成 Pdf 文件。 |
See Also
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF