You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Andreas Romeyke (JIRA)" <ji...@apache.org> on 2011/04/04 15:56:05 UTC

[jira] [Created] (PDFBOX-994) some colors not in target image when calling org.apache.pdfbox.pdmodel.PDPage.convertToImage()

some colors not in target image when calling org.apache.pdfbox.pdmodel.PDPage.convertToImage()
----------------------------------------------------------------------------------------------

                 Key: PDFBOX-994
                 URL: https://issues.apache.org/jira/browse/PDFBOX-994
             Project: PDFBox
          Issue Type: Bug
          Components: PDModel
    Affects Versions: 1.5.0, 1.1.0, 1.6.0
         Environment: Debian Squeeze
            Reporter: Andreas Romeyke


Hello,

I am calling convertToImage() with a multicolored, standard PDF-file and the resulting image does not containg the content of some colored stuff.

An example of such a PDF-file (v1.4) could be sent...

The same problem occurs in 1.5/1.4 and previous..., I 've also used the bleeding edge from repository (2011-04-04), the problem still exists.

Additionally, the following trace will be printed:
04.04.2011 15:35:07 org.apache.pdfbox.util.PDFStreamEngine processOperator
WARNUNG: java.lang.ClassCastException: org.apache.pdfbox.cos.COSFloat cannot be cast to org.apache.pdfbox.cos.COSInteger
java.lang.ClassCastException: org.apache.pdfbox.cos.COSFloat cannot be cast to org.apache.pdfbox.cos.COSInteger
	at org.apache.pdfbox.pdmodel.common.function.PDFunctionType2.eval(PDFunctionType2.java:81)
	at org.apache.pdfbox.pdmodel.graphics.color.PDSeparation.calculateColorValues(PDSeparation.java:238)
	at org.apache.pdfbox.util.operator.SetNonStrokingSeparation.process(SetNonStrokingSeparation.java:68)
	at org.apache.pdfbox.util.operator.SetNonStrokingColor.process(SetNonStrokingColor.java:93)
	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.operator.pagedrawer.Invoke.process(Invoke.java:130)
	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)



--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (PDFBOX-994) some colors (HKS colors) not in target image when calling org.apache.pdfbox.pdmodel.PDPage.convertToImage()

Posted by "Andreas Romeyke (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PDFBOX-994?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13017329#comment-13017329 ] 

Andreas Romeyke commented on PDFBOX-994:
----------------------------------------

To fix the CMYK to RGB conversion, what kind of help would be useful? 
Primarily I am not an Java developer, but if you point me to the related functions I could try to fix that.

Here is my code snippet calling convertToImage(), could it be help to reproduce the exception (on my system (64 bit, Debian, Linux) it is reproducable)?

/** converts a single page PDF (as stream) to BMP (as stream) */
	public byte[] page_convert_to_bmp (byte[] pdfblob) {
		byte[] res = null;
		PDFData pdfdata = this.get_pdfdata( pdfblob);
		PDPage page = pdfdata.getPage();
		BufferedImage img = null;
		try {
			img = page.convertToImage(BufferedImage.TYPE_INT_RGB, 300);
			//img = page.convertToImage();
		} catch (IOException e) {
			System.err.println(e.getLocalizedMessage());
		} 
		res = buffered_image_to_bmp_blob (img);
		this.clean_pdfdata(pdfdata);
		pdfdata = null;	
		System.err.println("called page_convert_to_bmp");	
		return res;
	}

I am using this java-engine:
$> /usr/lib/jvm/java-6-sun/bin/java -version
java version "1.6.0_24"
Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02, mixed mode)

And this compiler:
$> /usr/bin/javac -version
javac 1.6.0_24



