Solved

dompdf page footer when using zend views

Posted on 2011-02-15
2
839 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

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

Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
Dramatic changes are revolutionizing how we build and use technology. Every company is automating, digitizing, and modernizing operations. We need a better, more connected way to work together as teams so we can harness the insights from our system…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

732 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