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

Notification

Icon
Error

Post a reply
From:
Message:

Maximum number of characters in each post is: 32767
Bold Italic Underline   Highlight Quote Choose Language for Syntax Highlighting Insert Image Insert an existing Attachment or upload a new File... Create Link   Unordered List Ordered List   Left Justify Center Justify Right Justify   Outdent Indent   More BBCode Tags
Font Color Font Size
Security Image:
Enter The Letters From The Security Image:
  Preview Post Cancel

Last 10 Posts (In reverse order)
Paul Rayman Posted: Tuesday, June 18, 2019 3:02:30 AM(UTC)
 
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
Guest Posted: Wednesday, January 10, 2018 4:46:42 AM(UTC)
 
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 Posted: Wednesday, January 10, 2018 4:18:03 AM(UTC)
 
Could you please provide the document with such images.
I would like to examine it on my side.
Thanks.
Guest Posted: Wednesday, January 10, 2018 4:12:21 AM(UTC)
 
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.
Artem Posted: Wednesday, January 10, 2018 2:51:44 AM(UTC)
 
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 Posted: Tuesday, January 9, 2018 7:39:46 AM(UTC)
 
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?