Product: c# pdfnet.dll
Product Version: V6.71595
Please give a brief summary of your issue:
When viewing pdf in overprint mode colors are wrong (darkened)
Please describe your issue and provide steps to reproduce it:
View this pdf in adobe reader and set Use Overprint Always and color 251 , 68 , 241 will be wrong:
public void TestColor()
{
PDFNet.Initialize(LicenseKey);
string outputFile = "./color.pdf";
using (var output = new FileStream(outputFile, FileMode.Create, FileAccess.Write))
using (PDFDoc doc = new PDFDoc())
using (ElementBuilder eb = new ElementBuilder())
using (ElementWriter writer = new ElementWriter())
{
var page = doc.PageCreate();
writer.Begin(page);
var rect = eb.CreateRect(0, 0, 500, 500);
rect.SetPathStroke(false);
rect.SetPathFill(true);
rect.GetGState().SetFillColorSpace(ColorSpace.CreateDeviceRGB());
rect.GetGState().SetFillColor(new ColorPt(251 / 255.0, 68 / 255.0, 241 / 255.0));
writer.WritePlacedElement(rect);
writer.End();
doc.PagePushBack(page);
doc.Save(output, SaveOptions);
}
}
Tee same problem with colors in overprint appears if I add image to the page or pdf.
How to fill with colors or add image so the color won’t change in overprint mode?
Please provide a link to a minimal sample where the issue is reproducible: