Solved

dompdf page footer when using zend views

Posted on 2011-02-15
2
823 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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Router for PHP reqeusts 12 32
php documentation 4 21
Creating a slider 12 34
cookies analysis tools 2 26
This article provides a case study on how our local youth baseball league deployed a new website, including the platform selection, implementation and benefits to the league.
This article discusses how to create an extensible mechanism for linked drop downs.
The purpose of this video is to demonstrate how to set up the permalinks on a WordPress Website. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Go t…
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.

708 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now