Solved

dompdf page footer when using zend views

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

Forrester Webinar: xMatters Delivers 261% ROI

Guest speaker Dean Davison, Forrester Principal Consultant, explains how a Fortune 500 communication company using xMatters found these results: Achieved a 261% ROI, Experienced $753,280 in net present value benefits over 3 years and Reduced MTTR by 91% for tier 1 incidents.

Question has a verified solution.

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

This article discusses how to implement server side field validation and display customized error messages to the client.
Australian government abolished Visa 457 earlier this April and this article describes how this decision might affect Australian IT scene and IT experts.
The purpose of this video is to demonstrate how to Import and export files in WordPress. 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 : Click on Too…
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.

728 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