Skip to content

Navigation Menu

Sign in
Sign up

Trouble reading images inside a PDF file #377

pstragliotto started this conversation in General
Discussion options

Hello,

in a c# project we developed we used your library to extract images inside PDF layers.
This has always worked like a charm in Windows.
Lately we had to port the application to macOS as well, and generally the library works well for exporting PDF etc.
But for the specific need to extract images from an existing PDF file, the app crashes when trying to
read from the PDFPage object with

var resources = page.Elements.GetDictionary("/Resources");
var xObjects = resources.Elements.GetDictionary("/XObject");

We are currently using PDFSharp version 6.2.0.
Any suggestion?

You must be logged in to vote

Replies: 1 comment

Comment options

Are you saying that this code works under Windows, but fails under MacOS?

The same assemblies (DLL files) are used on all platforms.

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /