Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

Tue Nov 23, 2021 12:23 pm

Hello,

I have a .net standard library where i want to convert PDFs to images to be able to print it on a report.

However the SaveAsImage is not working in .net standard.

Enclosed you can find a simple Sample project.

I hope you can help us.

Best,

troithmeier
 
Posts: 19
Joined: Tue Sep 04, 2018 12:24 pm

Wed Nov 24, 2021 5:36 am

Hello,

Thanks for your inquiry!

Kindly note that when you install Spire.PDF via NuGet in your .NET6 project, it will use our .NET5 dlls by default. The .NET5 dlls all depend on System.Drawing when processing graphics. However, our .NETStandard dlls rely on SkiaSharp instead of System.Drawing. Therefore, when you add the reference of Spire.PDF to your project through NuGet, the conflict between Drawing and SkiaSharp may cause the not working of SaveAsImage method.

To use our .NETStandard dlls, please download Spire.PDF from our website, and manually add the dlls from the folder “netstandard2.0” (see screenshot). In addition, you need to install the following dependencies via NuGet. Here I also attached a runnable project for your reference.
dlls.png

    • SkiaSharp (>= 1.68.0)
    • System.Buffers (>= 4.5.0)
    • System.Memory (>= 4.5.0)
    • System.Runtime.CompilerServices.Unsafe (>= 4.5.0)
    • System.Security.Cryptography.Xml (>= 4.5.0)
    • System.Text.Encoding.CodePages (>= 4.5.0)

Sincerely,
Marcia
E-iceblue support team
User avatar

Marcia.Zhou
 
Posts: 858
Joined: Wed Nov 04, 2020 2:29 am

Wed Nov 24, 2021 10:16 am

The link to the runable projet does not work. Can you attach the sample somehow else

I tried to install spire.pdf only in the .net standard libary. However it is still the same problem.

Are you anytime soon publish new .net6 dlls?

Best,
Thomas

troithmeier
 
Posts: 19
Joined: Tue Sep 04, 2018 12:24 pm

Thu Nov 25, 2021 1:13 am

Hello Thomas,

Thanks for your feedback!

Sorry that I pasted a wrong link before, here is thecorrect link of the project, please download and try it on your side.

We plan to release the new version of the Spire.PDF which include .net 6.0 dlls in this year. And once the new version released, I will inform you ASAP.

Sincerely,
Marcia
E-iceblue support team
User avatar

Marcia.Zhou
 
Posts: 858
Joined: Wed Nov 04, 2020 2:29 am

Wed Dec 08, 2021 9:32 am

Hello,

Thanks for your patience!

The official version which supported the .NET 6.0 has been released. Welcome to download and test Spire.PDF Pack(Hot Fix) Version:7.12.1.

Our website link:
https://www.e-iceblue.com/Download/download-pdf-for-net-now.html
NuGet links:
https://www.nuget.org/packages/Spire.PDF/7.12.1
https://www.nuget.org/packages/Spire.PDF.NETCore/7.12.1

Sincerely,
Marcia
E-iceblue support team
User avatar

Marcia.Zhou
 
Posts: 858
Joined: Wed Nov 04, 2020 2:29 am

Return to Spire.PDF

cron