Solved

dompdf page footer when using zend views

Posted on 2011-02-15
2
831 Views
Last Modified: 2012-05-11
Hi i am creating a pdf doc successfully using the following code , my question is how do i insert a page footer to each page please.


points will go to code examples not url links.

Thanks in advance
$embassyView = new Zend_View();
$embassyView->setScriptPath('views');
$embassyView->setEncoding('iso-8859-1');
$embassyView->policyData = $quoteDetails;
$embassyView->setupData = $embassyData;
$res = $embassyView->render($embassyData["EMBASSY_PDF_VIEW"]);

require_once("Zend/dompdf/dompdf_config.inc.php");
require_once("Zend/View.php");

$dompdf = new DOMPDF();
$dompdf->set_paper("a4");
$dompdf->load_html($res);
$dompdf->render();
$dompdf->stream("embassy_policy_{$quoteId}.pdf", array("Attachment" => 0));

Open in new window

0
Comment
Question by:cghrmauritius
2 Comments
 
LVL 8

Accepted Solution

by:
rationalboss earned 500 total points
ID: 34896396
http://code.google.com/p/dompdf/wiki/FAQ

Your concern has been addressed there. It's possible :)
0
 

Author Closing Comment

by:cghrmauritius
ID: 34906338
thanks
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
The purpose of this video is to demonstrate how to integrate Mailchimp with Facebook. This will be demonstrated using a Windows 8 PC. Mailchimp and Facebook will be used. Log into your Mailchimp account. : Click on your name. Go to Account Setti…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question