[dokuwiki] Re: pdf export
- From: Heikko Ellermaa <heikko.ellermaa@xxxxxxxxxxxxx>
- To: dokuwiki@xxxxxxxxxxxxx
- Date: Wed, 30 Aug 2006 17:03:24 +0300
Werner Flamme wrote:
You asked :-)
;-)
Well, at first I must say that I can't use your script because it depends
on software my provider does not provide (ghostscript, pdflib) :-( I tested
it at home and the results were much better than those of HTML2FPDF, what I
use - it's not really good, but works somehow :-/
What I do you can read in detail on
http://wiki.splitbrain.org/users:wflamme:pdfdownload :-)
Yep, indeed it requires ghostscript to be present at the server and this
might cause problems. Forgot to mention that.
4) The result - I have button which prompts me of saving the page as
PDF. Very useful. And quite clean.
I agree :-) except for the "clean" ;-)
Maybe you can change the value of your field to
<input type="hidden" name="url" value="<?=
"http://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'].'&print=1' ?>" />
that should use print.css instead of the standard css, so you have some
attributes with 'display:none' - it looks more like a print than a
fotographed website ;-)
Indeed, 'clean' was clearly an overstatement :) But about the 'print'
parameter, the trick is done inside the attached script, as one of the
html2pdf library options is selection of the css media and print is
defined there. So this is done automagically outside the wiki. Useful,
but not very clear to see, of course ;)
I can actually understand that all this goes quite far away from dokuwiki...
br,
Heikko
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist
- References:
- [dokuwiki] pdf export
- From: Heikko Ellermaa
- [dokuwiki] Re: pdf export
- From: Werner Flamme
Other related posts:
- » [dokuwiki] pdf export
- » [dokuwiki] Re: pdf export
- » [dokuwiki] Re: pdf export
- » [dokuwiki] pdf export
- » [dokuwiki] Re: pdf export
- » [dokuwiki] Re: pdf export
- » [dokuwiki] Re: pdf export
- » [dokuwiki] Re: pdf export
- » [dokuwiki] Re: pdf export
- » [dokuwiki] Re: pdf export
- » [dokuwiki] Re: pdf export
- » [dokuwiki] Re: pdf export
- » [dokuwiki] Re: pdf export
- » [dokuwiki] Re: pdf export
- » [dokuwiki] Re: pdf export
- » [dokuwiki] Re: pdf export
- » [dokuwiki] Re: pdf export
- » [dokuwiki] Re: pdf export
- » [dokuwiki] Re: pdf export
- » [dokuwiki] Re: pdf export
- » [dokuwiki] Re: pdf export
Well, at first I must say that I can't use your script because it depends on software my provider does not provide (ghostscript, pdflib) :-( I tested it at home and the results were much better than those of HTML2FPDF, what I use - it's not really good, but works somehow :-/
What I do you can read in detail on
http://wiki.splitbrain.org/users:wflamme:pdfdownload :-)
4) The result - I have button which prompts me of saving the page as
PDF. Very useful. And quite clean.
I agree :-) except for the "clean" ;-)
Maybe you can change the value of your field to
<input type="hidden" name="url" value="<?= "http://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'].'&print=1' ?>" />
that should use print.css instead of the standard css, so you have some
attributes with 'display:none' - it looks more like a print than a
fotographed website ;-)
- [dokuwiki] pdf export
- From: Heikko Ellermaa
- [dokuwiki] Re: pdf export
- From: Werner Flamme