Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Automated print pdf to folder
08-16-2015, 12:50 AM,
#2
RE: Automated print pdf to folder
Hi Dave,

What you can do is to go to includes/class.pdf.php and find the OutputD and OutputI methods. Create a new method as follows:

function OutputF($DocumentFilename = 'Document.pdf') {
if (($DocumentFilename == null) or ($DocumentFilename == '')) {
$DocumentFilename = _('Document.pdf');
}
$this->Output('/absolute/path/for/documents/' . $DocumentFilename, 'F');
}

putting in the path where you want to store the files. Then wherever you want to save rather than send to the browser change the OutputD method to OutputF. You might want to add a redirect back to the script after calling this method. Does this make sense?

Tim
Reply


Messages In This Thread
Automated print pdf to folder - by daveparrish - 08-15-2015, 11:43 AM
RE: Automated print pdf to folder - by TimSchofield - 08-16-2015, 12:50 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)