Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.6.0
-
None
-
None
-
XP, JDK 1.7
Description
I get a ton of red for this code segment, and the resulting file has the background color inverted.
PDDocument document = null;
try
{
document = PDDocument.load(pdfFile);
List pages = document.getDocumentCatalog().getAllPages();
int p = 0;
for (Object pobj : pages)
{
PDPage page = (PDPage) pobj;
++p;
BufferedImage bim = page.convertToImage();
// Test with output in memory, to see the size
ByteArrayOutputStream memout = new ByteArrayOutputStream();
boolean memoutok = ImageIO.write(bim, "png", memout);
if (!memoutok)
System.err.println ("mem write failed for " + p);
memout.reset();
memout.close();
// Test with output to png file
String fname = String.format("%s-%02d.png", prefix, p);
boolean foutok = ImageIO.write(bim, "png", new File(fname));
if (!foutok)
System.err.println ("file write failed for " + p);
...
Apr 26, 2012 2:15:49 PM org.apache.pdfbox.pdmodel.graphics.color.PDColorState createColor
Warnung: Unable to create the color instance [1.0] in color space ICCBased{ COSArray{[COSName
Number of Components: 1; guessing color ...
Interpretating as single-integer RGB
java.awt.color.ProfileDataException: Invalid profile sequence
at sun.java2d.cmm.kcms.CMM.createTransform(CMM.java:149)
at java.awt.color.ICC_ColorSpace.toRGB(ICC_ColorSpace.java:170)
at java.awt.Color.<init>(Color.java:542)
at org.apache.pdfbox.pdmodel.graphics.color.PDColorState.createColor(PDColorState.java:165)
at org.apache.pdfbox.pdmodel.graphics.color.PDColorState.getJavaColor(PDColorState.java:113)
at org.apache.pdfbox.pdfviewer.PageDrawer.fillPath(PageDrawer.java:281)
at org.apache.pdfbox.util.operator.pagedrawer.FillNonZeroRule.process(FillNonZeroRule.java:58)
at org.apache.pdfbox.util.PDFStreamEngine.processOperator(PDFStreamEngine.java:551)
at org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:274)
at org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:251)
at org.apache.pdfbox.util.PDFStreamEngine.processStream(PDFStreamEngine.java:225)
at org.apache.pdfbox.pdfviewer.PageDrawer.drawPage(PageDrawer.java:107)
at org.apache.pdfbox.pdmodel.PDPage.convertToImage(PDPage.java:722)
at org.apache.pdfbox.pdmodel.PDPage.convertToImage(PDPage.java:693)
at pdfboxpageimageextraction.ExtractImages.main(ExtractImages.java:73)
Apr 26, 2012 2:15:50 PM org.apache.pdfbox.pdmodel.graphics.color.PDColorState createColor
Warnung: Unable to create the color instance [0.133057] in color space ICCBased{ COSArray{[COSName{ICCBased}
, COSObject
{14, 0}]} }Number of Components: 1; guessing color ...
Interpretating as single-integer RGB
java.awt.color.ProfileDataException: Invalid profile sequence
at sun.java2d.cmm.kcms.CMM.createTransform(CMM.java:149)
at java.awt.color.ICC_ColorSpace.toRGB(ICC_ColorSpace.java:170)
at java.awt.Color.<init>(Color.java:542)
at org.apache.pdfbox.pdmodel.graphics.color.PDColorState.createColor(PDColorState.java:165)
at org.apache.pdfbox.pdmodel.graphics.color.PDColorState.getJavaColor(PDColorState.java:113)
at org.apache.pdfbox.pdfviewer.PageDrawer.processTextPosition(PageDrawer.java:151)
at org.apache.pdfbox.util.PDFStreamEngine.processEncodedText(PDFStreamEngine.java:494)
at org.apache.pdfbox.util.operator.ShowText.process(ShowText.java:45)
at org.apache.pdfbox.util.PDFStreamEngine.processOperator(PDFStreamEngine.java:551)
at org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:274)
at org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:251)
at org.apache.pdfbox.util.PDFStreamEngine.processStream(PDFStreamEngine.java:225)
at org.apache.pdfbox.pdfviewer.PageDrawer.drawPage(PageDrawer.java:107)
at org.apache.pdfbox.pdmodel.PDPage.convertToImage(PDPage.java:722)
at org.apache.pdfbox.pdmodel.PDPage.convertToImage(PDPage.java:693)
at pdfboxpageimageextraction.ExtractImages.main(ExtractImages.java:73)
Apr 26, 2012 2:15:50 PM org.apache.pdfbox.util.PDFStreamEngine processOperator
Information: unsupported/disabled operation: EI
Apr 26, 2012 2:15:50 PM org.apache.pdfbox.pdmodel.graphics.color.PDColorState createColor
Warnung: Unable to create the color instance [0.921875] in color space ICCBased{ COSArray{[COSName{ICCBased}, COSObject{14, 0}
]} }
Number of Components: 1; guessing color ...
Interpretating as single-integer RGB
java.awt.color.ProfileDataException: Invalid profile sequence
at sun.java2d.cmm.kcms.CMM.createTransform(CMM.java:149)
at java.awt.color.ICC_ColorSpace.toRGB(ICC_ColorSpace.java:170)
at java.awt.Color.<init>(Color.java:542)
at org.apache.pdfbox.pdmodel.graphics.color.PDColorState.createColor(PDColorState.java:165)
at org.apache.pdfbox.pdmodel.graphics.color.PDColorState.getJavaColor(PDColorState.java:113)
at org.apache.pdfbox.pdfviewer.PageDrawer.fillPath(PageDrawer.java:281)
at org.apache.pdfbox.util.operator.pagedrawer.FillEvenOddRule.process(FillEvenOddRule.java:57)
at org.apache.pdfbox.util.PDFStreamEngine.processOperator(PDFStreamEngine.java:551)
at org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:274)
at org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:251)
at org.apache.pdfbox.util.PDFStreamEngine.processStream(PDFStreamEngine.java:225)
at org.apache.pdfbox.pdfviewer.PageDrawer.drawPage(PageDrawer.java:107)
at org.apache.pdfbox.pdmodel.PDPage.convertToImage(PDPage.java:722)
at org.apache.pdfbox.pdmodel.PDPage.convertToImage(PDPage.java:693)
at pdfboxpageimageextraction.ExtractImages.main(ExtractImages.java:73)
Apr 26, 2012 2:15:50 PM org.apache.pdfbox.pdmodel.graphics.color.PDColorState createColor
Warnung: Unable to create the color instance [0.397949] in color space ICCBased{ COSArray{[COSName
Number of Components: 1; guessing color ...
Interpretating as single-integer RGB
java.awt.color.ProfileDataException: Invalid profile sequence
at sun.java2d.cmm.kcms.CMM.createTransform(CMM.java:149)
at java.awt.color.ICC_ColorSpace.toRGB(ICC_ColorSpace.java:170)
at java.awt.Color.<init>(Color.java:542)
at org.apache.pdfbox.pdmodel.graphics.color.PDColorState.createColor(PDColorState.java:165)
at org.apache.pdfbox.pdmodel.graphics.color.PDColorState.getJavaColor(PDColorState.java:113)
at org.apache.pdfbox.pdfviewer.PageDrawer.processTextPosition(PageDrawer.java:151)
at org.apache.pdfbox.util.PDFStreamEngine.processEncodedText(PDFStreamEngine.java:494)
at org.apache.pdfbox.util.operator.ShowTextGlyph.process(ShowTextGlyph.java:62)
at org.apache.pdfbox.util.PDFStreamEngine.processOperator(PDFStreamEngine.java:551)
at org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:274)
at org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:251)
at org.apache.pdfbox.util.PDFStreamEngine.processStream(PDFStreamEngine.java:225)
at org.apache.pdfbox.pdfviewer.PageDrawer.drawPage(PageDrawer.java:107)
at org.apache.pdfbox.pdmodel.PDPage.convertToImage(PDPage.java:722)
at org.apache.pdfbox.pdmodel.PDPage.convertToImage(PDPage.java:693)
at pdfboxpageimageextraction.ExtractImages.main(ExtractImages.java:73)
Apr 26, 2012 2:15:50 PM org.apache.pdfbox.pdmodel.graphics.color.PDColorState createColor
Warnung: Unable to create the color instance [0.898438] in color space ICCBased{ COSArray{[COSName{ICCBased}
, COSObject
{14, 0}]} }Number of Components: 1; guessing color ...
Interpretating as single-integer RGB
java.awt.color.ProfileDataException: Invalid profile sequence
at sun.java2d.cmm.kcms.CMM.createTransform(CMM.java:149)
at java.awt.color.ICC_ColorSpace.toRGB(ICC_ColorSpace.java:170)
at java.awt.Color.<init>(Color.java:542)
at org.apache.pdfbox.pdmodel.graphics.color.PDColorState.createColor(PDColorState.java:165)
at org.apache.pdfbox.pdmodel.graphics.color.PDColorState.getJavaColor(PDColorState.java:113)
at org.apache.pdfbox.pdfviewer.PageDrawer.fillPath(PageDrawer.java:281)
at org.apache.pdfbox.util.operator.pagedrawer.FillEvenOddRule.process(FillEvenOddRule.java:57)
at org.apache.pdfbox.util.PDFStreamEngine.processOperator(PDFStreamEngine.java:551)
at org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:274)
at org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:251)
at org.apache.pdfbox.util.PDFStreamEngine.processStream(PDFStreamEngine.java:225)
at org.apache.pdfbox.pdfviewer.PageDrawer.drawPage(PageDrawer.java:107)
at org.apache.pdfbox.pdmodel.PDPage.convertToImage(PDPage.java:722)
at org.apache.pdfbox.pdmodel.PDPage.convertToImage(PDPage.java:693)
at pdfboxpageimageextraction.ExtractImages.main(ExtractImages.java:73)
Apr 26, 2012 2:15:50 PM org.apache.pdfbox.pdmodel.graphics.color.PDColorState createColor
Warnung: Unable to create the color instance [0.397949] in color space ICCBased{ COSArray{[COSName{ICCBased}, COSObject{14, 0}
]} }
Number of Components: 1; guessing color ...
Interpretating as single-integer RGB
java.awt.color.ProfileDataException: Invalid profile sequence
at sun.java2d.cmm.kcms.CMM.createTransform(CMM.java:149)
at java.awt.color.ICC_ColorSpace.toRGB(ICC_ColorSpace.java:170)
at java.awt.Color.<init>(Color.java:542)
at org.apache.pdfbox.pdmodel.graphics.color.PDColorState.createColor(PDColorState.java:165)
at org.apache.pdfbox.pdmodel.graphics.color.PDColorState.getJavaColor(PDColorState.java:113)
at org.apache.pdfbox.pdfviewer.PageDrawer.processTextPosition(PageDrawer.java:151)
at org.apache.pdfbox.util.PDFStreamEngine.processEncodedText(PDFStreamEngine.java:494)
at org.apache.pdfbox.util.operator.ShowText.process(ShowText.java:45)
at org.apache.pdfbox.util.PDFStreamEngine.processOperator(PDFStreamEngine.java:551)
at org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:274)
at org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:251)
at org.apache.pdfbox.util.PDFStreamEngine.processStream(PDFStreamEngine.java:225)
at org.apache.pdfbox.pdfviewer.PageDrawer.drawPage(PageDrawer.java:107)
at org.apache.pdfbox.pdmodel.PDPage.convertToImage(PDPage.java:722)
at org.apache.pdfbox.pdmodel.PDPage.convertToImage(PDPage.java:693)
at pdfboxpageimageextraction.ExtractImages.main(ExtractImages.java:73)
Apr 26, 2012 2:15:51 PM org.apache.pdfbox.pdmodel.graphics.color.PDColorState createColor
Warnung: Unable to create the color instance [0.667969] in color space ICCBased{ COSArray{[COSName
Number of Components: 1; guessing color ...
Interpretating as single-integer RGB
java.awt.color.ProfileDataException: Invalid profile sequence
at sun.java2d.cmm.kcms.CMM.createTransform(CMM.java:149)
at java.awt.color.ICC_ColorSpace.toRGB(ICC_ColorSpace.java:170)
at java.awt.Color.<init>(Color.java:542)
at org.apache.pdfbox.pdmodel.graphics.color.PDColorState.createColor(PDColorState.java:165)
at org.apache.pdfbox.pdmodel.graphics.color.PDColorState.getJavaColor(PDColorState.java:113)
at org.apache.pdfbox.pdfviewer.PageDrawer.fillPath(PageDrawer.java:281)
at org.apache.pdfbox.util.operator.pagedrawer.FillEvenOddRule.process(FillEvenOddRule.java:57)
at org.apache.pdfbox.util.PDFStreamEngine.processOperator(PDFStreamEngine.java:551)
at org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:274)
at org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:251)
at org.apache.pdfbox.util.PDFStreamEngine.processStream(PDFStreamEngine.java:225)
at org.apache.pdfbox.pdfviewer.PageDrawer.drawPage(PageDrawer.java:107)
at org.apache.pdfbox.pdmodel.PDPage.convertToImage(PDPage.java:722)
at org.apache.pdfbox.pdmodel.PDPage.convertToImage(PDPage.java:693)
at pdfboxpageimageextraction.ExtractImages.main(ExtractImages.java:73)
Apr 26, 2012 2:15:51 PM org.apache.pdfbox.pdmodel.graphics.color.PDColorState createColor
Warnung: Unable to create the color instance [1.0] in color space ICCBased{ COSArray{[COSName{ICCBased}
, COSObject
{14, 0}]} }Number of Components: 1; guessing color ...
Interpretating as single-integer RGB
java.awt.color.ProfileDataException: Invalid profile sequence
at sun.java2d.cmm.kcms.CMM.createTransform(CMM.java:149)
at java.awt.color.ICC_ColorSpace.toRGB(ICC_ColorSpace.java:170)
at java.awt.Color.<init>(Color.java:542)
at org.apache.pdfbox.pdmodel.graphics.color.PDColorState.createColor(PDColorState.java:165)
at org.apache.pdfbox.pdmodel.graphics.color.PDColorState.getJavaColor(PDColorState.java:113)
at org.apache.pdfbox.pdfviewer.PageDrawer.fillPath(PageDrawer.java:281)
at org.apache.pdfbox.util.operator.pagedrawer.FillNonZeroRule.process(FillNonZeroRule.java:58)
at org.apache.pdfbox.util.PDFStreamEngine.processOperator(PDFStreamEngine.java:551)
at org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:274)
at org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:251)
at org.apache.pdfbox.util.PDFStreamEngine.processStream(PDFStreamEngine.java:225)
at org.apache.pdfbox.pdfviewer.PageDrawer.drawPage(PageDrawer.java:107)
at org.apache.pdfbox.pdmodel.PDPage.convertToImage(PDPage.java:722)
at org.apache.pdfbox.pdmodel.PDPage.convertToImage(PDPage.java:693)
at pdfboxpageimageextraction.ExtractImages.main(ExtractImages.java:73)
Apr 26, 2012 2:15:51 PM org.apache.pdfbox.pdmodel.graphics.color.PDColorState createColor
Warnung: Unable to create the color instance [0.0] in color space ICCBased{ COSArray{[COSName{ICCBased}, COSObject{14, 0}
]} }
Number of Components: 1; guessing color ...
Interpretating as single-integer RGB
java.awt.color.ProfileDataException: Invalid profile sequence
at sun.java2d.cmm.kcms.CMM.createTransform(CMM.java:149)
at java.awt.color.ICC_ColorSpace.toRGB(ICC_ColorSpace.java:170)
at java.awt.Color.<init>(Color.java:542)
at org.apache.pdfbox.pdmodel.graphics.color.PDColorState.createColor(PDColorState.java:165)
at org.apache.pdfbox.pdmodel.graphics.color.PDColorState.getJavaColor(PDColorState.java:113)
at org.apache.pdfbox.pdfviewer.PageDrawer.processTextPosition(PageDrawer.java:151)
at org.apache.pdfbox.util.PDFStreamEngine.processEncodedText(PDFStreamEngine.java:494)
at org.apache.pdfbox.util.operator.ShowTextGlyph.process(ShowTextGlyph.java:62)
at org.apache.pdfbox.util.PDFStreamEngine.processOperator(PDFStreamEngine.java:551)
at org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:274)
at org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:251)
at org.apache.pdfbox.util.PDFStreamEngine.processStream(PDFStreamEngine.java:225)
at org.apache.pdfbox.pdfviewer.PageDrawer.drawPage(PageDrawer.java:107)
at org.apache.pdfbox.pdmodel.PDPage.convertToImage(PDPage.java:722)
at org.apache.pdfbox.pdmodel.PDPage.convertToImage(PDPage.java:693)
at pdfboxpageimageextraction.ExtractImages.main(ExtractImages.java:73)
Apr 26, 2012 2:15:51 PM org.apache.pdfbox.pdmodel.graphics.color.PDColorState createColor
Warnung: Unable to create the color instance [0.0] in color space ICCBased{ COSArray{[COSName
Number of Components: 1; guessing color ...
Interpretating as single-integer RGB
java.awt.color.ProfileDataException: Invalid profile sequence
at sun.java2d.cmm.kcms.CMM.createTransform(CMM.java:149)
at java.awt.color.ICC_ColorSpace.toRGB(ICC_ColorSpace.java:170)
at java.awt.Color.<init>(Color.java:542)
at org.apache.pdfbox.pdmodel.graphics.color.PDColorState.createColor(PDColorState.java:165)
at org.apache.pdfbox.pdmodel.graphics.color.PDColorState.getJavaColor(PDColorState.java:113)
at org.apache.pdfbox.pdfviewer.PageDrawer.processTextPosition(PageDrawer.java:151)
at org.apache.pdfbox.util.PDFStreamEngine.processEncodedText(PDFStreamEngine.java:494)
at org.apache.pdfbox.util.operator.ShowText.process(ShowText.java:45)
at org.apache.pdfbox.util.PDFStreamEngine.processOperator(PDFStreamEngine.java:551)
at org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:274)
at org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:251)
at org.apache.pdfbox.util.PDFStreamEngine.processStream(PDFStreamEngine.java:225)
at org.apache.pdfbox.pdfviewer.PageDrawer.drawPage(PageDrawer.java:107)
at org.apache.pdfbox.pdmodel.PDPage.convertToImage(PDPage.java:722)
at org.apache.pdfbox.pdmodel.PDPage.convertToImage(PDPage.java:693)
at pdfboxpageimageextraction.ExtractImages.main(ExtractImages.java:73)
Apr 26, 2012 2:15:51 PM org.apache.pdfbox.pdmodel.graphics.color.PDColorState createColor
Warnung: Unable to create the color instance [0.0] in color space ICCBased{ COSArray{[COSName{ICCBased}
, COSObject
{14, 0}]} }Number of Components: 1; guessing color ...
Interpretating as single-integer RGB
java.awt.color.ProfileDataException: Invalid profile sequence
at sun.java2d.cmm.kcms.CMM.createTransform(CMM.java:149)
at java.awt.color.ICC_ColorSpace.toRGB(ICC_ColorSpace.java:170)
at java.awt.Color.<init>(Color.java:542)
at org.apache.pdfbox.pdmodel.graphics.color.PDColorState.createColor(PDColorState.java:165)
at org.apache.pdfbox.pdmodel.graphics.color.PDColorState.getJavaColor(PDColorState.java:113)
at org.apache.pdfbox.pdfviewer.PageDrawer.processTextPosition(PageDrawer.java:151)
at org.apache.pdfbox.util.PDFStreamEngine.processEncodedText(PDFStreamEngine.java:494)
at org.apache.pdfbox.util.operator.ShowTextGlyph.process(ShowTextGlyph.java:62)
at org.apache.pdfbox.util.PDFStreamEngine.processOperator(PDFStreamEngine.java:551)
at org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:274)
at org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:251)
at org.apache.pdfbox.util.PDFStreamEngine.processStream(PDFStreamEngine.java:225)
at org.apache.pdfbox.pdfviewer.PageDrawer.drawPage(PageDrawer.java:107)
at org.apache.pdfbox.pdmodel.PDPage.convertToImage(PDPage.java:722)
at org.apache.pdfbox.pdmodel.PDPage.convertToImage(PDPage.java:693)
at pdfboxpageimageextraction.ExtractImages.main(ExtractImages.java:73)
Apr 26, 2012 2:15:51 PM org.apache.pdfbox.pdmodel.graphics.color.PDColorState createColor
Warnung: Unable to create the color instance [0.0] in color space ICCBased{ COSArray{[COSName{ICCBased}, COSObject{14, 0}
]} }
Number of Components: 1; guessing color ...
Interpretating as single-integer RGB
java.awt.color.ProfileDataException: Invalid profile sequence
at sun.java2d.cmm.kcms.CMM.createTransform(CMM.java:149)
at java.awt.color.ICC_ColorSpace.toRGB(ICC_ColorSpace.java:170)
at java.awt.Color.<init>(Color.java:542)
at org.apache.pdfbox.pdmodel.graphics.color.PDColorState.createColor(PDColorState.java:165)
at org.apache.pdfbox.pdmodel.graphics.color.PDColorState.getJavaColor(PDColorState.java:113)
at org.apache.pdfbox.pdfviewer.PageDrawer.processTextPosition(PageDrawer.java:151)
at org.apache.pdfbox.util.PDFStreamEngine.processEncodedText(PDFStreamEngine.java:494)
at org.apache.pdfbox.util.operator.ShowText.process(ShowText.java:45)
at org.apache.pdfbox.util.PDFStreamEngine.processOperator(PDFStreamEngine.java:551)
at org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:274)
at org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:251)
at org.apache.pdfbox.util.PDFStreamEngine.processStream(PDFStreamEngine.java:225)
at org.apache.pdfbox.pdfviewer.PageDrawer.drawPage(PageDrawer.java:107)
at org.apache.pdfbox.pdmodel.PDPage.convertToImage(PDPage.java:722)
at org.apache.pdfbox.pdmodel.PDPage.convertToImage(PDPage.java:693)
at pdfboxpageimageextraction.ExtractImages.main(ExtractImages.java:73)
Apr 26, 2012 2:15:51 PM org.apache.pdfbox.pdmodel.graphics.color.PDColorState createColor
Warnung: Unable to create the color instance [0.0] in color space ICCBased{ COSArray{[COSName
Number of Components: 1; guessing color ...
Interpretating as single-integer RGB
java.awt.color.ProfileDataException: Invalid profile sequence
at sun.java2d.cmm.kcms.CMM.createTransform(CMM.java:149)
at java.awt.color.ICC_ColorSpace.toRGB(ICC_ColorSpace.java:170)
at java.awt.Color.<init>(Color.java:542)
at org.apache.pdfbox.pdmodel.graphics.color.PDColorState.createColor(PDColorState.java:165)
at org.apache.pdfbox.pdmodel.graphics.color.PDColorState.getJavaColor(PDColorState.java:113)
at org.apache.pdfbox.pdfviewer.PageDrawer.processTextPosition(PageDrawer.java:151)
at org.apache.pdfbox.util.PDFStreamEngine.processEncodedText(PDFStreamEngine.java:494)
at org.apache.pdfbox.util.operator.ShowTextGlyph.process(ShowTextGlyph.java:62)
at org.apache.pdfbox.util.PDFStreamEngine.processOperator(PDFStreamEngine.java:551)
at org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:274)
at org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:251)
at org.apache.pdfbox.util.PDFStreamEngine.processStream(PDFStreamEngine.java:225)
at org.apache.pdfbox.pdfviewer.PageDrawer.drawPage(PageDrawer.java:107)
at org.apache.pdfbox.pdmodel.PDPage.convertToImage(PDPage.java:722)
at org.apache.pdfbox.pdmodel.PDPage.convertToImage(PDPage.java:693)
at pdfboxpageimageextraction.ExtractImages.main(ExtractImages.java:73)
Apr 26, 2012 2:15:51 PM org.apache.pdfbox.pdmodel.graphics.color.PDColorState createColor
Warnung: Unable to create the color instance [1.0] in color space ICCBased{ COSArray{[COSName{ICCBased}
, COSObject
{14, 0}]} }Number of Components: 1; guessing color ...
Interpretating as single-integer RGB
java.awt.color.ProfileDataException: Invalid profile sequence
at sun.java2d.cmm.kcms.CMM.createTransform(CMM.java:149)
at java.awt.color.ICC_ColorSpace.toRGB(ICC_ColorSpace.java:170)
at java.awt.Color.<init>(Color.java:542)
at org.apache.pdfbox.pdmodel.graphics.color.PDColorState.createColor(PDColorState.java:165)
at org.apache.pdfbox.pdmodel.graphics.color.PDColorState.getJavaColor(PDColorState.java:113)
at org.apache.pdfbox.pdfviewer.PageDrawer.fillPath(PageDrawer.java:281)
at org.apache.pdfbox.util.operator.pagedrawer.FillNonZeroRule.process(FillNonZeroRule.java:58)
at org.apache.pdfbox.util.PDFStreamEngine.processOperator(PDFStreamEngine.java:551)
at org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:274)
at org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:251)
at org.apache.pdfbox.util.PDFStreamEngine.processStream(PDFStreamEngine.java:225)
at org.apache.pdfbox.pdfviewer.PageDrawer.drawPage(PageDrawer.java:107)
at org.apache.pdfbox.pdmodel.PDPage.convertToImage(PDPage.java:722)
at org.apache.pdfbox.pdmodel.PDPage.convertToImage(PDPage.java:693)
at pdfboxpageimageextraction.ExtractImages.main(ExtractImages.java:73)
Apr 26, 2012 2:15:52 PM org.apache.pdfbox.pdmodel.graphics.color.PDColorState createColor
Warnung: Unable to create the color instance [0.0] in color space ICCBased{ COSArray{[COSName{ICCBased}, COSObject{14, 0}
]} }
Number of Components: 1; guessing color ...
Interpretating as single-integer RGB
java.awt.color.ProfileDataException: Invalid profile sequence
at sun.java2d.cmm.kcms.CMM.createTransform(CMM.java:149)
at java.awt.color.ICC_ColorSpace.toRGB(ICC_ColorSpace.java:170)
at java.awt.Color.<init>(Color.java:542)
at org.apache.pdfbox.pdmodel.graphics.color.PDColorState.createColor(PDColorState.java:165)
at org.apache.pdfbox.pdmodel.graphics.color.PDColorState.getJavaColor(PDColorState.java:113)
at org.apache.pdfbox.pdfviewer.PageDrawer.processTextPosition(PageDrawer.java:151)
at org.apache.pdfbox.util.PDFStreamEngine.processEncodedText(PDFStreamEngine.java:494)
at org.apache.pdfbox.util.operator.ShowTextGlyph.process(ShowTextGlyph.java:62)
at org.apache.pdfbox.util.PDFStreamEngine.processOperator(PDFStreamEngine.java:551)
at org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:274)
at org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:251)
at org.apache.pdfbox.util.PDFStreamEngine.processStream(PDFStreamEngine.java:225)
at org.apache.pdfbox.pdfviewer.PageDrawer.drawPage(PageDrawer.java:107)
at org.apache.pdfbox.pdmodel.PDPage.convertToImage(PDPage.java:722)
at org.apache.pdfbox.pdmodel.PDPage.convertToImage(PDPage.java:693)
at pdfboxpageimageextraction.ExtractImages.main(ExtractImages.java:73)
Apr 26, 2012 2:15:52 PM org.apache.pdfbox.pdmodel.graphics.color.PDColorState createColor
Warnung: Unable to create the color instance [0.0] in color space ICCBased{ COSArray{[COSName
, COSObject
{14, 0}]} }
Number of Components: 1; guessing color ...
Interpretating as single-integer RGB
java.awt.color.ProfileDataException: Invalid profile sequence
at sun.java2d.cmm.kcms.CMM.createTransform(CMM.java:149)
at java.awt.color.ICC_ColorSpace.toRGB(ICC_ColorSpace.java:170)
at java.awt.Color.<init>(Color.java:542)
at org.apache.pdfbox.pdmodel.graphics.color.PDColorState.createColor(PDColorState.java:165)
at org.apache.pdfbox.pdmodel.graphics.color.PDColorState.getJavaColor(PDColorState.java:113)
at org.apache.pdfbox.pdfviewer.PageDrawer.processTextPosition(PageDrawer.java:151)
at org.apache.pdfbox.util.PDFStreamEngine.processEncodedText(PDFStreamEngine.java:494)
at org.apache.pdfbox.util.operator.ShowTextGlyph.process(ShowTextGlyph.java:62)
at org.apache.pdfbox.util.PDFStreamEngine.processOperator(PDFStreamEngine.java:551)
at org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:274)
at org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:251)
at org.apache.pdfbox.util.PDFStreamEngine.processStream(PDFStreamEngine.java:225)
at org.apache.pdfbox.pdfviewer.PageDrawer.drawPage(PageDrawer.java:107)
at org.apache.pdfbox.pdmodel.PDPage.convertToImage(PDPage.java:722)
at org.apache.pdfbox.pdmodel.PDPage.convertToImage(PDPage.java:693)
at pdfboxpageimageextraction.ExtractImages.main(ExtractImages.java:73)
Attachments
Attachments
Issue Links
- duplicates
-
PDFBOX-2223 Can't read embedded ICC profile, using alternate color space from PDFBOX-1501
- Closed
- is related to
-
PDFBOX-3531 LCMS error 13: Couldn't link the profiles
- Closed