mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 17:36:38 +02:00
Merge branch 'MDL-43025-master' of git://github.com/damyon/moodle
This commit is contained in:
commit
1f71f7685a
1 changed files with 5 additions and 0 deletions
|
@ -77,6 +77,8 @@ class pdf extends \FPDI {
|
|||
*/
|
||||
public function combine_pdfs($pdflist, $outfilename) {
|
||||
|
||||
raise_memory_limit(MEMORY_EXTRA);
|
||||
|
||||
$this->setPageUnit('pt');
|
||||
$this->setPrintHeader(false);
|
||||
$this->setPrintFooter(false);
|
||||
|
@ -122,6 +124,8 @@ class pdf extends \FPDI {
|
|||
* @return int the number of pages in the PDF
|
||||
*/
|
||||
public function load_pdf($filename) {
|
||||
raise_memory_limit(MEMORY_EXTRA);
|
||||
|
||||
$this->setPageUnit('pt');
|
||||
$this->scale = 72.0 / 100.0;
|
||||
$this->SetFont('helvetica', '', 16.0 * $this->scale);
|
||||
|
@ -133,6 +137,7 @@ class pdf extends \FPDI {
|
|||
$this->setPrintFooter(false);
|
||||
$this->pagecount = $this->setSourceFile($filename);
|
||||
$this->filename = $filename;
|
||||
|
||||
return $this->pagecount;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue