This topic is locked
[SOLVED]

 Create PDF issue

2/25/2019 1:24:18 AM
PHPRunner General questions
R
ruud author

This is what I get after pressing (create)PDF: expected expression, got '<'
Anybody an idea?
I tried it with view, print and an added print page...
Thanks Ruud Wiering

T
taumic 2/25/2019

Hello, Ruud,
I'm afraid I have exactly the same problem.

@admin: maybe we need to install/copy something, similar to DOMPPDF ?
Thanks and greetings
Michael

Sergey Kornilov admin 2/25/2019

Ruud, Michael,
you need to post your projects to Demo Account and contact support directly.

Sergey Kornilov admin 2/25/2019

Fixed in build 32516

T
taumic 2/25/2019

Thanks, now the PDF's will be created!
Additional question: is there any way to determine a path (subdirectory) on the server where the PDF files are stored?

lefty 2/25/2019



Thanks, now the PDF's will be created!
Additional question: is there any way to determine a path (subdirectory) on the server where the PDF files are stored?


I would like to know this as well. PDFmake (pure javascript ) ( This seems it is Client Side ) not server side so not sure how ? Never worked with it . Although we have PDFmake / Node.js installed for server side in source so I am a bit confused as how to use to write to server the file. I assume the file is temped out and then opens in browser as of now. How can we also write to server ? But then all the fonts and code would have to be stored on the server like the old plugin dompdf.
It seems it all comes down to this : From PDFmake examples
var pdfDoc = printer.createPdfKitDocument(docDefinition);

pdfDoc.pipe(fs.createWriteStream('document.pdf'));

pdfDoc.end();
Hope Sergey can comment on this one as everyone is going to ask how?

Sergey Kornilov admin 2/26/2019

PDF is created on the client side. There are ways to transfer generated file from client to server or generate it right on the web server if NodeJS is installed there (which not many people has access to).
We will do something in this regard at some point later.

R
ruud author 2/27/2019

Thanks Fixed in build 32516

C
cristi 2/27/2019

In my case the issue is fixed in the latest version only if I choose "upload all files in the output directory" - this is not the default option when you first upload a new project - maybe it should be...

Another issue off topic (sorry!): if you choose to have uploaded files in the generated script the default "files" directory is not automatically created on the server like before in the old versions.