logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Guest  
#1 Posted : Tuesday, January 9, 2018 10:39:46 AM(UTC)
Guest

Rank: Guest

Groups: Guests
Joined: 1/5/2016(UTC)
Posts: 139

Was thanked: 4 time(s) in 4 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?
Artem  
#2 Posted : Wednesday, January 10, 2018 5:51:44 AM(UTC)
Guest

Rank: Guest

Groups: Guests
Joined: 1/5/2016(UTC)
Posts: 139

Was thanked: 4 time(s) in 4 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.
Guest  
#3 Posted : Wednesday, January 10, 2018 7:12:21 AM(UTC)
Guest

Rank: Guest

Groups: Guests
Joined: 1/5/2016(UTC)
Posts: 139

Was thanked: 4 time(s) in 4 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.
Paul Rayman  
#4 Posted : Wednesday, January 10, 2018 7:18:03 AM(UTC)
Paul Rayman

Rank: Administration

Groups: Administrators
Joined: 1/5/2016(UTC)
Posts: 814

Thanks: 1 times
Was thanked: 100 time(s) in 98 post(s)
Could you please provide the document with such images.
I would like to examine it on my side.
Thanks.
Guest  
#5 Posted : Wednesday, January 10, 2018 7:46:42 AM(UTC)
Guest

Rank: Guest

Groups: Guests
Joined: 1/5/2016(UTC)
Posts: 139

Was thanked: 4 time(s) in 4 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).
Paul Rayman  
#6 Posted : Tuesday, June 18, 2019 6:02:30 AM(UTC)
Paul Rayman

Rank: Administration

Groups: Administrators
Joined: 1/5/2016(UTC)
Posts: 814

Thanks: 1 times
Was thanked: 100 time(s) in 98 post(s)
Originally Posted by: Guest Go to Quoted Post
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
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.