PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Sun Sep 15, 2019 5:03 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Wed Sep 04, 2019 10:17 am 
Offline

Joined: Wed Sep 04, 2019 8:27 am
Posts: 3
Hi!
Sorry if this kind of issue is already solved. I couldn't find it in reasonable time...

When I try to decode this pdf (in link provided) file I got exception:
"Object reference not set to an instance of an object."

I can't figure it out why this is happening. Any help would be appreciated. Thanks!

Pdf: https://www.mediafire.com/file/xth0k0rz ... K.pdf/file

Here are screenshots also:
Image

Image


Top
 Profile  
Reply with quote  
PostPosted: Wed Sep 04, 2019 2:23 pm 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 2967
Location: Cologne, Germany
Maybe "/Filter" is an array and not a single string.

Maybe this post helps:
viewtopic.php?p=5587#p5587

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
PostPosted: Mon Sep 09, 2019 8:28 am 
Offline

Joined: Wed Sep 04, 2019 8:27 am
Posts: 3
Thanks!

It solved my problem!

Before calling string filter = image.Elements.GetName("/Filter"), I iterate with foreach trough image.Elements.Values and if value.isArray() I used same function as /DCTDecode for extraction.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 16 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group