Victor
Victor
I've never used Sapper, so I made a quick investigation. I guess you can add your own middleware, right before `sapper.middleware()`, and intercept all requests to `*.pdf`. But I cannot...
Hah! I made it with a little kinda hack — immediately replace `res.end` function back, when it is called, so it will not go recursive: https://pastebin.com/ETxkTG4n
To have styles, you should also add them to gotenberg, as sources. Looks like sapper generates them dynamically, so, this is whole another task to get links to styles from...
Is your project open source? I think I can add links to projects, which are using this library, somewhere...
Hm. There are only 13 rows, related to PDF converting (including `import`) in the whole pastebin example. I can think of something like Gotenberg Express middleware, which will convert responses...
Hello! Sorry for late response, I'm being away from laptop. This is strange error, can you show me full exception stacktrace? Only `maxBodyLength` mentions I found are related to `axios`,...
`gotenberg` function accept address of your Gotenberg instance, for example: ```js gotenberg('http://localhost:3000') ``` if you have Gotenberg running on localhost port 3000
Does Gotenberg logs some errors to stdout? Also, does it work fine if you use `curl` (or any other HTTP client) to send file directly to Gotenberg?
Hello! Try something like this (I could try it in about 5-6 hours, now away from my laptop): ```ts const toPDF = got.pipe( got.gotenberg(''), got.merge, got.adjust({ // manually adjust endpoint,...
Strange though, multiple files should work like this ```js const pdf = await toPDF([ 'file://in1.docx', 'file://in2.docx', 'file://in3.docx' ]); ``` I'll check this explicitly later. With two filenames, I guess, it...