You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@pdfbox.apache.org by Jake Parsell <ja...@me.com> on 2013/10/28 17:15:00 UTC

pdfbackground

Is there a straightforward way to make the background of a pdf white with pdfbox? Currently it is transparent and I have some legacy processing software that has trouble with transparency. I would like to just make the background white. 

Thanks,
Jacob Parsell

Re: pdfbackground

Posted by Andreas Lehmkühler <an...@lehmi.de>.
Hi,

> Jake Parsell <ja...@me.com> hat am 28. Oktober 2013 um 17:15 geschrieben:
>
>
> Is there a straightforward way to make the background of a pdf white with
> pdfbox? Currently it is transparent and I have some legacy processing software
> that has trouble with transparency. I would like to just make the background
> white.
>
A PDF doesn't have a background, neither a color nor something like
transparency.
So that I didn't understand what exactly bothers you or your legacy software ...

Anyway, you may create a pdf containing a white box and combine that with the
existing one
using OverlayPDF [1].

> Thanks,
> Jacob Parsell

BR
Andreas Lehmkühler

[1]
http://svn.apache.org/repos/asf/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/OverlayPDF.java