Open Selion05 opened 6 years ago
Can you try again with
var path = require('path');
var arialFontPath = path.join(__dirname, '../tests/TestMaterials/fonts/arial.ttf');
...
font:pdfWriter.getFontForFile(arialFontPath),
...
still the segmentation fault
well, I copied your code and made the font path simpler.
font:pdfWriter.getFontForFile(path.join(__dirname, 'arial.ttf'))
It works for me. You may try the same thing or find another source for your arial font
As I know, segmentation fault
is caused by unsolved font path, so you definitely want to try the some other path combination depends on how you run your codes.
This issue may be similar to your case: Location problem
ok jep you were right it was the missing font. i didn't notice that the sample required arial.ttf.
Anyway is there a more verbose log file or something simliar? Segmentation fault core dumped isn't helpful at all ;) Thanks!
just tried to get it working in a docker container.
Dockerfile
app.js
building and running the contianer
localhost:8081/test -> It works localhost:8081/hummus I get the error... Am I missing something?