Use the support forum of tufat.com.
Please, provide the following:
phpinfo()
output;Parent: child process exited with status 3221225477 -- Restarting.I'm using PHP 4.4.2
max_execution_time
and/or memory_limit
PHP configuration variables.
Recommended values are 120 seconds and 32 megabytes. Nevertheless, if you're
using VERY big images, you'll probably need to increase these values
even more.
If you've installed, removed or changed font files, you may need to clear cache subdirectory. HTML2PS do store information extracted from file fonts there to reduce script initialization overhead. See also "I've installed/updated True-Type fonts, but it seems that ... (some mysterious problem) ... happens"
Another cause of this problem may be incorrect source encoding; when encoding is not explicilty specified, html2ps tries to take encoding from HTTP headers and META tags. If no encoding information found, html2ps assumes iso-8851-1.
First of all, please ensure you're providing URL, not the file path; for example, if you're trying to use image from c:\foo\bar\baz.gif, you'll need to use the following URL: file:///C:/foo/bar/baz.gif.
Second, due the security reasons, files accessed via 'file' protocol are limited to html2ps directory by default. This restriction is controlled by FILE_PROTOCOL_RESTRICT constant in the config.inc.php file. Note that this constant contains file path prefix; for example, to use files from C:\images directory you'll need to store C:\images\ value in this constant.
<!--NewPage--> <pagebreak/> <?page-break>Or CSS page-break-after property:
<div style="page-break-after: always"> ... some content ... </div>
... <body> <!--header starts--> <div style="position: fixed; ....">...your header content...</div> <!--header ends--> ... your HTML content ... <!--footer starts--> <div style="position: fixed; ....">...your footer content...</div> <!--footer ends--> </body> ...
Important note: HTML code added via PreTreeFilterHeaderFooter should be (almost) valid XHTML (see XHTML 1.0: Differences with HTML 4); in particular, all tags / attributes should be in lower case. Almost means that you don't need to specify wrapping html, head and body tags for the header content.
height
and width
attributes.
HTML2PS does not resample images, just outputs them to PDF and provides the scaling factor.
<encoding-override name="iso-8859-7"> <normal normal="Symbol" italic="Symbol" oblique="Symbol"/> <bold normal="Symbol" italic="Symbol" oblique="Symbol"/> </encoding-override>
<fonts> <family name="times"> <normal normal="CMUSansSerif" italic="CMUSansSerif-Oblique" oblique="CMUSansSerif-Oblique"/>
$g_baseurl
with $_REQUEST['saveas']
in the following piece of code near the end of html2ps.php:
switch ($g_config['output']) { case 0: $pipeline->destination = new DestinationBrowser($g_baseurl); break; case 1: $pipeline->destination = new DestinationDownload($g_baseurl); break; case 2: $pipeline->destination = new DestinationFile($g_baseurl); break; };Also please note that by default output file name can contain only latin letters, digits, '-' and '_' signs, any other symbols will be replaced by underscores; you may change this behavior by hacking the
filename_escape
function in destination._interface.class.php
.
If you're using API, refer to DestinationBrowser/DestinationDownload/DestinationFile class documentation.