简体   繁体   English

C#文档中的PDFsharp具有CMYK和RGB两种颜色模式

[英]PDFsharp in C# document has both color modes CMYK and RGB

In a C# project with PDFsharp (WPF build) I save a PDF document setting 在具有PDFsharp(WPF构建)的C#项目中,我保存了PDF文档设置

PdfDocument document = new PdfDocument();
document.Options.ColorMode = PdfColorMode.Cmyk;

In the document I draw an image stored in another PDF source and a PNG/TIFF image (depends). 在文档中,我绘制了存储在另一个PDF源中的图像和PNG / TIFF图像(视情况而定)。

When I open the saved document in Adobe Bridge it tells me that both color modes CMYK and RGB are set in the document. 当我在Adobe Bridge中打开保存的文档时,它告诉我在文档中同时设置了CMYK和RGB两种颜色模式。 How can I make PDFsharp save my document in CMYK only? 如何使PDFsharp仅将文档保存在CMYK中?

Make sure that all PDF sources used to create the new PDF are set to CMYK. 确保用于创建新PDF的所有PDF源均设置为CMYK。 The setting you use applies to new PDF content, but not to pages imported from external source PDFs. 您使用的设置适用于新的PDF内容,但不适用于从外部源PDF导入的页面。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM