You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Jesse Long (JIRA)" <ji...@apache.org> on 2015/04/20 12:33:58 UTC

[jira] [Created] (PDFBOX-2764) Allow setting extended graphics state in PDPageContentStream

Jesse Long created PDFBOX-2764:
----------------------------------

             Summary: Allow setting extended graphics state in PDPageContentStream
                 Key: PDFBOX-2764
                 URL: https://issues.apache.org/jira/browse/PDFBOX-2764
             Project: PDFBox
          Issue Type: Improvement
          Components: PDModel
    Affects Versions: 2.0.0
            Reporter: Jesse Long
            Priority: Minor


I use PDExtendedGraphicsState to draw with transparency. For this to work, I register the extended graphics state, then call PDPageContentStream.appendRawCommands("/name gs\n");

appendRawCommands() has been deprecated in 2.0.0. I need a way of doing this, so please either un-deprecate appendRawCommands(), or add something like:

public void setExtendedGraphicsState(PDExtendedGraphicsState state)
{
    COSName egsName = resources.add(state);
    writeOperand(egsName);
    writeOperator("gs");
}



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

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org