We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Word Image Shadows converted to white colour in PDF

While testing the “Aspose.Word”, we found an issue. Shadows in the part of image is converted to White colour background. PDF created through postscript driver which is not a problem when we create PDF using Word application.

Please rectify and update us. Sample document has been attached.


Thank you for contacting support. Your query is about Aspose.Words API therefore we’re moving this thread to the relevant forum (Aspose.Words Support Forum) so that the concerned fellow worker could pick it up in order to assist you with the presented scenario.


Thanks for your inquiry.

Aspose.Words mimics the way the Microsoft Word works. I converted your ‘sample.doc’ file to Pdf format using Microsoft Word 2016 and attached the resultant file (msw-2016.pdf) here for your reference. You can see that Aspose.Words 17.1.0 produces an output (see attached 17.1.0.pdf) similar to Microsoft Word. So, this seems to be an expected behavior. If we can help you with anything else, please feel free to ask.

Best regards,

Thanks Hafeez, for the reply.

Please check by creating “postscript” PDF (for example. use “Adobe PDF” driver or any other postscript driver). Our process is to create PDF file using the PS file.


Thanks for your inquiry. Are you first converting Sample.doc file to PostScript file using the following code?

Document doc = new Document(MyDir + @"Sample.doc");
doc.Save(MyDir + @"17.1.0.ps");

And later printing this PS file to PDF?

Can you please list complete steps to reproduce this issue on our end? Thanks for your cooperation.

Best regards,


We used below steps to convert PS using specific Postscript driver.

/// CODE
string printerName = "Adobe PDF";
string outFile = "D:\sample.ps";

Document doc = new Document(fileName);

System.Drawing.Printing.PrinterSettings ps = new System.Drawing.Printing.PrinterSettings();
ps.PrinterName = printerName;
ps.PrintToFile = true;
ps.PrintFileName = outFile;


Later this PS will be distilled to create PDF.

Please check from your end and let us know.


Thanks for the additional information. We are working over your query and will get back to you soon.

Best regards,


Thanks for being patient. We tested the scenario and have managed to reproduce the same problem on our end. For the sake of correction, we have logged this problem in our issue tracking system as WORDSNET-14892. Our product team will further look into the details of this problem and we will keep you updated on the status of this issue. We apologize for your inconvenience.

Best regards,


Regarding WORDSNET-14892, our product team has completed the work on your issue and has come to a conclusion that this issue is not a bug in Aspose.Words. Your issue (WORDSNET-14892) has now been closed with ‘Not a Bug’ resolution.

PostScript does not support transparency SoftMask. Theoretically it is possible to make some image areas transparent using mask, but it is impossible to create something like “transparency gradient”.

A simple workaround is available for your scenario:

Document doc = new Document(@"C:\Temp\in.doc");
PsSaveOptions opt = new PsSaveOptions();
opt.MetafileRenderingOptions.RenderingMode = MetafileRenderingMode.Bitmap;
doc.Save(@"C:\Temp\out.ps", opt);

Pictures in your document are metafiles, so if you render them as bitmaps, everything should work fine.

Best regards,