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.

Thu Apr 22, 2021 1:01 pm

From Spire's tutorial page: https://www.e-iceblue.com/Tutorials/Spire.PDF/Spire.PDF-Program-Guide/PDF-Image-Draw-PDF-Image-in-C-VB.NET.html

I see the following:

Code: Select all
//insert image into the first PDF page at specific position
PdfImage pdfImage = PdfImage.FromImage(schaleImage);


When I try that in our .NET Core 2.2 application, it is telling me that PdfImage does not contain a definition for "FromImage."

Why?

mtceegee
 
Posts: 17
Joined: Wed Oct 28, 2020 4:32 pm

Fri Apr 23, 2021 3:55 am

Hello,

Thanks for your inquiry.
Are you installing our Spire.PDF via Nuget? If so, your project will use the .NETStandard dlls by default. I am sorry that our netstandard dlls don’t support the “FromImage” method. To solve this issue, please download our Spire.PDF.NETCore package to use the .NET core dlls. If there is any question, please feel free to write back.

Sincerely,
Brian
E-iceblue support team
User avatar

Brian.Li
 
Posts: 1271
Joined: Mon Oct 19, 2020 3:04 am

Sun Apr 25, 2021 8:27 am

Hello,

Has your issue been resolved? Any feedback will be greatly appreciated.

Sincerely,
Brian
E-iceblue support team
User avatar

Brian.Li
 
Posts: 1271
Joined: Mon Oct 19, 2020 3:04 am

Return to Spire.PDF