Link to home
Create AccountLog in
Avatar of denny3d
denny3d

asked on

Class php pdf creation - page second

Hello EE

I have a problem about creation of second page with a php pdf class.

i create with function "ezTable" a table into my php, but the data required a second page.
The problem is that i start my table at ezSetY= 600 into first page, but in second page the table start at begin of page and not at the same value.
How I can start table into second page at 600?

Another question, Can I stopped the table at one point? example table start from Y600 to Y300, and continue into second page from Y600 to Y300 etc...?

regards
Denis
<?php
include_once('phpdf/class.ezpdf.php');


$pdf =& new Cezpdf();

# Normal
$pdf->selectFont('phpdf/fonts/Helvetica.afm');
$pdf->ezSetY(600);

$data = array( 
			  array('num'=>1,'name'=>'gandalf','type'=>'wizard'),
			  array('num'=>2,'name'=>'bilbo','type'=>'hobbit','url'=>'http://www.ros.co.nz/pdf/'),
			  array('num'=>3,'name'=>'frodo','type'=>'hobbit'),
			  array('num'=>4,'name'=>'saruman','type'=>'baddude','url'=>'http://sourceforge.net/projects/pdf-php'),
			  array('num'=>5,'name'=>'sauron','type'=>'really bad dude'),
			  array('num'=>1,'name'=>'gandalf','type'=>'wizard'),
			  array('num'=>2,'name'=>'bilbo','type'=>'hobbit','url'=>'http://www.ros.co.nz/pdf/'),
			  array('num'=>3,'name'=>'frodo','type'=>'hobbit'),
			  array('num'=>4,'name'=>'saruman','type'=>'baddude','url'=>'http://sourceforge.net/projects/pdf-php'),
			  array('num'=>5,'name'=>'sauron','type'=>'really bad dude'),
			  array('num'=>1,'name'=>'gandalf','type'=>'wizard'),
			  array('num'=>2,'name'=>'bilbo','type'=>'hobbit','url'=>'http://www.ros.co.nz/pdf/'),
			  array('num'=>3,'name'=>'frodo','type'=>'hobbit'),
			  array('num'=>4,'name'=>'saruman','type'=>'baddude','url'=>'http://sourceforge.net/projects/pdf-php'),
			  array('num'=>5,'name'=>'sauron','type'=>'really bad dude'),
			  array('num'=>1,'name'=>'gandalf','type'=>'wizard'),
			  array('num'=>2,'name'=>'bilbo','type'=>'hobbit','url'=>'http://www.ros.co.nz/pdf/'),
			  array('num'=>3,'name'=>'frodo','type'=>'hobbit'),
			  array('num'=>4,'name'=>'saruman','type'=>'baddude','url'=>'http://sourceforge.net/projects/pdf-php'),
			  array('num'=>5,'name'=>'sauron','type'=>'really bad dude'),
			   array('num'=>2,'name'=>'bilbo','type'=>'hobbit','url'=>'http://www.ros.co.nz/pdf/'),
			  array('num'=>3,'name'=>'frodo','type'=>'hobbit'),
			  array('num'=>4,'name'=>'saruman','type'=>'baddude','url'=>'http://sourceforge.net/projects/pdf-php'),
			  array('num'=>5,'name'=>'sauron','type'=>'really bad dude'),
			  array('num'=>1,'name'=>'gandalf','type'=>'wizard'),
			  array('num'=>2,'name'=>'bilbo','type'=>'hobbit','url'=>'http://www.ros.co.nz/pdf/'),
			  array('num'=>3,'name'=>'frodo','type'=>'hobbit'),
			  array('num'=>4,'name'=>'saruman','type'=>'baddude','url'=>'http://sourceforge.net/projects/pdf-php'),
			  array('num'=>5,'name'=>'sauron','type'=>'really bad dude'),
			  array('num'=>1,'name'=>'gandalf','type'=>'wizard'),
			  array('num'=>2,'name'=>'bilbo','type'=>'hobbit','url'=>'http://www.ros.co.nz/pdf/'),
			  array('num'=>3,'name'=>'frodo','type'=>'hobbit'),
			  array('num'=>4,'name'=>'saruman','type'=>'baddude','url'=>'http://sourceforge.net/projects/pdf-php'),
			  array('num'=>5,'name'=>'sauron','type'=>'really bad dude'),
			  array('num'=>1,'name'=>'gandalf','type'=>'wizard'),
			  array('num'=>2,'name'=>'bilbo','type'=>'hobbit','url'=>'http://www.ros.co.nz/pdf/'),
			  array('num'=>3,'name'=>'frodo','type'=>'hobbit'),
			  array('num'=>4,'name'=>'saruman','type'=>'baddude','url'=>'http://sourceforge.net/projects/pdf-php'),
			  array('num'=>5,'name'=>'sauron','type'=>'really bad dude'),
			   array('num'=>2,'name'=>'bilbo','type'=>'hobbit','url'=>'http://www.ros.co.nz/pdf/'),
			  array('num'=>3,'name'=>'frodo','type'=>'hobbit'),
			  array('num'=>4,'name'=>'saruman','type'=>'baddude','url'=>'http://sourceforge.net/projects/pdf-php'),
			  array('num'=>5,'name'=>'sauron','type'=>'really bad dude'),
			  array('num'=>1,'name'=>'gandalf','type'=>'wizard'),
			  array('num'=>2,'name'=>'bilbo','type'=>'hobbit','url'=>'http://www.ros.co.nz/pdf/'),
			  array('num'=>3,'name'=>'frodo','type'=>'hobbit'),
			  array('num'=>4,'name'=>'saruman','type'=>'baddude','url'=>'http://sourceforge.net/projects/pdf-php'),
			  array('num'=>5,'name'=>'sauron','type'=>'really bad dude'),
			  array('num'=>1,'name'=>'gandalf','type'=>'wizard'),
			  array('num'=>2,'name'=>'bilbo','type'=>'hobbit','url'=>'http://www.ros.co.nz/pdf/'),
			  array('num'=>3,'name'=>'frodo','type'=>'hobbit'),
			  array('num'=>4,'name'=>'saruman','type'=>'baddude','url'=>'http://sourceforge.net/projects/pdf-php'),
			  array('num'=>5,'name'=>'sauron','type'=>'really bad dude'),
			  array('num'=>1,'name'=>'gandalf','type'=>'wizard'),
			  array('num'=>2,'name'=>'bilbo','type'=>'hobbit','url'=>'http://www.ros.co.nz/pdf/'),
			  array('num'=>3,'name'=>'frodo','type'=>'hobbit'),
			  array('num'=>4,'name'=>'saruman','type'=>'baddude','url'=>'http://sourceforge.net/projects/pdf-php'),
			  array('num'=>5,'name'=>'sauron','type'=>'really bad dude')
			  );

