Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files. Get free and professional technical support for Spire.Doc for .NET, Java, Android, C++, Python.

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?

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

Mon Apr 06, 2020 5:15 am

Hi,

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.
System.Drawing.Common
System.Text.Encoding.CodePages
System.Security.Cryptography.Xml

Sincerely,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 2766
Joined: Wed Jun 27, 2012 8:50 am

Return to Spire.Doc