> some colors (HKS colors) not in target image when calling org.apache.pdfbox.pdmodel.PDPage.convertToImage()
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: PDFBOX-994
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-994
>             Project: PDFBox
>          Issue Type: Bug
>          Components: PDModel
>    Affects Versions: 1.1.0, 1.5.0, 1.6.0
>         Environment: Debian Squeeze
>            Reporter: Andreas Romeyke
>         Attachments: Test_PDFBox.pdf, Test_PDFBox.png
>
>
> Hello,
> I am calling convertToImage() with a multicolored, standard PDF-file and the resulting image does not contain the content of some colored stuff.
> An example of such a PDF-file (v1.4) could be sent...
> The same problem occurs in 1.5/1.4 and previous..., I 've also used the bleeding edge from repository (2011-04-04), the problem still exists.
> Additionally, the following trace will be printed:
> 04.04.2011 15:35:07 org.apache.pdfbox.util.PDFStreamEngine processOperator
> WARNUNG: java.lang.ClassCastException: org.apache.pdfbox.cos.COSFloat cannot be cast to org.apache.pdfbox.cos.COSInteger
> java.lang.ClassCastException: org.apache.pdfbox.cos.COSFloat cannot be cast to org.apache.pdfbox.cos.COSInteger
> 	at org.apache.pdfbox.pdmodel.common.function.PDFunctionType2.eval(PDFunctionType2.java:81)
> 	at org.apache.pdfbox.pdmodel.graphics.color.PDSeparation.calculateColorValues(PDSeparation.java:238)
> 	at org.apache.pdfbox.util.operator.SetNonStrokingSeparation.process(SetNonStrokingSeparation.java:68)
> 	at org.apache.pdfbox.util.operator.SetNonStrokingColor.process(SetNonStrokingColor.java:93)
> 	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.operator.pagedrawer.Invoke.process(Invoke.java:130)
> 	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)

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (PDFBOX-994) some colors (HKS colors) not in target image when calling org.apache.pdfbox.pdmodel.PDPage.convertToImage()

Posted by "Andreas Romeyke (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PDFBOX-994?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Romeyke updated PDFBOX-994:
-----------------------------------

    Description: 
Hello,

I am calling convertToImage() with a multicolored, standard PDF-file and the resulting image does not contain the content of some colored stuff.

An example of such a PDF-file (v1.4) could be sent...

The same problem occurs in 1.5/1.4 and previous..., I 've also used the bleeding edge from repository (2011-04-04), the problem still exists.

Additionally, the following trace will be printed:
04.04.2011 15:35:07 org.apache.pdfbox.util.PDFStreamEngine processOperator
WARNUNG: java.lang.ClassCastException: org.apache.pdfbox.cos.COSFloat cannot be cast to org.apache.pdfbox.cos.COSInteger
java.lang.ClassCastException: org.apache.pdfbox.cos.COSFloat cannot be cast to org.apache.pdfbox.cos.COSInteger
	at org.apache.pdfbox.pdmodel.common.function.PDFunctionType2.eval(PDFunctionType2.java:81)
	at org.apache.pdfbox.pdmodel.graphics.color.PDSeparation.calculateColorValues(PDSeparation.java:238)
	at org.apache.pdfbox.util.operator.SetNonStrokingSeparation.process(SetNonStrokingSeparation.java:68)
	at org.apache.pdfbox.util.operator.SetNonStrokingColor.process(SetNonStrokingColor.java:93)
	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.operator.pagedrawer.Invoke.process(Invoke.java:130)
	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)



  was:
Hello,

I am calling convertToImage() with a multicolored, standard PDF-file and the resulting image does not containg the content of some colored stuff.

An example of such a PDF-file (v1.4) could be sent...

The same problem occurs in 1.5/1.4 and previous..., I 've also used the bleeding edge from repository (2011-04-04), the problem still exists.

Additionally, the following trace will be printed:
04.04.2011 15:35:07 org.apache.pdfbox.util.PDFStreamEngine processOperator
WARNUNG: java.lang.ClassCastException: org.apache.pdfbox.cos.COSFloat cannot be cast to org.apache.pdfbox.cos.COSInteger
java.lang.ClassCastException: org.apache.pdfbox.cos.COSFloat cannot be cast to org.apache.pdfbox.cos.COSInteger
	at org.apache.pdfbox.pdmodel.common.function.PDFunctionType2.eval(PDFunctionType2.java:81)
	at org.apache.pdfbox.pdmodel.graphics.color.PDSeparation.calculateColorValues(PDSeparation.java:238)
	at org.apache.pdfbox.util.operator.SetNonStrokingSeparation.process(SetNonStrokingSeparation.java:68)
	at org.apache.pdfbox.util.operator.SetNonStrokingColor.process(SetNonStrokingColor.java:93)
	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.operator.pagedrawer.Invoke.process(Invoke.java:130)
	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)



        Summary: some colors (HKS colors) not in target image when calling org.apache.pdfbox.pdmodel.PDPage.convertToImage()  (was: some colors not in target image when calling org.apache.pdfbox.pdmodel.PDPage.convertToImage())

