I have a document that I have used SpirePDF to add a Watermark to (code below). If I print this on a HP printer through a a PCL driver it produces the document perfectly with the page contents and watermark appearing correctly.
Add Watermark code
private void AddWaterMark(string filePath, Image watermark)
{
var pdf = new PdfDocument();
pdf.LoadFromFile(filePath);
PdfPageBase page = pdf.Pages[0];
page.BackgroundImage = watermark;
pdf.SaveToFile(filePath);
pdf.Dispose();
}
Move to postscript Driver
If I open the document in Adobe Reader and print to a Postscript printer driver (same physical printer as above) then it works perfectly.
BUT
If I use a Postscript driver and print using the code below then only the Watermark is printed and the actual contents of the page are not printed. (The physical page only contains the watermark)
pdf.LoadFromFile(filePath);
pdf.PrintSettings.PrinterName = item.QueueName;
pdf.PrintSettings.Duplex = System.Drawing.Printing.Duplex.Vertical;
pdf.PrintSettings.PrinterResolutionKind = Spire.Pdf.Print.PdfPrinterResolutionKind.Low;
pdf.PrintSettings.Color = true;
pdf.PrintSettings.DocumentName = item.FileName;
pdf.Print();
Any ideas?
regards
Dan Kenny.