He @E-ICEBLUE team,
For my test project I'm using FreeSpire.Doc 10.8(.NET 6) and getting an error that 'System.Drawing.Common is not supported on this platform.'
Could you please help with technical way to solve this issue?
Best Regards,
Alex
Triste.Dai wrote:Hi,
Thank you for your inquiry.
Kindly note our Spire.Doc provides the NET6 dlls, which depend on the System.Drawing.Common. This library is not supported on non-Windows operating system from NET6. But our netstandard dlls in Spire.Doc uses the SkiaSharp to replace the System.Drawing.Common. It can work with non-Windows operating system, also it is compatible with the NET6 platform. Please manually add the dlls from the folder “netstandard2.0” into your project, then install the following dependencies from Nuget. Or you can directly install our Spire.Officefor.NETStandard via NuGet Manager, which has included all the following dll files.
SkiaSharp >= 1.68.0
System.Text.Encoding.CodePages >= 4.5.0
System.Security.Cryptography.Xml >=4.5.0
If there are any other questions, please feel free to contact us.
Sincerely,
Triste
E-iceblue support team
Triste.Dai wrote:Hi,
Thanks for your feedback.
sorry for my mistake that I forgot to mention, the folder “netstandard2.0” is packed in our product package.
I did a simple test but I did not reproduce your issue. there is no watermark, could you please provide us with the following messages to help us work out a solution for you? You can send them to us via email(support@e-iceblue.com) or attach them here. Thanks for your assistance.
1) your full code and test document.
2) the dlls you imported in your project.
3) your test environment, such as centos 7.9.
Sincerely,
Triste
E-iceblue support team
public static void Main()
{
var document = new Document();
string docPath = @"C:\example";
document.LoadFromFile(Path.Combine(docPath, "example.docx"));
document.SaveToFile(Path.Combine(docPath, "example.pdf"), FileFormat.PDF);
}
Triste.Dai wrote:Hi,
Thanks for your feedback.
Your GitHub repository is not found, so I created a simple demo and added the dlls in the “spire.doc-fe_10.8.0/BIN/netstandard2.0” folder manually, please download my project from this link (https://www.e-iceblue.com/downloads/attachment/Test(32425).zip) and have a test. If the warning message still exists, please provide us with your full project to help us do an accurate investigation for your issue. You can send them to us via email(support@e-iceblue.com) or attach them here. Thanks for your assistance.
Sincerely,
Triste
E-iceblue support team
Triste.Dai wrote:Hi Alex,
Thanks for your feedback.
please remove the spire.doc.dll, spire.pdf.dll from your project and delete externalSpire folder, then download the free Spire.Doc from https://www.e-iceblue.com/Download/download-word-for-net-free.html and import the dlls in the BIN/netstandard2.0 folder to your project manually.
I have tested your project and the dlls just downloaded, there is no waring messages. If there are any issues after testing, please feel free to contact us.
Sincerely,
Triste
E-iceblue support team