After I LoadFromFile() the document, I can SaveToFile() with a new name, then open the new file, and the colors display correctly. But they don't print correctly. I have tried manually setting the ColorSpace to RGB, both when creating the PdfDocument and after loading it, but it doesn't help. Yes, my printer is set to print color, and the canvases print colors just fine. But I can't figure out how to get the text colors to print. It appears that you may have addressed this issue with regular Spire PDF, and perhaps you haven't fixed it yet with the free version. Any ideas?
- Code: Select all
using (var doc = new PdfDocument())
{
try
{
doc.LoadFromFile(filename);
doc.PrintDocument.Print();
}
catch (Exception e)
{
throw e;
}
}
Bill Luckett