好的,感谢,已找到关键代码:
//PDF文件保存
//if ((Format == RasterImageFormat.RasPdf) ||
// (Format == RasterImageFormat.RasPdfG31Dim) ||
// (Format == RasterImageFormat.RasPdfG32Dim) ||
// (Format == RasterImageFormat.RasPdfG4) ||
// (Format == RasterImageFormat.RasPdfJbig2) ||
// (Format == RasterImageFormat.RasPdfJpeg) ||
// (Format == RasterImageFormat.RasPdfJpeg422) ||
// (Format == RasterImageFormat.RasPdfJpeg411))
//{
// switch (PdfProfile)
// {
// case FileSavePdfProfiles.PdfA:
// codecs.Options.Pdf.Save.Version = CodecsRasterPdfVersion.PdfA;
// break;
// case FileSavePdfProfiles.Pdf14:
// codecs.Options.Pdf.Save.Version = CodecsRasterPdfVersion.V14;
// break;
// case FileSavePdfProfiles.Pdf15:
// codecs.Options.Pdf.Save.Version = CodecsRasterPdfVersion.V15;
// break;
// case FileSavePdfProfiles.Pdf16:
// codecs.Options.Pdf.Save.Version = CodecsRasterPdfVersion.V16;
// break;
// case FileSavePdfProfiles.Pdf13:
// codecs.Options.Pdf.Save.Version = CodecsRasterPdfVersion.V13;
// break;
// case FileSavePdfProfiles.Pdf17:
// codecs.Options.Pdf.Save.Version = CodecsRasterPdfVersion.V17;
// break;
// case FileSavePdfProfiles.Default:
// default:
// codecs.Options.Pdf.Save.Version = CodecsRasterPdfVersion.V12;
// break;
// }
//} |