diff options
-rwxr-xr-x | pdf/cert_new.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pdf/cert_new.inc b/pdf/cert_new.inc index d01d724..693758d 100755 --- a/pdf/cert_new.inc +++ b/pdf/cert_new.inc @@ -180,11 +180,11 @@ function generate_pdf() flush(); $fp = fopen($file, "r"); while (!feof($fp)) { - echo fread($fp, 65536); + echo fread($fp, filesize($file)); flush(); - ob_end_flush(); - ob_clean(); } //!feof($fp) + ob_end_flush(); + ob_clean(); fclose($fp); unlink($file); |