From lvl at omnitec.net Fri May 6 10:28:16 2016 From: lvl at omnitec.net (L. V. Lammert) Date: Fri, 6 May 2016 09:28:16 -0500 (CDT) Subject: [GRLUG] "Time Stamp" PDF Message-ID: Interesting question from a friend attorney, .. he wants to put a footer on a PDF document with case #, description, page x of n. Before I create a template in gimp [so it can be done semi-transparent], can anyone think of a better solution? Do NOT wish to edit the PDF, .. so LibreOffice or InkScape would not be desirable. Thanks! Lee From mfarver at mindbent.org Fri May 6 11:16:19 2016 From: mfarver at mindbent.org (Mark Farver) Date: Fri, 6 May 2016 11:16:19 -0400 Subject: [GRLUG] "Time Stamp" PDF In-Reply-To: References: Message-ID: On May 6, 2016 10:28 AM, "L. V. Lammert" wrote: > > Interesting question from a friend attorney, .. he wants to put a footer > on a PDF document with case #, description, page x of n. A Google search provides the answer to this problem almost immediately. http://bioeng-student.blogspot.com/2009/02/adding-pdf-headers-footers-and.html Mark -------------- next part -------------- An HTML attachment was scrubbed... URL: From justin.denick at gmail.com Fri May 6 11:17:40 2016 From: justin.denick at gmail.com (Justin Denick) Date: Fri, 06 May 2016 15:17:40 +0000 Subject: [GRLUG] "Time Stamp" PDF In-Reply-To: References: Message-ID: fpdf will let you use an existing PDF as a background image. here a snippet that could get better with a few refactors. not sure how you're reading in the DOC# and DESC #!/bin/someshell cd to the dir for files in `ls` { php this-script.php?FILE=$file&DOC=2&DESC=Spaces+Will+Be+A+Problem } SetY(-15); $this->SetFont('Arial','I',8); $this->Cell(0,10,'Page '.$this->PageNo().$_GET[DOC].$GET[DESC],0,0,'C'); $this->ln(10); //adjust to taste $this->Cell(0,10,$_GET[DOC].' -- '.$_GET[DESC],0,0,'C'); } } $pdf = new PDF(); $pageCount = $pdf->setSourceFile("friend-attorney-doc.pdf"); $tplIdx = $pdf->importPage(1, '/MediaBox'); $pdf->addPage(); $pdf->useTemplate($tplIdx, 10, 10, 90); $pdf->Output($_GET[FILE].'-v2'); ?> On Fri, May 6, 2016 at 10:28 AM L. V. Lammert wrote: > Interesting question from a friend attorney, .. he wants to put a footer > on a PDF document with case #, description, page x of n. > > Before I create a template in gimp [so it can be done semi-transparent], > can anyone think of a better solution? > > Do NOT wish to edit the PDF, .. so LibreOffice or InkScape would not be > desirable. > > Thanks! > > Lee > > _______________________________________________ > grlug mailing list > grlug at grlug.org > http://shinobu.grlug.org/cgi-bin/mailman/listinfo/grlug -- 🌿 -------------- next part -------------- An HTML attachment was scrubbed... URL: