Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-27-2007, 01:35 PM
Junior Member
 
Join Date: Aug 2007
Posts: 1
Default PDF-Merge with Zend_PDF

It is possible to merge two different PDF-files with the Zend-Framework?
I try the script below, but I get the error:

--------------------------------------------------------------------------------------------
Uncaught exception 'Zend_Pdf_Exception' with message 'Page is attached to one documen, but rendered in context of another
--------------------------------------------------------------------------------------------

<?php
require_once 'Zend/Pdf.php';

$pdf1 = Zend_Pdf::load("1.pdf");
$pdf2 = Zend_Pdf::load("2.pdf");

foreach ($pdf2->pages as $page){
$pdf1->pages[] = $page;
}

$pdf1->save('3.pdf');
?>



What am i doing wrong?

Thank you for help!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 02:46 PM.