> some colors (HKS colors) not in target image when calling org.apache.pdfbox.pdmodel.PDPage.convertToImage()
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: PDFBOX-994
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-994
>             Project: PDFBox
>          Issue Type: Bug
>          Components: PDModel
>    Affects Versions: 1.1.0, 1.5.0, 1.6.0
>         Environment: Debian Squeeze
>            Reporter: Andreas Romeyke
>
> Hello,
> I am calling convertToImage() with a multicolored, standard PDF-file and the resulting image does not contain the content of some colored stuff.
> An example of such a PDF-file (v1.4) could be sent...
> The same problem occurs in 1.5/1.4 and previous..., I 've also used the bleeding edge from repository (2011-04-04), the problem still exists.
> Additionally, the following trace will be printed:
> 04.04.2011 15:35:07 org.apache.pdfbox.util.PDFStreamEngine processOperator
> WARNUNG: java.lang.ClassCastException: org.apache.pdfbox.cos.COSFloat cannot be cast to org.apache.pdfbox.cos.COSInteger
> java.lang.ClassCastException: org.apache.pdfbox.cos.COSFloat cannot be cast to org.apache.pdfbox.cos.COSInteger
> 	at org.apache.pdfbox.pdmodel.common.function.PDFunctionType2.eval(PDFunctionType2.java:81)
> 	at org.apache.pdfbox.pdmodel.graphics.color.PDSeparation.calculateColorValues(PDSeparation.java:238)
> 	at org.apache.pdfbox.util.operator.SetNonStrokingSeparation.process(SetNonStrokingSeparation.java:68)
> 	at org.apache.pdfbox.util.operator.SetNonStrokingColor.process(SetNonStrokingColor.java:93)
> 	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.operator.pagedrawer.Invoke.process(Invoke.java:130)
> 	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)

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (PDFBOX-994) some colors (HKS colors) not in target image when calling org.apache.pdfbox.pdmodel.PDPage.convertToImage()

Posted by "Andreas Romeyke (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PDFBOX-994?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13019364#comment-13019364 ] 

Andreas Romeyke commented on PDFBOX-994:
----------------------------------------

The exception occurs if I try to convert the example above. The PDF-file is readable and could be printed without failures in evince (poppler-library) and in Acrobat. The file was created with InDesign. The class PDFData is a helper class to provide extra functionality. But the pdf-file or it's internal representation will not be touched. I will add a simpler example in next days.

> some colors (HKS colors) not in target image when calling org.apache.pdfbox.pdmodel.PDPage.convertToImage()
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: PDFBOX-994
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-994
>             Project: PDFBox
>          Issue Type: Bug
>          Components: PDModel
>    Affects Versions: 1.1.0, 1.5.0, 1.6.0
>         Environment: Debian Squeeze
>            Reporter: Andreas Romeyke
>         Attachments: Test_PDFBox.pdf, Test_PDFBox.png
>
>
> Hello,
> I am calling convertToImage() with a multicolored, standard PDF-file and the resulting image does not contain the content of some colored stuff.
> An example of such a PDF-file (v1.4) could be sent...
> The same problem occurs in 1.5/1.4 and previous..., I 've also used the bleeding edge from repository (2011-04-04), the problem still exists.
> Additionally, the following trace will be printed:
> 04.04.2011 15:35:07 org.apache.pdfbox.util.PDFStreamEngine processOperator
> WARNUNG: java.lang.ClassCastException: org.apache.pdfbox.cos.COSFloat cannot be cast to org.apache.pdfbox.cos.COSInteger
> java.lang.ClassCastException: org.apache.pdfbox.cos.COSFloat cannot be cast to org.apache.pdfbox.cos.COSInteger
> 	at org.apache.pdfbox.pdmodel.common.function.PDFunctionType2.eval(PDFunctionType2.java:81)
> 	at org.apache.pdfbox.pdmodel.graphics.color.PDSeparation.calculateColorValues(PDSeparation.java:238)
> 	at org.apache.pdfbox.util.operator.SetNonStrokingSeparation.process(SetNonStrokingSeparation.java:68)
> 	at org.apache.pdfbox.util.operator.SetNonStrokingColor.process(SetNonStrokingColor.java:93)
> 	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.operator.pagedrawer.Invoke.process(Invoke.java:130)
> 	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)

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (PDFBOX-994) some colors (HKS colors) not in target image when calling org.apache.pdfbox.pdmodel.PDPage.convertToImage()

Posted by "Andreas Lehmkühler (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PDFBOX-994?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13017306#comment-13017306 ] 

Andreas Lehmkühler commented on PDFBOX-994:
-------------------------------------------

I did some testing and I can't reproduce the exception. But I can confirm two other issues with the given pdf:

- the color conversion from CMYK to RGB doesn't work very well as it uses a simple algo to do so (seems to be a duplicate of PDFBOX-963)
- the pdf uses extended graphics states inlcuding some fancy opacity/transparency features which are not yet fully supported

> some colors (HKS colors) not in target image when calling org.apache.pdfbox.pdmodel.PDPage.convertToImage()
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: PDFBOX-994
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-994
>             Project: PDFBox
>          Issue Type: Bug
>          Components: PDModel
>    Affects Versions: 1.1.0, 1.5.0, 1.6.0
>         Environment: Debian Squeeze
>            Reporter: Andreas Romeyke
>         Attachments: Test_PDFBox.pdf, Test_PDFBox.png
>
>
> Hello,
> I am calling convertToImage() with a multicolored, standard PDF-file and the resulting image does not contain the content of some colored stuff.
> An example of such a PDF-file (v1.4) could be sent...
> The same problem occurs in 1.5/1.4 and previous..., I 've also used the bleeding edge from repository (2011-04-04), the problem still exists.
> Additionally, the following trace will be printed:
> 04.04.2011 15:35:07 org.apache.pdfbox.util.PDFStreamEngine processOperator
> WARNUNG: java.lang.ClassCastException: org.apache.pdfbox.cos.COSFloat cannot be cast to org.apache.pdfbox.cos.COSInteger
> java.lang.ClassCastException: org.apache.pdfbox.cos.COSFloat cannot be cast to org.apache.pdfbox.cos.COSInteger
> 	at org.apache.pdfbox.pdmodel.common.function.PDFunctionType2.eval(PDFunctionType2.java:81)
> 	at org.apache.pdfbox.pdmodel.graphics.color.PDSeparation.calculateColorValues(PDSeparation.java:238)
> 	at org.apache.pdfbox.util.operator.SetNonStrokingSeparation.process(SetNonStrokingSeparation.java:68)
> 	at org.apache.pdfbox.util.operator.SetNonStrokingColor.process(SetNonStrokingColor.java:93)
> 	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.operator.pagedrawer.Invoke.process(Invoke.java:130)
> 	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)

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (PDFBOX-994) some colors (HKS colors) not in target image when calling org.apache.pdfbox.pdmodel.PDPage.convertToImage()

Posted by "Andreas Lehmkühler (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PDFBOX-994?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Lehmkühler updated PDFBOX-994:
--------------------------------------

    Attachment: PDFBOX994-Test_PDFBox1.png

> some colors (HKS colors) not in target image when calling org.apache.pdfbox.pdmodel.PDPage.convertToImage()
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: PDFBOX-994
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-994
>             Project: PDFBox
>          Issue Type: Bug
>          Components: PDModel
>    Affects Versions: 1.1.0, 1.5.0, 1.6.0
>         Environment: Debian Squeeze
>            Reporter: Andreas Romeyke
>         Attachments: PDFBOX994-Test_PDFBox1.png, Test_PDFBox.pdf, Test_PDFBox.png
>
>
> Hello,
> I am calling convertToImage() with a multicolored, standard PDF-file and the resulting image does not contain the content of some colored stuff.
> An example of such a PDF-file (v1.4) could be sent...
> The same problem occurs in 1.5/1.4 and previous..., I 've also used the bleeding edge from repository (2011-04-04), the problem still exists.
> Additionally, the following trace will be printed:
> 04.04.2011 15:35:07 org.apache.pdfbox.util.PDFStreamEngine processOperator
> WARNUNG: java.lang.ClassCastException: org.apache.pdfbox.cos.COSFloat cannot be cast to org.apache.pdfbox.cos.COSInteger
> java.lang.ClassCastException: org.apache.pdfbox.cos.COSFloat cannot be cast to org.apache.pdfbox.cos.COSInteger
> 	at org.apache.pdfbox.pdmodel.common.function.PDFunctionType2.eval(PDFunctionType2.java:81)
> 	at org.apache.pdfbox.pdmodel.graphics.color.PDSeparation.calculateColorValues(PDSeparation.java:238)
> 	at org.apache.pdfbox.util.operator.SetNonStrokingSeparation.process(SetNonStrokingSeparation.java:68)
> 	at org.apache.pdfbox.util.operator.SetNonStrokingColor.process(SetNonStrokingColor.java:93)
> 	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.operator.pagedrawer.Invoke.process(Invoke.java:130)
> 	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)

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Updated] (PDFBOX-994) some colors (HKS colors) not in target image when calling org.apache.pdfbox.pdmodel.PDPage.convertToImage()

Posted by "Andreas Lehmkühler (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PDFBOX-994?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Lehmkühler updated PDFBOX-994:
--------------------------------------

    Issue Type: New Feature  (was: Bug)

Changed from "Bug" to "New Feature"

> some colors (HKS colors) not in target image when calling org.apache.pdfbox.pdmodel.PDPage.convertToImage()
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: PDFBOX-994
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-994
>             Project: PDFBox
>          Issue Type: New Feature
>          Components: PDModel
>    Affects Versions: 1.1.0, 1.5.0, 1.6.0
>         Environment: Debian Squeeze
>            Reporter: Andreas Romeyke
>         Attachments: PDFBOX994-Test_PDFBox1.png, Test_PDFBox.pdf, Test_PDFBox.png
>
>
> Hello,
> I am calling convertToImage() with a multicolored, standard PDF-file and the resulting image does not contain the content of some colored stuff.
> An example of such a PDF-file (v1.4) could be sent...
> The same problem occurs in 1.5/1.4 and previous..., I 've also used the bleeding edge from repository (2011-04-04), the problem still exists.
> Additionally, the following trace will be printed:
> 04.04.2011 15:35:07 org.apache.pdfbox.util.PDFStreamEngine processOperator
> WARNUNG: java.lang.ClassCastException: org.apache.pdfbox.cos.COSFloat cannot be cast to org.apache.pdfbox.cos.COSInteger
> java.lang.ClassCastException: org.apache.pdfbox.cos.COSFloat cannot be cast to org.apache.pdfbox.cos.COSInteger
> 	at org.apache.pdfbox.pdmodel.common.function.PDFunctionType2.eval(PDFunctionType2.java:81)
> 	at org.apache.pdfbox.pdmodel.graphics.color.PDSeparation.calculateColorValues(PDSeparation.java:238)
> 	at org.apache.pdfbox.util.operator.SetNonStrokingSeparation.process(SetNonStrokingSeparation.java:68)
> 	at org.apache.pdfbox.util.operator.SetNonStrokingColor.process(SetNonStrokingColor.java:93)
> 	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.operator.pagedrawer.Invoke.process(Invoke.java:130)
> 	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)

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (PDFBOX-994) some colors (HKS colors) not in target image when calling org.apache.pdfbox.pdmodel.PDPage.convertToImage()

Posted by "Andreas Lehmkühler (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PDFBOX-994?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13048599#comment-13048599 ] 

Andreas Lehmkühler commented on PDFBOX-994:
-------------------------------------------

I dig deeper into this a came rto the following conclusions:

- the CMYK2RGB conversion works fine (I have to revise my former statement)
- I can't reproduce the exception
- the only issue left is the usage of some unsupported opacity/transparency effects within a extended graphics state which lead to the 2 black boxes in the middle and the solid black shadow of the 2 upper boxes

