Home
Download
Add-ons
Help
Forum
Organisation
Project
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
May 16, 2012, 10:01:13 PM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search:
Advanced search
Interested in joining the WebsiteBaker team?
For more Information read
here
or on our
new website
.
155094
Posts in
21661
Topics by
7721
Members
Latest Member:
arrow345
WebsiteBaker Community Forum
English
Modules
(Moderator:
Argos
)
html2pdf-Module
Pages: [
1
]
2
3
Go Down
Author
Topic: html2pdf-Module (Read 22654 times)
afbelow
Offline
Posts: 43
html2pdf-Module
«
on:
September 14, 2006, 03:31:35 PM »
Hi Ladies,
there are still some problems left, but it's time to let you have a look at it.
Here is the
Link
.
Hope you've fun with.
Will we get problems with the compatibility of wb2 and wb3??
AFBelow
Logged
www.belowmarketing.
de
kweitzel
Forum administrator
Offline
Posts: 6974
Re: html2pdf-Module
«
Reply #1 on:
September 14, 2006, 04:25:54 PM »
WOW ... that is actually a verry good module. We (ruebenwurzel and me) will test it, if it works already errorfree, we can put it up on the add-on repository.
Do you have already a helpfile in english?
cheers
Klaus
«
Last Edit: September 14, 2006, 04:29:12 PM by kweitzel
»
Logged
WebsiteBaker Org e.V. - for WebsiteBaker
afbelow
Offline
Posts: 43
Re: html2pdf-Module
«
Reply #2 on:
September 14, 2006, 04:37:09 PM »
not yet, but in a few days, i think.
we keep in contact.
Logged
www.belowmarketing.
de
kweitzel
Forum administrator
Offline
Posts: 6974
Re: html2pdf-Module
«
Reply #3 on:
September 14, 2006, 04:51:49 PM »
OK ... had a quick look through, but unfortunaly I got errors.
1) Using the link I get the error "Unsupported 'display' value:" (actually blank after that) whatever Value I choose in the configure script (and safe)
Using the supplied testscript with default values I get:
Code:
Fatal error: Call to undefined method FPDF::GetFontAscender() in C:\Programme\xampp\htdocs\wb\modules\html2pdf\public_html\output.fpdf.class.php on line 163
I suppose you need additional software enabled with Apache & PHP to be able to work this, right?
I currently only tested this on a XAMPP Server (Windows XP) Version:
Quote
ApacheFriends XAMPP (basic package) version 1.5.3a
+ Apache 2.2.2
+ MySQL 5.0.21
+ PHP 5.1.4 + PHP 4.4.2-pl1 + PEAR
+ PHP-Switch win32 1.0 (use the "php-switch.bat")
+ XAMPP Control Version 2.3 from
www.nat32.com
+ XAMPP Security 1.0
+ SQLite 2.8.15
+ OpenSSL 0.9.8b
+ phpMyAdmin 2.8.1
+ ADOdb 4.80
+ Mercury Mail Transport System v4.01b
+ FileZilla FTP Server 0.9.16c
+ Webalizer 2.01-10
+ Zend Optimizer 3.0.0
Hope this information helps you already ...
cheers
Klaus
Logged
WebsiteBaker Org e.V. - for WebsiteBaker
afbelow
Offline
Posts: 43
Re: html2pdf-Module
«
Reply #4 on:
September 14, 2006, 05:09:23 PM »
Hmm...
looks like a windows-problem with the xampp-package.
May I have a look at the include_path in your phpinfo.php?
Maybe, the XAMPP has installed the FPDF as PEAR-Package, what may cause conflicts like this.
If, your include_path looks like:
Quote
include_path = ".;C:\Programme\System\xampp\php\pear\;
Try to modify it via htaccess
Quote
php_value include_path "<...>"
and change <...> to:
Quote
.;C:\Programme\System\xampp\htdocs\...\modules\html2pdf\public_html\;C:\Programme\System\xampp\php\pear\;
«
Last Edit: September 14, 2006, 05:43:45 PM by afbelow
»
Logged
www.belowmarketing.
de
afbelow
Offline
Posts: 43
Re: html2pdf-Module
«
Reply #5 on:
September 18, 2006, 02:45:28 PM »
We've updated our Version to 0.10 (still beta).
The new Versions solves some Bugs for people, who use virtual-Serversystems.
Dear Klaus,
we neither use Windows-Server for Webapplications, nor we've running XP with XAMPP or something like that.
We've tested our module on different linux-systems (see our
updated helpfile
) with a clean wb-installation an the round-template. It seems to work.
I think you understand, that I'm not really interested in buying a Microsoft XP-System just for this. So if you want me to solve that problem, I need your assistance.
AFBelow
Logged
www.belowmarketing.
de
kweitzel
Forum administrator
Offline
Posts: 6974
Re: html2pdf-Module
«
Reply #6 on:
September 18, 2006, 02:52:00 PM »
sorry, I was a bit occupied the last days ... Don't worry too much about the whole XAMPP System, it is only my test environment.
When I have a moment time, I'll have a go on one of my linux boxes ... thanks for your reply though, I can apreciate the need for the users assitance
without it ...
cheers
Klaus
Logged
WebsiteBaker Org e.V. - for WebsiteBaker
kweitzel
Forum administrator
Offline
Posts: 6974
Re: html2pdf-Module
«
Reply #7 on:
September 18, 2006, 03:31:55 PM »
OK ... the include does look exactly like you thought it looks:
Quote from: afbelow on September 14, 2006, 05:09:23 PM
Maybe, the XAMPP has installed the FPDF as PEAR-Package, what may cause conflicts like this.
If, your include_path looks like:
Quote
include_path = ".;C:\Programme\System\xampp\php\pear\;
I did change the include path, via .htaccess and in the include_path variable, no change, still the error "Unsupported 'display' value:" ... as if the variable for the display size is not passed on.
Still I have not yet tested on a unix machine.
cheers
Klaus
Logged
WebsiteBaker Org e.V. - for WebsiteBaker
lonestar
Offline
Posts: 11
Re: html2pdf-Module
«
Reply #8 on:
September 19, 2006, 09:00:12 AM »
Hi
Thanks for the fantastic module and sorry for my bad english.
It works great. My Problem: The module generated the complete Website. How can i generate a PDF-File only from the Content (WYSIWYG).No Head or Menu or Footer.
Thanks in advance
Lonestar
Logged
afbelow
Offline
Posts: 43
Re: html2pdf-Module
«
Reply #9 on:
September 19, 2006, 10:50:15 AM »
change the used css with the configure.php script or in your template for requests by $_SERVER["SERVER_ADDR"] == $_SERVER["REMOTE_ADDR"].
in the selected css you can hide this areas.
e.g.
#header {
display: none;
}
if you want the <div id="header">...</div> not to be shown.
AFBelow
Logged
www.belowmarketing.
de
ruebenwurzel
WebsiteBaker Org e.V.
Offline
Posts: 7970
Re: html2pdf-Module
«
Reply #10 on:
September 19, 2006, 10:56:26 AM »
Hello,
i always get the following error message
Quote
Please specify URL to process!
Whats wrong?
Matthias
Logged
afbelow
Offline
Posts: 43
Re: html2pdf-Module
«
Reply #11 on:
September 19, 2006, 11:05:16 AM »
the function html2pdf_find_targe
t() in include.php can't grep the addressline of your browser correctly.
does your php.ini use restrictions to handle the $_SERVER-globals?
if you use a vServer and html2pdf_v0.9 upgrade to html2pdf_v0.10. That version should solve this problem.
«
Last Edit: September 19, 2006, 11:09:00 AM by afbelow
»
Logged
www.belowmarketing.
de
ruebenwurzel
WebsiteBaker Org e.V.
Offline
Posts: 7970
Re: html2pdf-Module
«
Reply #12 on:
September 19, 2006, 11:28:57 AM »
Hello,
Quote
does your php.ini use restrictions to handle the $_SERVER-globals?
Look
here to my phpinfo
Quote
if you use a vServer and html2pdf_v0.9 upgrade to html2pdf_v0.10. That version should solve this problem.
Have the same problem with both versions, lokal and on my host.
Matthias
Logged
kweitzel
Forum administrator
Offline
Posts: 6974
Re: html2pdf-Module
«
Reply #13 on:
September 19, 2006, 11:32:12 AM »
Quote from: lonestar on September 19, 2006, 09:00:12 AM
It works great. My Problem: The module generated the complete Website. How can i generate a PDF-File only from the Content (WYSIWYG).No Head or Menu or Footer.
If your template has a print.css file that one can be used. Just open the configure dialog (wb/modules/html2pdf/configure.php) and select the CSS file.
cheers
Klaus
Logged
WebsiteBaker Org e.V. - for WebsiteBaker
kweitzel
Forum administrator
Offline
Posts: 6974
Re: html2pdf-Module
«
Reply #14 on:
September 19, 2006, 11:49:43 AM »
funny thing ... I installed it on another XAMPP Server, Version 5.1.4, no issues here.
Changed the Path in the php(.)ini, nothing else to do ... so please forget the issues I had before. that other machine will get the same Version.
Thanks a lot for publishing this module, We hope, that we can include this in the add-on repository.
cheers
Klaus
Logged
WebsiteBaker Org e.V. - for WebsiteBaker
ruebenwurzel
WebsiteBaker Org e.V.
Offline
Posts: 7970
Re: html2pdf-Module
«
Reply #15 on:
September 19, 2006, 12:02:24 PM »
Hello,
Quote
that we can include this in the add-on repository
As soon as i get it working on my
page
(look at the pdficon on the page), and as soon we have a multilingual Version (The text "open as pdf" should be translated) I'm according you that we should release this at the addons repository.
Matthias
Logged
afbelow
Offline
Posts: 43
Re: html2pdf-Module
«
Reply #16 on:
September 19, 2006, 12:17:40 PM »
Ahoi Klaus,
of course you can.
But its only beta yet and we're still working on it.
At the moment we're trying to find a solution for matthias' problem, but we can't reproduce the error at the moment. We think it might be caused by the handling of registered and unregistered globals in php. We're modifying our SUSE at the moment to come close to his configuration settings.
In a few days I hope you'll get the Google-Map-Module, so keep on testing.
so far so good
AFBelow
PS:
Dear Matthias,
yes, i've seen it. we're working on it.
and: it's still beta (!!) so it's not fully multilangual at the moment. neither it's fully utf-8 nor utf-16 at this time.
Logged
www.belowmarketing.
de
kweitzel
Forum administrator
Offline
Posts: 6974
Re: html2pdf-Module
«
Reply #17 on:
September 19, 2006, 12:29:56 PM »
Hi Matthias, did you call the PDF in the template or in the content?
cheers
Klaus
Logged
WebsiteBaker Org e.V. - for WebsiteBaker
lonestar
Offline
Posts: 11
Re: html2pdf-Module
«
Reply #18 on:
September 19, 2006, 12:32:11 PM »
Quote
If your template has a print.css file that one can be used. Just open the configure dialog (wb/modules/html2pdf/configure.php) and select the CSS file
Sorry, thats works not for me. I use the Template "round" . This Template have a print.css. In this css-file are "menu, search" display: none. I have select in configure.php of html2pdf PRINT as CSS-Media. But in the PDF-File the Menu no to display and the Search-Box and the Login-Box to display.
Lonestar
PS: Eventl. kann jemand Deutsch. Mein Englisch ist mehr als miserabel.
Thanks. It work perfect. I have set all css-tags on display none an its work.
«
Last Edit: September 19, 2006, 12:47:41 PM by lonestar
»
Logged
ruebenwurzel
WebsiteBaker Org e.V.
Offline
Posts: 7970
Re: html2pdf-Module
«
Reply #19 on:
September 19, 2006, 12:47:39 PM »
@afbelow
tested a little bit more and your fantastic modul seems to work except on the first page (index.php).
And on a page with a long text (geschichte) i got the following error. I'm not shure if it is a limitation from the script or my hoster.
Quote
Fatal error: Allowed memory size of 41943040 bytes exhausted (tried to allocate 46 bytes) in /www/htdocs/xxxxxxx/modules/html2pdf/public_html/box.text.php on line 51
You can test and reproduce it here:
http://www.familie-gallas.de/pages/geschichte.php
Edit: fixed with setting .htaccess to "php_value memory_limit 128M"
And a hint for your help page. After installation the users should set the configure.php and the cache dir to chmod777, (maybe some files more?) otherwise the module don't works.
Matthias
«
Last Edit: September 19, 2006, 01:52:33 PM by ruebenwurzel
»
Logged
pcwacht
Guest
Re: html2pdf-Module
«
Reply #20 on:
September 19, 2006, 01:02:51 PM »
This module though it is still very beta looks awesome.....
John
Logged
afbelow
Offline
Posts: 43
Re: html2pdf-Module
«
Reply #21 on:
September 19, 2006, 01:11:56 PM »
the file box.generic.php tries to render your html-page to pdf. with very long pages or multiple-page-output it may cause conflicts with the memory_limit, which was assigned to your vServer on the system.
so, this error is caused by your memory_limit in the php.ini-settings. try to increase it with .htaccess-settings as discribed in the helpfile.
we're working with 4 Intel Xeon 2.4GHz processors and 4GB cache on each engine, so we dont have problems like this
but I think, if you increase your memory_limit up to 120 or if you want to run multiple-page-rendering 250 MB, you will never have any problems.
Logged
www.belowmarketing.
de
afbelow
Offline
Posts: 43
Re: html2pdf-Module
«
Reply #22 on:
September 19, 2006, 01:18:53 PM »
@ruebenwurzel
Your entire page will run, if vou follow this
link
. We'll solve that bug within the next update.
cheers
AFBelow
Logged
www.belowmarketing.
de
ruebenwurzel
WebsiteBaker Org e.V.
Offline
Posts: 7970
Re: html2pdf-Module
«
Reply #23 on:
September 19, 2006, 01:48:07 PM »
@afbelow
1. Setting php_value memory_limit to 128M with .htaccess solves the problem with the big text page.
2. Your link with the additional filname solves the problem with the first page.
So now this module works very good and i think if the next bugfixed update is available we put it on the addons repository.
Thank you very much for your help and your addition to WB
Matthias
Logged
afbelow
Offline
Posts: 43
Re: html2pdf-Module
«
Reply #24 on:
September 19, 2006, 02:22:25 PM »
Here
you have the version 0.11 with the updated include-file, fixing the bug dicussed with ruebenwurzel today.
Many thanks for the support to all of you. We keep in contact.
AFBelow
Logged
www.belowmarketing.
de
Pages: [
1
]
2
3
Go Up
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> General Announcements
=> Security Announcements
=> Documentation
=> WebsiteBaker Website Showcase
=> Guest Area & Off-Topic
-----------------------------
English
-----------------------------
=> WebsiteBaker 2.9
===> Announcements
===> Help/Support
=====> Modules / Extensions
===> Suggestions
===> Software bugs
=> Help & Support
=> Modules
=> Droplets (PHP code for use with Droplet module) & Snippets (raw PHP code)
=> jQuery
=> Templates, Menus & Design
=> WebsiteBaker Language Files
=> WebsiteBaker 2.x discussion
=> WebsiteBaker 3
=> Archive (posts up to 2007)
-----------------------------
Deutsch (German)
-----------------------------
=> Ankündigungen
=> WebsiteBaker 2.9
===> Ankündigungen
===> Hilfe/Support
=====> Module / Extensions
===> Vorschläge
===> Softwarefehler
===> Erfahrungs und Testberichte
=> Hilfe/Support
=> Module & Snippets
=> Templates & Design
=> Tutorials
=> jQuery
=> Diskussion über WB
=> Off-Topic
=> Archiv für Themen bis 2007
-----------------------------
Nederlands (Dutch)
-----------------------------
=> Aankondigingen
=> Hulp & Ondersteuning
=> Niet-Terzake (Off Topic)
-----------------------------
Francais (French)
-----------------------------
=> Help/Support
-----------------------------
Italiano (Italian)
-----------------------------
=> Help/Support
-----------------------------
Bakery (WB shop module)
-----------------------------
=> Bakery English
=> Bakery Deutsch
-----------------------------
KeepInTouch (Multi Contact Module)
-----------------------------
=> KeepInTouch English
=> KeepInTouch Deutsch
Loading...