PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Thu Mar 28, 2024 7:33 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Mon Jun 05, 2023 3:00 am 
Offline

Joined: Mon Jun 05, 2023 2:56 am
Posts: 3
Hello.
When I tried your class library, I found that I couldn't extract the images from this PDF file.
This image does not seem to exist in the form of an image. What is the method to extract this image?
Thank you


Attachments:
test.zip [15.08 KiB]
Downloaded 138 times
Top
 Profile  
Reply with quote  
PostPosted: Mon Jun 05, 2023 6:59 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3095
Location: Cologne, Germany
How about object 15?

Quote:
15 0 obj
<<
/BBox [0.0 0.0 200.0 190.0]
/BitsPerComponent 8
/ColorSpace /DeviceRGB
/DecodeParms <<
/Colors 3
/Columns 200
/Rows 190
>>
/Filter /FlateDecode
/Height 190
/Length 7191
/Mask [200 255 200 255 200 255]
/Subtype /Image
/Type /XObject
/Width 200
>>

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
PostPosted: Mon Jun 05, 2023 7:39 am 
Offline

Joined: Mon Jun 05, 2023 2:56 am
Posts: 3
Thomas Hoevel wrote:
How about object 15?

Quote:
15 0 obj
<<
/BBox [0.0 0.0 200.0 190.0]
/BitsPerComponent 8
/ColorSpace /DeviceRGB
/DecodeParms <<
/Colors 3
/Columns 200
/Rows 190
>>
/Filter /FlateDecode
/Height 190
/Length 7191
/Mask [200 255 200 255 200 255]
/Subtype /Image
/Type /XObject
/Width 200
>>


This may seem like I want to extract an image, but how do I access it or save it as an image?


Top
 Profile  
Reply with quote  
PostPosted: Tue Jun 06, 2023 8:13 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3095
Location: Cologne, Germany
howze wrote:
This may seem like I want to extract an image, but how do I access it or save it as an image?
I'd have to check the PDF reference to see what type XObject and subtype Image actually means. But I don't have the time.

So please check the PDF reference and see what's in your PDF file.

_________________
Regards
Thomas Hoevel
PDFsharp Team


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 136 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