Page 1 of 1

html2pdf :: missing startpdf, stoppdf in 1.3.9 213

Posted: Tue 28. Oct 2008, 01:45
by Stefan Winter
Hi there, just updated a website to 1.3.9
I am using /inc_ext/html2fpdf. Still think this is a major feature for a website directed to people who like to have something in their hands!
In 1.3.3 everything was fine.
I changed www/template/inc_default/pdf.tmpl to my needs and used startpdf and stoppdf to limit the content part printed to pdf.
In 1.3.9 startpdf and stoppdf do not work anymore. My pdf printout allway shows the complete page (as it can be shown with html2pdf). This does not look good. I can not find these startpdf and stoppdf in content.func.inc.php, where they have been in 1.3.3. If i add the "old" code snippet from 1.3.3 there, it makes no change.

I think it should still work like this?

Code: Select all

            <!-- startpdf --> 

            {CONTENT}

            <!-- stoppdf -->

            <div id="printSign">
                      [PRINT_PDF] Print PDF <img src="img/icons/icon_pdf.gif" border="0">[/PRINT_PDF]
                      </div>
I know this is still experimental. But can anyone give me perhaps a hint how to limit pdf output in phpWCMS 1.3.9?

Re: html2pdf :: missing startpdf, stoppdf in 1.3.9 270

Posted: Tue 28. Oct 2008, 09:08
by Stefan Winter
OK found the alternative way to exclude parts from print to pdf: <!--NO_PRINT_START//--> <!--NO_PRINT_END//--> is a workaround.
But mod_exdata still needs <!-- startpdf --> and <!-- stoppdf -->
In 1.3.3 the pdf printout was ok in format. Now in 1.3.9 pdf - printout of exdata output is just a blob without any break lines. :?

Re: html2pdf :: missing startpdf, stoppdf in 1.3.9 270

Posted: Tue 28. Oct 2008, 22:00
by Stefan Winter
So i am going to talk a little bit to myself. I guess only few people are relly using this pdf stuff.
I don´t know if these are bugs or just the usual strange behaviour of websoftware but if it´s ok i keep on here.

Set up a dev version of my website to test and found out:
Images within tables are NOT printed to pdf anymore.
Images left or right within text are printed.
This aligns to my experience that mod_exdata data is printed as blob. No table formatting anymore like there is no output of images in tables...
Checked this on my test site... ... now the EXDAUTO Tag does not work anymore.
Just {EXDAUTO:1:back;2;detail_view.tmpl;detail.view.css:1:0:0} no data...
To go on testing i first have to solve that.
No sir... yes sir... Exdata Module works fine in the backend. phpMyadmin prooves test changes in db on the right tables.
Just the frontend doesn´t show anything anymore. *sight*

And why that? Because the people the website is made for are paper types. They like to read paper... print it out.

Re: html2pdf :: missing startpdf, stoppdf in 1.3.9 270

Posted: Tue 28. Oct 2008, 22:17
by Jensensen
EXDATA several times was called to become an "official" MOD, but it still isn't. So, contact author...

...and "print"/publish your experiences (report) just right here: http://code.google.com/p/phpwcms/issues/list

("paper types" in the era/period of paper-free offices are also enthusiasts of MS Word, isn't it? they know, that they can't pdf. that's why they like it so much.)

Re: html2pdf :: missing startpdf, stoppdf in 1.3.9 213

Posted: Thu 30. Oct 2008, 22:20
by Stefan Winter
Somtimes it is very very hard, how much time you can spend on NOTHING!
1. PDF Print without tables
Fact is, I my case i can not disable "a" in template/inc_default/pdf.tmpl without disabling image table format.
So this will NOT Work:

Code: Select all

<!--PDF_SETTINGS_START//-->
; Do not remove this!!!

PDF_file_prefix  = ""
PDF_disable_tags = "a,class,div,input,form,object,embed,script
PDF_font_size    = 5

<!--PDF_SETTINGS_END//-->
This will be ok. But there will be links in the pdf.

Code: Select all

<!--PDF_SETTINGS_START//-->
; Do not remove this!!!

PDF_file_prefix  = ""
PDF_disable_tags = "class,div,input,form,object,embed,script
PDF_font_size    = 5

<!--PDF_SETTINGS_END//-->
2. EXDATA Tag not working after copying files to dev folder
Checked if all files have been copied. As i used the function on my providers web interface i thought this should be ok.
It was not. content.func.inc.php was not the right one so there was no reference exdata there...
Allways check twice :mrgreen:

So simple, so... thats what allways strikes me with web applications. One missing * can crash a complete function. Code Butterfly Effect
One missing link can ruin a complete web user interface.