Rank: Guest
Groups: Guests
Joined: 1/5/2016(UTC) Posts: 162
Was thanked: 5 time(s) in 5 post(s)
|
I'm trying to find some information which raster image formats are supported by Pdfium, but I can't find anything specific on your website.
Are DCTDecode, JBIG2Decode, JPXDecode and FlateDecode all supported? E.g, if I process an image XObject that's using the JBIG2Decode filter, can I get a converted System.Drawing.Image or System.Drawing.Bitmap from this that I can process/save/whatever or is a separate JBIG2 decoder required?
|
|
|
|
|
|
Rank: Guest
Groups: Guests
Joined: 1/5/2016(UTC) Posts: 162
Was thanked: 5 time(s) in 5 post(s)
|
As I know all that decoders are supported. So you can easily get access to converted System.Drawing.Image through PdfImage.Bitmap.Image property No external decoders are required.
|
|
|
|
|
|
Rank: Guest
Groups: Guests
Joined: 1/5/2016(UTC) Posts: 162
Was thanked: 5 time(s) in 5 post(s)
|
I decided to give it a quick go and test it with a PDF containing mostly JBIG2 images (grayscale). A lot of HP MFPs seem to prefer this image format when scanning documents.
Well, the extracted images are just completely black, so something's not working as it should. I used the sample code in the SDK user manual to extract and save the images, and the latest Nuget package to test it.
|
|
|
|
|
|
Rank: Administration
Groups: Administrators
Joined: 1/5/2016(UTC) Posts: 1,138
Thanks: 10 times Was thanked: 133 time(s) in 130 post(s)
|
Could you please provide the document with such images. I would like to examine it on my side. Thanks.
|
|
|
|
|
|
Rank: Guest
Groups: Guests
Joined: 1/5/2016(UTC) Posts: 162
Was thanked: 5 time(s) in 5 post(s)
|
I'm afraid the document I'm testing on contains sensitive information, so I can't share it. I'll see if I can find a similar document scanned using the same settings which I can send to you. The image XObject for one such image has these keys, if that helps you: Code:/Type /XObject
/Subtype /Image
/BitsPerComponent 1
/Length 26334
/Width 3508
/Height 2480
/ColorSpace /DeviceGray
/Filter /JBIG2Decode
(Essentially, the entire PDF page is just an image).
|
|
|
|
|
|
Rank: Administration
Groups: Administrators
Joined: 1/5/2016(UTC) Posts: 1,138
Thanks: 10 times Was thanked: 133 time(s) in 130 post(s)
|
Originally Posted by: Guest  I decided to give it a quick go and test it with a PDF containing mostly JBIG2 images (grayscale). A lot of HP MFPs seem to prefer this image format when scanning documents.
Well, the extracted images are just completely black, so something's not working as it should. I used the sample code in the SDK user manual to extract and save the images, and the latest Nuget package to test it. fixed! https://forum.patagames....on-Jun-18--2019#post1661
|
|
|
|
|
|
Forum Jump
You can post new topics in this forum.
You can reply to topics in this forum.
You can delete your posts in this forum.
You can edit your posts in this forum.
You cannot create polls in this forum.
You can 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