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

Tilman Hausherr commented on PDFBOX-5361:
-----------------------------------------

My intention is this for 2.0:
{code}
    /**
     * This will set the overprint mode(OPM).
     *
     * @param overprintMode The overprint mode, 0 or 1.
     */
    public void setOverprintMode(Float overprintMode)
    {
        if (overprintMode == null)
        {
            dict.removeItem(COSName.OPM);
        }
        else
        {
            dict.setItem(COSName.OPM, COSInteger.get(overprintMode.intValue()));
        }
    }
{code}

> Wrong datatype for OPM in PDExtendedGraphicsState
> -------------------------------------------------
>
>                 Key: PDFBOX-5361
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-5361
>             Project: PDFBox
>          Issue Type: Bug
>          Components: PDModel
>    Affects Versions: 2.0.25
>            Reporter: Tilman Hausherr
>            Priority: Major
>             Fix For: 2.0.26, 3.0.0 PDFBox
>
>
> /OPM should be an integer, but is a float.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

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

Reply via email to