PDFsharp & MigraDoc Foundation
https://forum.pdfsharp.net/

How to extract images from this PDF file?
https://forum.pdfsharp.net/viewtopic.php?f=2&t=4449
Page 1 of 1

Author:  howze [ Mon Jun 05, 2023 3:00 am ]
Post subject:  How to extract images from this PDF file?

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 207 times

Author:  Thomas Hoevel [ Mon Jun 05, 2023 6:59 am ]
Post subject:  Re: How to extract images from this PDF file?

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
>>

Author:  howze [ Mon Jun 05, 2023 7:39 am ]
Post subject:  Re: How to extract images from this PDF file?

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?

Author:  Thomas Hoevel [ Tue Jun 06, 2023 8:13 am ]
Post subject:  Re: How to extract images from this PDF file?

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.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/