Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files from any .NET platform (C#, VB.NET, ASP.NET, .NET Core) and Java applications (J2SE and J2EE) with fast and high quality performance.

Fri Apr 03, 2020 4:56 pm

Hi, I'm evaluating the Spire.Doc library using the FreeSpire.doc version.
I am using it with a NetCore console application to simply replace text in a template document.
I don't need to convert to PDF or edit pictures.
When I build my exe, I noticed that all of these DLLs are included:

  • Spire.Pdf.dll
  • SkiaSharp.dll
  • libSkiaSharp.dll
  • System.Security.Cryptography.Pkcs.dll
  • System.Security.Cryptography.Xml.dll

Causing the app size to increase from 17 MB to over 50 MB.

The application runs just fine if I delete all of them.
Can you at least remove the dependency from Spire.Pdf since it's already published as a separate nuget package?

Posts: 2
Joined: Fri Apr 03, 2020 4:44 pm

Mon Apr 06, 2020 5:15 am


Thanks for your post.
Some functions of Spire.Doc depends on Spire.PDF.dll. Sorry the Spire.Pdf dependency can't be removed from Spire.Doc package.
For .Net Core application, it requires the below three external references in addition to referencing Spire.Doc.dll, Spire.Pdf.dll and Spire.License.dll.

E-iceblue support team
User avatar

Posts: 2448
Joined: Wed Jun 27, 2012 8:50 am

Return to Spire.Doc