Kommentare zu: my package of the day – htmldoc – for converting html to pdf on the fly http://www.screenage.de/blog/2008/07/07/my-package-of-the-day-htmldoc-for-converting-html-to-pdf-on-the-fly/ Thu, 22 Oct 2015 22:23:33 +0000 hourly 1 https://wordpress.org/?v=4.4.1 Von: Manuel Pardo http://www.screenage.de/blog/2008/07/07/my-package-of-the-day-htmldoc-for-converting-html-to-pdf-on-the-fly/comment-page-1/#comment-26022 Wed, 17 Nov 2010 02:15:42 +0000 http://www.screenage.de/blog/2008/07/07/my-package-of-the-day-htmldoc-for-converting-html-to-pdf-on-the-fly/#comment-26022 Can you tell me how to feed the html without a temporary file?

I can create a pdf without a pdf temp file.
But to achieve this I need to create a html temp file.
Is there any solution?

ob_start();
system(„htmldoc –webpage –format pdf –landscape teste.html“);
header(‚Content-Type: application/pdf‘);
ob_end_flush();

Someone can help me? I don’t want to use teste.html , instead I want to use a string with HTML code.

Thanks.

]]>
Von: ccm http://www.screenage.de/blog/2008/07/07/my-package-of-the-day-htmldoc-for-converting-html-to-pdf-on-the-fly/comment-page-1/#comment-12874 Sun, 16 Aug 2009 09:55:48 +0000 http://www.screenage.de/blog/2008/07/07/my-package-of-the-day-htmldoc-for-converting-html-to-pdf-on-the-fly/#comment-12874 ups. the html got killed from the comment

you should use a font tag inside the html of the document like

font size=“-1″

]]>
Von: ccm http://www.screenage.de/blog/2008/07/07/my-package-of-the-day-htmldoc-for-converting-html-to-pdf-on-the-fly/comment-page-1/#comment-12873 Sun, 16 Aug 2009 09:54:54 +0000 http://www.screenage.de/blog/2008/07/07/my-package-of-the-day-htmldoc-for-converting-html-to-pdf-on-the-fly/#comment-12873 @Valentina: You should try using a tag like

….

That worked for me.

]]>
Von: Valentina http://www.screenage.de/blog/2008/07/07/my-package-of-the-day-htmldoc-for-converting-html-to-pdf-on-the-fly/comment-page-1/#comment-12820 Fri, 14 Aug 2009 09:32:08 +0000 http://www.screenage.de/blog/2008/07/07/my-package-of-the-day-htmldoc-for-converting-html-to-pdf-on-the-fly/#comment-12820 Hi all,

I’m trying to use htmldoc, and it works. But I’ve some problems with the font-size option. If i change it nothing happens in the pdf.

Could you help me maybe?

My code :

$passthru = ‚htmldoc –quiet –textfont helvetica \
–bodyfont helvetica –fontsize 8 \
–size A4 -t pdf14 \
–webpage ‚.$filename;

Thanks

]]>
Von: zizo http://www.screenage.de/blog/2008/07/07/my-package-of-the-day-htmldoc-for-converting-html-to-pdf-on-the-fly/comment-page-1/#comment-6494 Fri, 09 Jan 2009 11:28:50 +0000 http://www.screenage.de/blog/2008/07/07/my-package-of-the-day-htmldoc-for-converting-html-to-pdf-on-the-fly/#comment-6494 i want to know what is the solution for print document html to pdf width footer and header,when i specified the value of footer it get me a number of pagination but i want character

]]>
Von: Pete http://www.screenage.de/blog/2008/07/07/my-package-of-the-day-htmldoc-for-converting-html-to-pdf-on-the-fly/comment-page-1/#comment-5861 Wed, 03 Dec 2008 03:10:04 +0000 http://www.screenage.de/blog/2008/07/07/my-package-of-the-day-htmldoc-for-converting-html-to-pdf-on-the-fly/#comment-5861 You can feed stdin to htmldoc htmldoc using the standard notation for stdin :- ‚–webpage -‚.

It can also be configured as a cgi script; see http://www.easysw.com/htmldoc/htmldoc.html#9_4_3 for details.

Thanks for the pointer to this utility; it’s saved me ’so viel angst‘ :-)

Pete.

]]>
Von: ccm http://www.screenage.de/blog/2008/07/07/my-package-of-the-day-htmldoc-for-converting-html-to-pdf-on-the-fly/comment-page-1/#comment-3580 Mon, 15 Sep 2008 07:34:16 +0000 http://www.screenage.de/blog/2008/07/07/my-package-of-the-day-htmldoc-for-converting-html-to-pdf-on-the-fly/#comment-3580 You mean running it as a cgi script? I am afraid not as it does not render out the necessary headers as long as I know.

]]>
Von: Sally http://www.screenage.de/blog/2008/07/07/my-package-of-the-day-htmldoc-for-converting-html-to-pdf-on-the-fly/comment-page-1/#comment-3560 Sun, 14 Sep 2008 10:14:47 +0000 http://www.screenage.de/blog/2008/07/07/my-package-of-the-day-htmldoc-for-converting-html-to-pdf-on-the-fly/#comment-3560 Hi.

Can I simply install HTMLDoc into the cgi-bin folder?

]]>
Von: ccm http://www.screenage.de/blog/2008/07/07/my-package-of-the-day-htmldoc-for-converting-html-to-pdf-on-the-fly/comment-page-1/#comment-1703 Wed, 09 Jul 2008 14:30:21 +0000 http://www.screenage.de/blog/2008/07/07/my-package-of-the-day-htmldoc-for-converting-html-to-pdf-on-the-fly/#comment-1703 @DurchR_PW:

I’ll need to check if htmldoc is able to read from stdin. Thanks for the suggestion, I’ll check that.

@Reine:

Thank you for the hint. You are right, when you only want to convert files on a desktop. The method described is for automated processing on a server.

]]>
Von: Reine http://www.screenage.de/blog/2008/07/07/my-package-of-the-day-htmldoc-for-converting-html-to-pdf-on-the-fly/comment-page-1/#comment-1680 Mon, 07 Jul 2008 17:01:46 +0000 http://www.screenage.de/blog/2008/07/07/my-package-of-the-day-htmldoc-for-converting-html-to-pdf-on-the-fly/#comment-1680 hi!, I simply right clic on the htmlfile i saved on my desktop, open it with openoffice writer and export as pdf: it works quite all the time!

]]>