You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello. Thank you for your release. I can't run composer on my shared server so I was wondering if I can simply require/include the library php file in my script and use this utility the same way.
Please advise and thank you in advance.
Steven
P.S. I'm using PHP 5.4x
The text was updated successfully, but these errors were encountered:
You should be able to just require and use the two classes that are part of this package if you need to run it without composer. Alternatively, you could run composer locally and upload the vendor directory it creates to your shared server.
Thank you for your response. Couple of things. Now using as such:
use LangleyFoxall\PdfStitcher\InvalidArgumentException;
use LangleyFoxall\PdfStitcher\RuntimeException;
require 'PDFStitcher.php';
Possible typo in usage instruction. See below.
(new PdfStitcher)
->addPdf('firstDocument.pdf')
->addPdfs(['secondDocument.pdf', 'yetAnotherDocument.pdf') *compiler didn't like open bracket
->save('destinationDocument.pdf');
Error was generated when running:
[16-Sep-2019 12:07:43 America/Chicago] PHP Parse error: syntax error, unexpected ':', expecting ';' or '{' in /path/to/file/PDFStitcher.php on line 23
Finally - does "save('destinationDocument.pdf')" save a file to the server or does it save as a decoded PDF string with this name? If the former, can we save to a variable so that nothing has to be written to the server?
Hello. Thank you for your release. I can't run composer on my shared server so I was wondering if I can simply require/include the library php file in my script and use this utility the same way.
Please advise and thank you in advance.
Steven
P.S. I'm using PHP 5.4x
The text was updated successfully, but these errors were encountered: