> Does anyone know how to merge a form with signatures (unsigned) with
> another pdf. We are build a system for the client to sign off on
> results and we want to attach the sign-off form to the top of the image
> we create.
OK, if by form, you mean acrobat form, then you have to use either Acrobat
proper, or the perl module PDF::API2:
#!/usr/bin/perl -w
use strict;
use PDF::API2; # 0.3a26 or higher
my $cover = PDF::API2->open('coverletter.pdf');
my $body = PDF::API2->open('body.pdf');
my $merged = PDF::API2->new(-file => 'merged.pdf');
foreach my $pdf ($cover,$body) {
foreach my $pageno (1..($pdf->pages)) { # 1 (not 0) is 1st page !
$merged->importpage($pdf,$pageno); # insert it at the end
}
}
$merged->save;
If you just mean a PDF when printed out becomes a paper form, then you can
use other tools, like pdflatex.
merge.tex:
\documentclass[a4paper]{minimal}
\usepackage{geometry}
\geometry{top=0cm,bottom=0cm,left=0cm,right=0cm,nohead,nofoot}
\usepackage{pdfpages}
\begin{document}
\includepdf[pages={-}]{cover.pdf}
\includepdf[pages={-}]{body.pdf}
\end{document}
# pdflatex merge.tex
Many apps (notably word with PDFwriter) produce broken pdfs which
can't be used by many tools, but pdflatex is very tolerant, I use
it to "clean"/"redistill" pdfs before I use perl tools on them,
using the above TeX with only one pdf.
cheers
Woody
>
>
> --
> Thanks
> KenF
> OpenOffice.org developer
>
> --
> SLUG - Sydney Linux User's Group - http://slug.org.au/
> More Info: http://lists.slug.org.au/listinfo/slug
--
Woody
--
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug