The following example shows the effect that this parameter has
on PDF rendering.
[C#]
Doc theDoc = new Doc();
// Open document with overprint
theDoc.Read(Server.MapPath("../mypics/Overprint.pdf"));
// Render the document (we need to go to CMYK for overprint)
theDoc.Rendering.ColorSpace = XRendering.ColorSpaceType.Cmyk;
theDoc.Rendering.Overprint = true;
theDoc.Rendering.IccRgb = "device";
theDoc.Rendering.IccGray = "device";
theDoc.Rendering.IccCmyk = "device";
theDoc.Rendering.IccOutput = "device";
// Put image back into another PDF and render the document as RGB
// (so that we can see the effect of the overprint in RGB)
Doc theRgb = new Doc();
theRgb.AddImageData(theDoc.Rendering.GetData(".tif"),
1);
theDoc.Clear();
theRgb.Rendering.DotsPerInch = 36;
theRgb.Rendering.ColorSpace = XRendering.ColorSpaceType.Rgb;
theRgb.Rendering.Save(Server.MapPath("RenderingOverprint.png"));
theRgb.Clear();
[Visual Basic]
Dim theDoc As Doc = New Doc()
' Open document with overprint
theDoc.Read(Server.MapPath("../mypics/Overprint.pdf"))
' Render the document (we need to go to CMYK for overprint)
theDoc.Rendering.ColorSpace = XRendering.ColorSpaceType.Cmyk
theDoc.Rendering.Overprint = True
theDoc.Rendering.IccRgb = "device"
theDoc.Rendering.IccGray = "device"
theDoc.Rendering.IccCmyk = "device"
theDoc.Rendering.IccOutput = "device"
' Put image back into another PDF and render the document as RGB
' (so that we can see the effect of the overprint in RGB)
Dim theRgb As Doc = New Doc()
theRgb.AddImageData(theDoc.Rendering.GetData(".tif"),
1)
theDoc.Clear()
theRgb.Rendering.DotsPerInch = 36
theRgb.Rendering.ColorSpace = XRendering.ColorSpaceType.Rgb
theRgb.Rendering.Save(Server.MapPath("RenderingOverprint.png"))
theRgb.Clear()
RenderingOverprint.png
|