Find attached the converted sample pdf using the current trunk (rev. 1135129)



> some colors (HKS colors) not in target image when calling org.apache.pdfbox.pdmodel.PDPage.convertToImage()
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: PDFBOX-994
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-994
>             Project: PDFBox
>          Issue Type: Bug
>          Components: PDModel
>    Affects Versions: 1.1.0, 1.5.0, 1.6.0
>         Environment: Debian Squeeze
>            Reporter: Andreas Romeyke
>         Attachments: PDFBOX994-Test_PDFBox1.png, Test_PDFBox.pdf, Test_PDFBox.png
>
>
> Hello,
> I am calling convertToImage() with a multicolored, standard PDF-file and the resulting image does not contain the content of some colored stuff.
> An example of such a PDF-file (v1.4) could be sent...
> The same problem occurs in 1.5/1.4 and previous..., I 've also used the bleeding edge from repository (2011-04-04), the problem still exists.
> Additionally, the following trace will be printed:
> 04.04.2011 15:35:07 org.apache.pdfbox.util.PDFStreamEngine processOperator
> WARNUNG: java.lang.ClassCastException: org.apache.pdfbox.cos.COSFloat cannot be cast to org.apache.pdfbox.cos.COSInteger
> java.lang.ClassCastException: org.apache.pdfbox.cos.COSFloat cannot be cast to org.apache.pdfbox.cos.COSInteger
> 	at org.apache.pdfbox.pdmodel.common.function.PDFunctionType2.eval(PDFunctionType2.java:81)
> 	at org.apache.pdfbox.pdmodel.graphics.color.PDSeparation.calculateColorValues(PDSeparation.java:238)
> 	at org.apache.pdfbox.util.operator.SetNonStrokingSeparation.process(SetNonStrokingSeparation.java:68)
> 	at org.apache.pdfbox.util.operator.SetNonStrokingColor.process(SetNonStrokingColor.java:93)
> 	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.operator.pagedrawer.Invoke.process(Invoke.java:130)
> 	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)

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Issue Comment Edited] (PDFBOX-994) some colors (HKS colors) not in target image when calling org.apache.pdfbox.pdmodel.PDPage.convertToImage()

Posted by "Andreas Lehmkühler (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PDFBOX-994?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13048599#comment-13048599 ] 

Andreas Lehmkühler edited comment on PDFBOX-994 at 6/13/11 3:27 PM:
--------------------------------------------------------------------

I dig deeper into this a came rto the following conclusions:

- the CMYK2RGB conversion works fine (I have to revise my former statement)
- I can't reproduce the exception
- the only issue left is the usage of some unsupported opacity/transparency effects within a extended graphics state which lead to the 2 black boxes in the middle and the solid black shadow of the 2 upper boxes
- it's not a duplicate of PDFBOX-963

Find attached the converted sample pdf using the current trunk (rev. 1135129)



      was (Author: lehmi):
    I dig deeper into this a came rto the following conclusions:

- the CMYK2RGB conversion works fine (I have to revise my former statement)
- I can't reproduce the exception
- the only issue left is the usage of some unsupported opacity/transparency effects within a extended graphics state which lead to the 2 black boxes in the middle and the solid black shadow of the 2 upper boxes

Find attached the converted sample pdf using the current trunk (rev. 1135129)


  
> some colors (HKS colors) not in target image when calling org.apache.pdfbox.pdmodel.PDPage.convertToImage()
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: PDFBOX-994
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-994
>             Project: PDFBox
>          Issue Type: New Feature
>          Components: PDModel
>    Affects Versions: 1.1.0, 1.5.0, 1.6.0
>         Environment: Debian Squeeze
>            Reporter: Andreas Romeyke
>         Attachments: PDFBOX994-Test_PDFBox1.png, Test_PDFBox.pdf, Test_PDFBox.png
>
>
> Hello,
> I am calling convertToImage() with a multicolored, standard PDF-file and the resulting image does not contain the content of some colored stuff.
> An example of such a PDF-file (v1.4) could be sent...
> The same problem occurs in 1.5/1.4 and previous..., I 've also used the bleeding edge from repository (2011-04-04), the problem still exists.
> Additionally, the following trace will be printed:
> 04.04.2011 15:35:07 org.apache.pdfbox.util.PDFStreamEngine processOperator
> WARNUNG: java.lang.ClassCastException: org.apache.pdfbox.cos.COSFloat cannot be cast to org.apache.pdfbox.cos.COSInteger
> java.lang.ClassCastException: org.apache.pdfbox.cos.COSFloat cannot be cast to org.apache.pdfbox.cos.COSInteger
> 	at org.apache.pdfbox.pdmodel.common.function.PDFunctionType2.eval(PDFunctionType2.java:81)
> 	at org.apache.pdfbox.pdmodel.graphics.color.PDSeparation.calculateColorValues(PDSeparation.java:238)
> 	at org.apache.pdfbox.util.operator.SetNonStrokingSeparation.process(SetNonStrokingSeparation.java:68)
> 	at org.apache.pdfbox.util.operator.SetNonStrokingColor.process(SetNonStrokingColor.java:93)
> 	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.operator.pagedrawer.Invoke.process(Invoke.java:130)
> 	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)

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (PDFBOX-994) some colors not in target image when calling org.apache.pdfbox.pdmodel.PDPage.convertToImage()

Posted by "Andreas Lehmkühler (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PDFBOX-994?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13015453#comment-13015453 ] 

Andreas Lehmkühler commented on PDFBOX-994:
-------------------------------------------

Please attach the mentioned sample pdf so that we'll be able to reproduce that behaviour.

> some colors not in target image when calling org.apache.pdfbox.pdmodel.PDPage.convertToImage()
> ----------------------------------------------------------------------------------------------
>
>                 Key: PDFBOX-994
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-994
>             Project: PDFBox
>          Issue Type: Bug
>          Components: PDModel
>    Affects Versions: 1.1.0, 1.5.0, 1.6.0
>         Environment: Debian Squeeze
>            Reporter: Andreas Romeyke
>
> Hello,
> I am calling convertToImage() with a multicolored, standard PDF-file and the resulting image does not containg the content of some colored stuff.
> An example of such a PDF-file (v1.4) could be sent...
> The same problem occurs in 1.5/1.4 and previous..., I 've also used the bleeding edge from repository (2011-04-04), the problem still exists.
> Additionally, the following trace will be printed:
> 04.04.2011 15:35:07 org.apache.pdfbox.util.PDFStreamEngine processOperator
> WARNUNG: java.lang.ClassCastException: org.apache.pdfbox.cos.COSFloat cannot be cast to org.apache.pdfbox.cos.COSInteger
> java.lang.ClassCastException: org.apache.pdfbox.cos.COSFloat cannot be cast to org.apache.pdfbox.cos.COSInteger
> 	at org.apache.pdfbox.pdmodel.common.function.PDFunctionType2.eval(PDFunctionType2.java:81)
> 	at org.apache.pdfbox.pdmodel.graphics.color.PDSeparation.calculateColorValues(PDSeparation.java:238)
> 	at org.apache.pdfbox.util.operator.SetNonStrokingSeparation.process(SetNonStrokingSeparation.java:68)
> 	at org.apache.pdfbox.util.operator.SetNonStrokingColor.process(SetNonStrokingColor.java:93)
> 	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.operator.pagedrawer.Invoke.process(Invoke.java:130)
> 	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)

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (PDFBOX-994) some colors (HKS colors) not in target image when calling org.apache.pdfbox.pdmodel.PDPage.convertToImage()

Posted by "Andreas Lehmkühler (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PDFBOX-994?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13017528#comment-13017528 ] 

Andreas Lehmkühler commented on PDFBOX-994:
-------------------------------------------

AFAIK, there is no algo to do a 100% conversion of CMYK into RGB values. I guess, one has to use ICC-profiles, but I didn't yet figured out how.

Do the exception occur when you try to convert the attached example? The stack trace indicates that probably something is wrong with one of the streams within the pdf. The class "PDFData" in your code snippet isn't part of PDFBox. What does it do?

