continuous pdf generation

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
rathortushar
Posts: 15
Joined: Sun Oct 31, 2004 12:04 pm

continuous pdf generation

Post by rathortushar »

Dear Thorsten,

when i generate the pdf, each page has only one question and answer. How to disable auto page break so that i have in continuous order,

You mentioned it is dependent on table of contents, where do i change this..
please help since i am a newbie
Thorsten
Posts: 15727
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

you have to hack the file admin/export.main.php and look for "$pdf->AliasNbPages();" and remove this line.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
rathortushar
Posts: 15
Joined: Sun Oct 31, 2004 12:04 pm

continuous pdf generation

Post by rathortushar »

removed $pdf->AliasNbPages(); from admin/export.main.php
This did not help
Thorsten
Posts: 15727
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

I forgot something. Please remove the line

Code: Select all

$pdf->AddPage();
, too.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
rathortushar
Posts: 15
Joined: Sun Oct 31, 2004 12:04 pm

continuous pdf generation

Post by rathortushar »

I removed the two lines, now what i get is

For answers that have taken up almost the complete page only appear in the generaetd pdf...

questions with 4 or 5 lines answes do not appear at all.

thanks
Thorsten
Posts: 15727
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

I took a look at the code and I think, you should re-add

Code: Select all

$pdf->AliasNbPages();
and it should working better.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
rathortushar
Posts: 15
Joined: Sun Oct 31, 2004 12:04 pm

continuous pdf generation

Post by rathortushar »

no it still does not work..

will this not help SetAutoPageBreak(false, 0);
Thorsten
Posts: 15727
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

hm. I will check this by myself, okay?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply