Color difference for PDF file generation on Linux Machine vs windows machine

Hi Support Team,

I am using Aspose.Word DLL .NET C# for converting from Word to PDF file. My word file renders correct logo color. But when I am converting this Word file to PDF, logo is getting rendered from Dark blue to sky blue color.
Dark Blue color Logo is rendered as light blue color
Attached are the word file and this file converted to pdf on windows. Screen shot for Linux logo generated.

For testing when i convert the same .docx file to .pdf file on windows , color is same there is no difference in color.
logo word File.docx (45.0 KB)
logo word File correct win generated.pdf (13.2 KB)
Linux generated pdf incorrecr file logo.jpg (8.1 KB)

@poonammishra Unfortunately, I cannot reproduce the problem on my side. Here are PDF documents produced by MS Word and Aspose.Words in Windows and Linux environments:
aspose_out_linux.pdf.pdf (43.3 KB)
aspose_out_win.pdf (43.3 KB)
ms.pdf (13.1 KB)

Color of the logo is the same. Which version of Aspose.Words do you use? What Linux distribution is used for testing? Could you please attach PDF document produced in Linux environment on your side?

I am using Aspose.Word version 23.4 latest version and attached .docx file is generated and converted to pdf on Amazon Linux 2

@poonammishra The latest version of Aspose.Words is 23.6. I have tested on Amazon Linux 2 and the result is correct: out_amazon.pdf (43.3 KB).

Here is the referenced packages:

<PackageReference Include="Aspose.Words" Version="23.6.0" />
<PackageReference Include="SkiaSharp.NativeAssets.Linux.NoDependencies" Version="2.80.3" />

Code for conversion is simple:

Document doc = new Document("/temp/in.docx");
doc.Save(@"/temp/out.pdf");

Hi Support Team,

I have used

but .pdf file is still generated with light blue color.

What is version for System.Drawing.Common are you using in your application?

Please help on this, any other suggestion.
Thanks,
Poonam

@poonammishra Aspose.Words does not use System.Drawing.Common. Please try to downgrade SkiaSharp to 2.80.3 version as in my example.

Hi Support Team,

I have a word document .docx how can i see its Document Viewer. I am using wordprocessing xml format. I need to check how many Run are there , StdRun or image or logo etc… Earlier i used to open in an xml format

Please help me on this , I have critical deliverables.

@poonammishra If you need a tool to inspect the document internal structure, you can consider using DocumentExplorer demo application. It demonstrates how the document is represented in Aspose.Words DOM.