> some colors (HKS colors) not in target image when calling org.apache.pdfbox.pdmodel.PDPage.convertToImage()
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: PDFBOX-994
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-994
>             Project: PDFBox
>          Issue Type: Bug
>          Components: PDModel
>    Affects Versions: 1.1.0, 1.5.0, 1.6.0
>         Environment: Debian Squeeze
>            Reporter: Andreas Romeyke
>         Attachments: Test_PDFBox.pdf, Test_PDFBox.png
>
>
> Hello,
> I am calling convertToImage() with a multicolored, standard PDF-file and the resulting image does not contain the content of some colored stuff.
> An example of such a PDF-file (v1.4) could be sent...
> The same problem occurs in 1.5/1.4 and previous..., I 've also used the bleeding edge from repository (2011-04-04), the problem still exists.
> Additionally, the following trace will be printed:
> 04.04.2011 15:35:07 org.apache.pdfbox.util.PDFStreamEngine processOperator
> WARNUNG: java.lang.ClassCastException: org.apache.pdfbox.cos.COSFloat cannot be cast to org.apache.pdfbox.cos.COSInteger
> java.lang.ClassCastException: org.apache.pdfbox.cos.COSFloat cannot be cast to org.apache.pdfbox.cos.COSInteger
> 	at org.apache.pdfbox.pdmodel.common.function.PDFunctionType2.eval(PDFunctionType2.java:81)
> 	at org.apache.pdfbox.pdmodel.graphics.color.PDSeparation.calculateColorValues(PDSeparation.java:238)
> 	at org.apache.pdfbox.util.operator.SetNonStrokingSeparation.process(SetNonStrokingSeparation.java:68)
> 	at org.apache.pdfbox.util.operator.SetNonStrokingColor.process(SetNonStrokingColor.java:93)
> 	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.operator.pagedrawer.Invoke.process(Invoke.java:130)
> 	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)

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (PDFBOX-994) some colors (HKS colors) not in target image when calling org.apache.pdfbox.pdmodel.PDPage.convertToImage()

Posted by "Andreas Romeyke (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PDFBOX-994?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Romeyke updated PDFBOX-994:
-----------------------------------

    Attachment: Test_PDFBox.png
                Test_PDFBox.pdf

Testdata file to show the problem, thanks to Julia Dobroschke, could be used freely. The PNG-file shows the problem after conversion to bitmap.

> some colors (HKS colors) not in target image when calling org.apache.pdfbox.pdmodel.PDPage.convertToImage()
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: PDFBOX-994
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-994
>             Project: PDFBox
>          Issue Type: Bug
>          Components: PDModel
>    Affects Versions: 1.1.0, 1.5.0, 1.6.0
>         Environment: Debian Squeeze
>            Reporter: Andreas Romeyke
>         Attachments: Test_PDFBox.pdf, Test_PDFBox.png
>
>
> Hello,
> I am calling convertToImage() with a multicolored, standard PDF-file and the resulting image does not contain the content of some colored stuff.
> An example of such a PDF-file (v1.4) could be sent...
> The same problem occurs in 1.5/1.4 and previous..., I 've also used the bleeding edge from repository (2011-04-04), the problem still exists.
> Additionally, the following trace will be printed:
> 04.04.2011 15:35:07 org.apache.pdfbox.util.PDFStreamEngine processOperator
> WARNUNG: java.lang.ClassCastException: org.apache.pdfbox.cos.COSFloat cannot be cast to org.apache.pdfbox.cos.COSInteger
> java.lang.ClassCastException: org.apache.pdfbox.cos.COSFloat cannot be cast to org.apache.pdfbox.cos.COSInteger
> 	at org.apache.pdfbox.pdmodel.common.function.PDFunctionType2.eval(PDFunctionType2.java:81)
> 	at org.apache.pdfbox.pdmodel.graphics.color.PDSeparation.calculateColorValues(PDSeparation.java:238)
> 	at org.apache.pdfbox.util.operator.SetNonStrokingSeparation.process(SetNonStrokingSeparation.java:68)
> 	at org.apache.pdfbox.util.operator.SetNonStrokingColor.process(SetNonStrokingColor.java:93)
> 	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.operator.pagedrawer.Invoke.process(Invoke.java:130)
> 	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)

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira