You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (JIRA)" <ji...@apache.org> on 2014/03/23 22:49:43 UTC

[jira] [Commented] (PDFBOX-1519) Error while create a PDCcitt object to embed in PDF

    [ https://issues.apache.org/jira/browse/PDFBOX-1519?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13944597#comment-13944597 ] 

Tilman Hausherr commented on PDFBOX-1519:
-----------------------------------------

Yes according to the PDF spec:

"The CCITTFaxDecode filter decodes image data that has been encoded using either Group 3 or Group 4 CCITT facsimile (fax) encoding. CCITT encoding is designed to achieve efficient compression of monochrome (1 bit per pixel) image data at relatively low resolutions, and so is useful only for bitmap image data, not for color images, grayscale images, or general data."

> Error while create a PDCcitt object to embed in PDF
> ---------------------------------------------------
>
>                 Key: PDFBOX-1519
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1519
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Writing
>            Reporter: Rodrigo Oliveira
>              Labels: CCITTFaxDecode
>
> I've got this error while embeding a TIFF file, using this code:
> image = new PDCcitt(doc, new RandomAccessFile(new File(filename), "r"));
> And got the following exception:
> java.io.IOException: First image in tiff is not CCITT T4 or T6 compressed
> 	at org.apache.pdfbox.pdmodel.graphics.xobject.PDCcitt.extractFromTiff(PDCcitt.java:353)
> 	at org.apache.pdfbox.pdmodel.graphics.xobject.PDCcitt.<init>(PDCcitt.java:86)
> Is this CCITT T4/T6 compression mandatory to get this image embed?



--
This message was sent by Atlassian JIRA
(v6.2#6252)