Skip to content

Commit

Permalink
update export pdf to follow system paper size setting
Browse files Browse the repository at this point in the history
  • Loading branch information
dleffler committed Jul 21, 2018
1 parent f2a7f79 commit 1a32997
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.php
Expand Up @@ -136,7 +136,7 @@ function epb($buffer, $mode) {
$content = expProcessBuffer($content); // we didn't actually process the output buffer by adding styles

// convert to PDF
$pdf = new expHtmlToPDF('Letter',EXPORT_AS_PDF_LANDSCAPE?'landscape':'portrait',$content);
$pdf = new expHtmlToPDF(HTMLTOPDF_PAPER,EXPORT_AS_PDF_LANDSCAPE?'landscape':'portrait',$content);
$pdf->createpdf(HTMLTOPDF_OUTPUT?'D':'I',$sectionObj->name.".pdf");
echo '<script type="text/javascript">
<!--
Expand Down

0 comments on commit 1a32997

Please sign in to comment.