Printing PDF with JPEG/EXIF image

I have a JEPG created by Adobe Photoship CS5 Mac. That image(a signature) is being embedded into a MS Word 2003 document. The Word document is being saved as a PDF document. That new PDF is merged with another PDF. Then the combined PDF is being printed to a printer.

The problem is with the image on the printed page. The image is a signature in black with a white background. The printed page has a solid black background with the edges of the signature being white.

I am assuming the cause is the EXIF information that CS5 is now embedding in the image. The printed page looks correct when the image is edited with the WinXP version of MS Paint.

/// Sample code
static void Main(string[] args)
{
var p = new PrinterSettings { PrinterName = @"\prt-05\HP4650_Q" };
p.DefaultPageSettings.Margins.Top = 0;
p.DefaultPageSettings.Margins.Left = 0;
p.DefaultPageSettings.Margins.Bottom = 0;
p.DefaultPageSettings.Margins.Right = 0;

var ps = new PageSettings();
ps.Margins.Top = 0;
ps.Margins.Left = 0;
ps.Margins.Bottom = 0;
ps.Margins.Right = 0;

var license = new Aspose.Words.License();
license.SetLicense(@“Aspose.Total.lic”);

var document = new Document(@“C:\Temp\Signature.doc”);
document.Save(@“C:\Temp\Signature.pdf”, SaveFormat.Pdf);

var vw = new PdfViewer();
vw.OpenPdfFile(@“C:\Temp\Signature.pdf”);
vw.AutoResize = true;
vw.PrintDocumentWithSettings(ps, p);
vw.ClosePdfFile();
}

Hi Andy,

Please try to use the latest version of Aspose.Pdf.Kit for .NET at your end. Also, we have [released merged Aspose.Pdf for .NET](https://blog.aspose.com/2011/07/01/first-version-of-merged-aspose.pdf-for-.net-is-now-available-for-download) as well, which contains features of both Aspose.Pdf for .NET and Aspose.Pdf.Kit for .NET. You may try to use this version as well. In order to use the features similar to the Aspose.Pdf.Kit, you only need to add reference to the Aspose.Pdf.Facades namespace.

If it still doesn’t resolve your issue then please share the input PDF file, which you’re trying to print, so that we would be able to investigate the issue at our end.

We’re sorry for the inconvenience and looking forward to help you out.
Regards,

The latest version of pdf.kit resolved the problem. Now time to regression test everything.

Hi Andy,

This is good to know that the issue is resolved with the latest version. If you find any further questions, please do let us know.

Regards,