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/09/27 14:34:33 UTC

[jira] [Reopened] (PDFBOX-2391) Use an enum for RenderingIntent

     [ https://issues.apache.org/jira/browse/PDFBOX-2391?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tilman Hausherr reopened PDFBOX-2391:
-------------------------------------
      Assignee: John Hewson

I get an exception with gs-bugzilla692845.pdf from PDFBOX-2363:
{code}
SCHWERWIEGEND: Error converting file gs-bugzilla692845.pdf
java.lang.IllegalArgumentException: No enum constant org.apache.pdfbox.pdmodel.graphics.state.RenderingIntent.RelativeColorimetric
	at java.lang.Enum.valueOf(Enum.java:236)
	at org.apache.pdfbox.pdmodel.graphics.state.RenderingIntent.valueOf(RenderingIntent.java:25)
	at org.apache.pdfbox.pdmodel.graphics.state.PDExternalGraphicsState.getRenderingIntent(PDExternalGraphicsState.java:290)
	at org.apache.pdfbox.pdmodel.graphics.state.PDExternalGraphicsState.copyIntoGraphicsState(PDExternalGraphicsState.java:93)
{code}

> Use an enum for RenderingIntent
> -------------------------------
>
>                 Key: PDFBOX-2391
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2391
>             Project: PDFBox
>          Issue Type: Improvement
>          Components: PDModel
>    Affects Versions: 2.0.0
>            Reporter: John Hewson
>            Assignee: John Hewson
>            Priority: Minor
>             Fix For: 2.0.0
>
>
> The rendering intent in the graphics state is currently a String, we should replace it with a RenderingIntent enum.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)