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

Notification

Icon
Error

New Topic Post Reply
Options
Go to last post Go to first unread
Guest  
#1 Posted : Tuesday, January 9, 2018 7:39:46 AM(UTC)
Quote
Guest

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?
Artem  
#2 Posted : Wednesday, January 10, 2018 2:51:44 AM(UTC)
Quote
Guest

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

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

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.
Guest  
#5 Posted : Wednesday, January 10, 2018 4:46:42 AM(UTC)
Quote
Guest

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).
Paul Rayman  
#6 Posted : Tuesday, June 18, 2019 3:02:30 AM(UTC)
Quote
Paul Rayman

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 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
Quick Reply Show Quick Reply
Users browsing this topic
Guest (4)
New Topic Post Reply
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.