0

I'm working on a new web application where users can drag and drop their own elements to create a printable design. The application then creates a .pdf file that is send to the printing studio, prints the design and sends to the customer.

Now as we know web browsers and HTML is working with RGB and printers prefer to use CMYK. Is there a way to create a .pdf file using CMYK from the HTML instead of RGB? Any ideas?

4

1 回答 1

0

ABCpdf .NET 将为您完成这项工作。

使用 AddImageUrl/Html 将 HTML 插入 PDF。这些方面的东西:

Doc theDoc = new Doc();
int theID = theDoc.AddImageUrl("http://www.google.com");
while (true) {
    if (!theDoc.Chainable(theID)) break;
    theDoc.Page = theDoc.AddPage();
    theID = theDoc.AddImageToChain(theID);
}

然后使用 RecolorOperation 将 PDF 转换为 CMYK。像这样的东西:

RecolorOperation op = new RecolorOperation();
op.DestinationColorSpace = new ColorSpace(theDoc.ObjectSoup, ColorSpaceType.DeviceCMYK);
op.Recolor(theDoc);

然后保存。像这样的东西:

theDoc.Save(@"c:\output.pdf");

我的回复可能包含基于 ABCpdf 的概念。这就是我的工作。这是我所知道的。:-)

于 2013-06-18T09:44:37.583 回答