Rank: Newbie
Groups: Registered
Joined: 11/21/2023(UTC) Posts: 1 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.
|
|
|
|
Rank: Administration
Groups: Administrators
Joined: 1/5/2016(UTC) Posts: 1,103
Thanks: 7 times Was thanked: 128 time(s) in 125 post(s)
|
|
1 user thanked Paul Rayman for this useful post.
|
|
|
Rank: Newbie
Groups: Registered
Joined: 8/23/2024(UTC) Posts: 2 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
|
|
|
|
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.
|
|
|
|
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.
Important Information:
The Patagames Software Support Forum uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close