You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@pdfbox.apache.org by "Wojack, Robert (USTP)" <Ro...@usdoj.gov> on 2016/02/02 15:12:59 UTC
Updating footer text for an existing PDF doc?
Is there a standard approach to updating the footer text of an existing PDF document using PDFBox.
Sadly, we're using PDFBox 1.2.
Bob Wojack
SRA International, Inc.
Onsite Contractor for the Department of Justice
Senior Tech Lead
US Trustee Program
Onsite Email Address: Robert.Wojack@usdoj.gov<ma...@usdoj.gov>
Onsite Phone Number: TBD
Cell#: (301)910-9975
RE: Updating footer text for an existing PDF doc?
Posted by "Wojack, Robert (USTP)" <Ro...@usdoj.gov>.
That was exactly the direction I needed! Thanks for your help!
Bob Wojack
SRA International, Inc.
Onsite Contractor for the Department of Justice
Senior Tech Lead
US Trustee Program
Onsite Email Address: Robert.Wojack@usdoj.gov
Onsite Phone Number: TBD
Cell#: (301)910-9975
-----Original Message-----
From: Tilman Hausherr [mailto:THausherr@t-online.de]
Sent: Tuesday, February 02, 2016 12:06 PM
To: users@pdfbox.apache.org
Subject: Re: Updating footer text for an existing PDF doc?
Am 02.02.2016 um 15:12 schrieb Wojack, Robert (USTP):
> Is there a standard approach to updating the footer text of an existing PDF document using PDFBox.
Load the file, get the page, open an "append" content stream with "reset" set, write to the appropriate position, save the file. If you want to modify an existing footer, fill a rectangle in the background color before writing the text.
Tilman
>
> Sadly, we're using PDFBox 1.2.
>
> Bob Wojack
> SRA International, Inc.
> Onsite Contractor for the Department of Justice Senior Tech Lead US
> Trustee Program
> Onsite Email Address: Robert.Wojack@usdoj.gov<ma...@usdoj.gov>
> Onsite Phone Number: TBD
> Cell#: (301)910-9975
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org
Re: Updating footer text for an existing PDF doc?
Posted by Tilman Hausherr <TH...@t-online.de>.
Am 02.02.2016 um 15:12 schrieb Wojack, Robert (USTP):
> Is there a standard approach to updating the footer text of an existing PDF document using PDFBox.
Load the file, get the page, open an "append" content stream with
"reset" set, write to the appropriate position, save the file. If you
want to modify an existing footer, fill a rectangle in the background
color before writing the text.
Tilman
>
> Sadly, we're using PDFBox 1.2.
>
> Bob Wojack
> SRA International, Inc.
> Onsite Contractor for the Department of Justice
> Senior Tech Lead
> US Trustee Program
> Onsite Email Address: Robert.Wojack@usdoj.gov<ma...@usdoj.gov>
> Onsite Phone Number: TBD
> Cell#: (301)910-9975
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org