Re: Add watermark to PDF

2010-06-02 Thread Bill Tillman
Date: Tue, 1 Jun 2010 19:36:02 +0200
From: "C. P. Ghost" 
Subject: Re: Add watermark to PDF
To: John Almberg 
Cc: freebsd-questions@freebsd.org
Message-ID:
    
Content-Type: text/plain; charset=ISO-8859-1

On Tue, Jun 1, 2010 at 4:15 PM, John Almberg  wrote:
> So basically this script would have to read in the PDF and (ideally) a plain
> text file, and output a PDF with the plain text merged into the PDF as a
> footer.

Maybe this will help?
  http://www.reportlab.com/software/opensource/rl-toolkit/
There's even a FreeBSD port for it:
  print/py-reportlab2

> Any ideas, much appreciated.
>
> -- John

-cpghost.

I think the reportlab program is a bit overkill not to mention the huge 
learning curve. I have used the port 
 
 /usr/port/print/pdftk
 
with some success to insert watermarks, merge files and rotate the pages. 
Nothing beats the real thing when working with PDF files and while Adobe 
Acrobat Professional is not cheap, if your doing real work it's worth the 
investment.



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Add watermark to PDF

2010-06-02 Thread John Almberg
Thanks CP, Nathan, & Kevin. You've given me some good places to start 
looking.


-- John


C. P. Ghost wrote:

On Tue, Jun 1, 2010 at 4:15 PM, John Almberg  wrote:
   

So basically this script would have to read in the PDF and (ideally) a plain
text file, and output a PDF with the plain text merged into the PDF as a
footer.
 


Maybe this will help?
   http://www.reportlab.com/software/opensource/rl-toolkit/
There's even a FreeBSD port for it:
   print/py-reportlab2

   

Any ideas, much appreciated.

-- John
 


-cpghost.

   


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Add watermark to PDF

2010-06-01 Thread C. P. Ghost
On Tue, Jun 1, 2010 at 4:15 PM, John Almberg  wrote:
> So basically this script would have to read in the PDF and (ideally) a plain
> text file, and output a PDF with the plain text merged into the PDF as a
> footer.

Maybe this will help?
  http://www.reportlab.com/software/opensource/rl-toolkit/
There's even a FreeBSD port for it:
  print/py-reportlab2

> Any ideas, much appreciated.
>
> -- John

-cpghost.

-- 
Cordula's Web. http://www.cordula.ws/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Add watermark to PDF

2010-06-01 Thread Nathan Vidican
On Tue, Jun 1, 2010 at 10:15 AM, John Almberg  wrote:

> I've just spent a couple hours googling for an answer to this question
> without success... This is probably a bit off topic, but this list seems to
> be able to come up with answers to questions that stump other lists, so...
>
> I would like to add a customized footer (a stamp or watermark) to an
> existing PDF, like the guys at Pragmatic Programmers do with their PDFs.
>
> So basically this script would have to read in the PDF and (ideally) a
> plain text file, and output a PDF with the plain text merged into the PDF as
> a footer.
>
> Anyone know of an existing utility that might do something like this?
>
> Probably not, so anyone know of a PDF library that I could use to roll my
> own? I'm competent in Perl, PHP, and Ruby, and at this point, would be
> willing to learn Sanskrit if it could solve this problem for me.
> Unfortunatley, I've never done any PDF programming, so not quite sure where
> to start.
>
> Any ideas, much appreciated.
>
> -- John
>
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "
> freebsd-questions-unsubscr...@freebsd.org"
>

I do something very similar, using PDF file as a template and mysql database
as input and filling in form-fields and also adding a JPEG to the bottom of
the page as a 'produced by' with some plain text also adding the 'generated
on' tag to the bottom. I use a simple wrapper script written in PERL as a
cgi script - basically to generate dynamic PDF reports on the fly via
webserver.

I use PDF::Reuse Perl module to do it, it's well documented/supported and
very easy to work with. See:
http://search.cpan.org/~larslund/PDF-Reuse-0.35/Reuse.pm
for further details.

-- 
Nathan Vidican
nat...@vidican.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Add watermark to PDF

2010-06-01 Thread Kevin Wilcox
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 1 June 2010 10:15, John Almberg  wrote:

> I would like to add a customized footer (a stamp or watermark) to an
> existing PDF, like the guys at Pragmatic Programmers do with their PDFs.

I used to do something similar using the fpdf/pdftk toolkits.

http://www.fpdf.org/
http://www.accesspdf.com/pdftk/

kmw
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Use GnuPG with Firefox : http://getfiregpg.org (Version: 0.7.10)

iEYEARECAAYFAkwFGGAACgkQsKMTOtQ3fKGfkwCfQyJSOON7k6liWggyYV2P+rKC
OokAn3jpAWqarsvenlRKyThR0/DryaKe
=6v3V
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Add watermark to PDF

2010-06-01 Thread John Almberg
I've just spent a couple hours googling for an answer to this question 
without success... This is probably a bit off topic, but this list seems 
to be able to come up with answers to questions that stump other lists, 
so...


I would like to add a customized footer (a stamp or watermark) to an 
existing PDF, like the guys at Pragmatic Programmers do with their PDFs.


So basically this script would have to read in the PDF and (ideally) a 
plain text file, and output a PDF with the plain text merged into the 
PDF as a footer.


Anyone know of an existing utility that might do something like this?

Probably not, so anyone know of a PDF library that I could use to roll 
my own? I'm competent in Perl, PHP, and Ruby, and at this point, would 
be willing to learn Sanskrit if it could solve this problem for me. 
Unfortunatley, I've never done any PDF programming, so not quite sure 
where to start.


Any ideas, much appreciated.

-- John
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"