logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Paul D'hertoghe  
#1 Posted : Tuesday, November 21, 2023 4:12:54 AM(UTC)
Paul D'hertoghe

Rank: Newbie

Groups: Registered
Joined: 11/21/2023(UTC)
Posts: 1
Belgium
Location: Destelbergen

Thanks: 1 times
In the .NET 4.8 framework version, the class PdfBitmap in Patagames.Pdf has a member Image (returns a System.Drawing.Image).
Is there an equivalent in the .NET 6.0 version?
If not, how can we obtain a bitmap?

This is vital for us, since we use the library to convert a pdf page to a jpeg image.
Paul Rayman  
#2 Posted : Tuesday, November 21, 2023 6:14:43 AM(UTC)
Paul Rayman

Rank: Administration

Groups: Administrators
Joined: 1/5/2016(UTC)
Posts: 1,103

Thanks: 7 times
Was thanked: 128 time(s) in 125 post(s)
Hello,

The Image property has been replaced by the GetImage method and moved to Patagames.Pdf.Gdi.dll as an extension method. Just add this assembly to your project.

Here is detail https://forum.patagames....released-on-Aug-13--2023
thanks 1 user thanked Paul Rayman for this useful post.
Paul D'hertoghe on 11/22/2023(UTC)
MrScottyTay  
#3 Posted : Friday, August 23, 2024 10:34:24 AM(UTC)
MrScottyTay

Rank: Newbie

Groups: Registered
Joined: 8/23/2024(UTC)
Posts: 2
United Kingdom
Location: North East England

I've tried following the example of how to render an image and save it and it always complains that PdfImage.GetImage() just does not exist. using the exact code from the https://pdfium.patagames.com/ does not work. What am I missing?

I made another post for better visibility but also because I am on .NET 8, not .NET 6 like the OG post. (tried adding the link to it here but it got rejected as spam, sorry)

Edited by user Friday, August 23, 2024 10:45:23 AM(UTC)  | Reason: Not specified

Paul Rayman  
#4 Posted : Wednesday, September 18, 2024 4:24:56 AM(UTC)
Paul Rayman

Rank: Administration

Groups: Administrators
Joined: 1/5/2016(UTC)
Posts: 1,103

Thanks: 7 times
Was thanked: 128 time(s) in 125 post(s)
Hello,

You need to add a reference to the Patagames.Pdf.Gdi.dll assembly.
This assembly is added to the project automatically if your project has a Windows target framework. For example:

<TargetFramework>net6.0-windows</TargetFramework>

Otherwise, you can add it manually. This assembly is located in the net6.0-windows folder in the NuGet package.
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.