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

Timo Boehme edited comment on PDFBOX-5636 at 7/17/23 8:35 AM:
--------------------------------------------------------------

Reading the spec I cannot follow how the implemented optimized version will 
produce correct results?

E.g. [2 1]; -1 : according to spec the phase will be 5:   -1 + 2*(2+1)

with the current optimized implementation it will be 4 (actually it produces 
multiples of 4);

regarding the initial implementation: it should be checked that the sum of the 
array components is >0 otherwise the loop will run forever


was (Author: tboehme):
Reading the spec I cannot follow how the implemented optimized version will 
produce correct results?

E.g. [2 1]; -1 : according to spec the phase will be 5:   -1 + 2*(2+1)

with the current optimized implementation it will be 4 (actually it produces 
multiples of 4);

regarding the initial implementation: it should be checked, the the sum of the 
array components is >0 otherwise the loop will run forever

> Implement PDF 2.0 dash phase clarification
> ------------------------------------------
>
>                 Key: PDFBOX-5636
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-5636
>             Project: PDFBox
>          Issue Type: Improvement
>          Components: Rendering
>    Affects Versions: 2.0.29
>            Reporter: Tilman Hausherr
>            Assignee: Tilman Hausherr
>            Priority: Minor
>             Fix For: 2.0.30, 3.0.0 PDFBox
>
>
> Implement clarification of PDF 2.0 when dash phase is negative



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to