I have installed Print module and also TCPDF library to generate PDF files. However, Print module can just create PDF files to download, but not to save in server folder. I have tried to change method _print_pdf_tcpdf in Print module, so files can be saved in server folder. I have changed _print_pdf_tcpdf function as follows:
I have changed line
to this line:
But this code throws error:
TCPDF ERROR: Unable to create output file: https://mywebsite/sites/default/files/aaa.pdf
I have set permissions for sites folder to write. Another modules can write into this folder, so I dont think the problem is in permissions. Can anybody help where can be problem?