You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Philip Helger (JIRA)" <ji...@apache.org> on 2016/01/25 12:26:39 UTC
[jira] [Created] (PDFBOX-3212) PDPageContentStream - give
possibility to prepend content
Philip Helger created PDFBOX-3212:
-------------------------------------
Summary: PDPageContentStream - give possibility to prepend content
Key: PDFBOX-3212
URL: https://issues.apache.org/jira/browse/PDFBOX-3212
Project: PDFBox
Issue Type: New Feature
Components: PDModel
Affects Versions: 2.0.0
Environment: 2.0.0-RC3
Reporter: Philip Helger
Fix For: 2.0.0
Currently {{PDPageContentStream}} has the possibility to overwrite existing content or to append content to it.
What would be nice is to also prepend content (e.g. for watermarking).
Therefore I locally changed the constructor parameter {{boolean appendContent}} to an enum:
{code}
public static enum EAppendMode
{
OVERWRITE, APPEND, PREPEND;
public boolean isNotOverwrite () {
return this != OVERWRITE;
}
public boolean isPrepend () {
return this == PREPEND;
}
}
{code}
Of coure this means an incompatibility in the parameter list.
If you are interested to follow that path I can provide you with a patch (providing API compatibility).
If you think this idea is bullshit, just close it...
--
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