Forcing download file for the uptra print labels. This might solve the
issue with the print labels not printing correctly.
$this->ezNewPage();
}
}
-
+ $out = $this->ezOutput( true );
+ $len = strlen( $out );
+ header("Content-type: application/force-download\n");
+ header("Content-type: application/pdf");
+ header("Content-Length: $len");
+ /* Correction for the stupid MSIE thing */
+ $pdfName = 'MemberLabel' . date('U') . '.pdf';
+ if (strstr(getenv('HTTP_USER_AGENT'), 'MSIE')) {
+ header("Content-Disposition: inline; filename=\"$pdfName\"");
+ } else {
+ header("Content-Disposition: attachment; filename=\"$pdfName\"");
+ }
// Output PDF
- $this->ezStream();
+ print $out;
+ // $this->ezStream();
}