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: [email protected]
For additional commands, e-mail: [email protected]