[
https://issues.apache.org/jira/browse/PDFBOX-4710?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jason Pyeron updated PDFBOX-4710:
---------------------------------
Description:
see patch
PDF in the wild has {{0.262745 0.301961 0.631373 RG}} but this cannot be
represented as a n/255 fraction.
{code:java}
package snippet;
public class Snippet
{
public static void main(String[] args)
{
System.out.println(((int)67)/255f);
System.out.println(0.2627451f*255f);
System.out.println(0.262745f*255f);
System.out.println(66.99997f/255f);
}
}
{code}
was:
see patch
PDF in the wild has {{0.262745 0.301961 0.631373 RG}} but this cannot be
represented as a n/255 fraction.
> setStrokingColor missing float option
> -------------------------------------
>
> Key: PDFBOX-4710
> URL: https://issues.apache.org/jira/browse/PDFBOX-4710
> Project: PDFBox
> Issue Type: Improvement
> Components: PDModel
> Affects Versions: 2.0.15
> Reporter: Jason Pyeron
> Priority: Major
> Attachments: pdfbox-4710.patch
>
>
> see patch
>
> PDF in the wild has {{0.262745 0.301961 0.631373 RG}} but this cannot be
> represented as a n/255 fraction.
>
> {code:java}
> package snippet;
> public class Snippet
> {
> public static void main(String[] args)
> {
> System.out.println(((int)67)/255f);
> System.out.println(0.2627451f*255f);
> System.out.println(0.262745f*255f);
> System.out.println(66.99997f/255f);
> }
> }
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]