PdfPig icon indicating copy to clipboard operation
PdfPig copied to clipboard

Decoder for DCTFilter & CCITTFax

Open attarchi opened this issue 4 years ago • 1 comments

Hi guys @EliotJones There are two very useful applicable filter decoder in Java, which haven't been developed in C#. Most existed images in PDF files are with filter DCT and CCITFax.

anybody can help me in translating them into C#? thanks,

attarchi avatar Sep 13 '20 14:09 attarchi

Hi, in the case of theDCT filter the data is encoded as a JPG file, as far as I know. So you should be able to use an image library, such as System.Drawing.Core or ImageSharp, to work with the raw data. In the version of PDFBox I ported from CCITFax wasn't yet implemented. It looks like it can now be implemented using the link you provided. I'll flag this as a new feature issue. I'm not currently able to work on PdfPig for a while but will try to address it when I get back.

EliotJones avatar Sep 14 '20 13:09 EliotJones