<?php
require_once("../../config.php");
global $CFG, $COURSE;
require_once($CFG->libdir . '/blocklib.php');
require_once($CFG->libdir . '/dmllib.php');
require_once($CFG->libdir.'/tcpdf/tcpdf.php');
require_once($CFG->libdir.'/tcpdf/tcpdfprotection.php');
require_once($CFG->dirroot."/course/lib.php");
require_once($CFG->dirroot .'/blocks/digital_notary/fpdi/fpdi.php');
include($CFG->dirroot .'/blocks/digital_notary/api.php');
echo "hi";
?>
When I run this page, it echoes "hi".
When I add in
include($CFG->dirroot .'/blocks/digital_notary/PDFMerger/PDFMerger.php');
to the list, and run the page. "hi" no longer appears. I am not sure why the script is having issues with PDFMerger alone.
Does anyone have any easy way I can merge pdf's together in php? I am using TCPDF to create a new pdf and I want to merge it with an existing one, then delete the pdf created by TCPDF.

New Topic/Question
Reply




MultiQuote




|