This repo serves as an example for reproducing bug/weird behaviour I've noticed in Gotenberg:5.
Download a docker image for gotenberg:5 and run it locally
- Run Gotenberg at <GOTENBERG_URL>
- call convert/html with the
index.html
andheader.html
e.g., which is successful:curl --request POST \ --url http://localhost:3000/convert/html \ --header 'Content-Type: multipart/form-data' \ --form [email protected] \ --form [email protected] \ -o result.pdf
- Add any character to the header file, and call
curl
again - now it fails with error messageprinting page to PDF: cdp.Page: PrintToPDF: rpcc: message too large (increase write buffer size or enable compression)
- Leave that additional character in the header.html, but now attach additionally footer.html, and it will pass:
curl --request POST \ --url http://localhost:3000/convert/html \ --header 'Content-Type: multipart/form-data' \ --form [email protected] \ --form [email protected] \ --form [email protected] \ -o result.pdf
- add any character to the
footer.html
and call thtecurl
again - it fails with the same error message