$pdf->ezTable($data);

$pdf->ezStream();

?>

Open in new window

Avatar of denny3d
denny3d

ASKER

news? EE
Avatar of denny3d

ASKER

EE , anyone help me?
You can do this with FPDF.  I think it will give you more control over the process if you are not using ezPDF.
Avatar of denny3d

ASKER

With ezPDf is not possible? because change the class is more complicated :(
ezPDF is not my area of expertise.  Can you please post a link to the documentation?  I'll be glad to take a look.  But I think we are going to find that ezPDF is not exactly the "Gold Standard" that FPDF is.  I have never before seen a professional programmer use ezPDF and I have used and seen others use FPDF hundreds of times, so it may be worth the effort to make the change to a more popular and robust platform.  If will be easier to get help, that's for sure.

See http://www.fpdf.org/

Tutorials, FAQ, Online Manual, and Forum -- all the help you might need!
Avatar of denny3d

ASKER

I not solve the question with my class, so i close the question
Two weeks ago at ID:34590121 I wrote, "Can you please post a link to the documentation?  I'll be glad to take a look."

Where is the link to the documentation?  I might be able to help if I can see that.  Thanks, ~Ray
Avatar of denny3d

ASKER

Hi Ray

this a link of class:

http://www.ros.co.nz/pdf/

regards
ASKER CERTIFIED SOLUTION
Avatar of Ray Paseur
Ray Paseur
Flag of United States of America image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account