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 Jun 08, 2021 4:39 pm

Hi,

I´m evaluating your fantastic libraries in order to make a recommendation to the company to buy it.

Making a simple test we need to extract images (and replace them) from a pdf document.

We found that this line

Image[] images = pag.ExtractImages();

works fine in a .netframework 4.x environment but moving the line to a .netstandard 2.0 doesn't work (maybe because System.Graphic is missing in .netstandard and .netcore). If we try to add the nuget system.drawing.common doesn't work. any help?

Thanks in advance

igotzurgoitia
 
Posts: 1
Joined: Tue Jun 08, 2021 4:29 pm

Wed Jun 09, 2021 10:50 am

Hello,

Thanks for your inquiry.
Kindly note the NetStandard platform doesn't use the system.drawing.common to deal with image, the ExtractImages method return the image stream array. Please use the Stream[] images = pag.ExtractImages(); to get images.
By the way, the NETCore platform uses the system.drawing.common, if your app is NETCore, please install the Spire.PDF.NetCore from nuget, and use the Image[] images = pag.ExtractImages(); to get images.
If there is any question, please feel free to write back.

Sincerely,
Annika
E-iceblue support team
User avatar

Annika.Zhou
 
Posts: 1650
Joined: Wed Apr 07, 2021 2:50 am

Tue Jun 22, 2021 8:15 am

Hi,

Greetings from e-iceblue.
How is your issue going? Can you give us some feedback at your convenience? Thanks in advance.

Sincerely,
Annika
E-iceblue support team
User avatar

Annika.Zhou
 
Posts: 1650
Joined: Wed Apr 07, 2021 2:50 am

Return to Spire.PDF

cron