Closed SteSher closed 6 years ago
Use the toBrowser method after download.
$myTaskConvertPDF->toBrowser();
This is not currently documented on developer.ilovepdf.com.
On next version this method will not require to save locally the file first (download method will not be required).
I inserted the line:
$myTaskConvertPDF->toBrowse();
after
$myTaskConvertPDF->download();
but I received a fatal error.
Fatal error: Call to undefined method Ilovepdf\PdfjpgTask::toBrowse()
Hello @SteSher please try:
$myTaskConvertPDF->toBrowser();
adding a final 'r'
Okay that's embarressing. Thanks for that.
Hi Calling the download method on an object only downloads the file to the local directory rather than downloading to the users browser/computer. I tried using readFile() but it doesn't seem to work. Am I missing something? Here's my code, everything works and I have no issues with anything except for the download.