careful with your Content-Length if you're using multi-byte function overloading (http://www.php.net/manual/en/mbstring.overload.php). You will want to do:

<?php
$len 
mb_strlen($buf‘ASCII’);
?>

Otherwise your PDF will be truncated and unreadable. Just cost me a sunny afternoon :-/

careful with your Content-Length if you're using multi-byte function overloading (http://www.php.net/manual/en/mbstring.overload.php). You will want to do:

<?php
$len 
mb_strlen($buf‘ASCII’);
?>

Otherwise your PDF will be truncated and unreadable. Just cost me a sunny afternoon :-/

careful with your Content-Length if you're using multi-byte function overloading (http://www.php.net/manual/en/mbstring.overload.php). You will want to do:

<?php
$len 
mb_strlen($buf‘ASCII’);
?>

Otherwise your PDF will be truncated and unreadable. Just cost me a sunny afternoon :-/

careful with your Content-Length if you're using multi-byte function overloading (http://www.php.net/manual/en/mbstring.overload.php). You will want to do:

<?php
$len 
mb_strlen($buf‘ASCII’);
?>

Otherwise your PDF will be truncated and unreadable. Just cost me a sunny afternoon :-/