13 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
2
votes
1
answer
97
views
How to pass along waitForExpression argument when using gotenberg-php
A PDF is being generated using gotenberg-pdf client (in a Laravel webapp), communicating with the API on the same server (localhost:3000). I would like to pass along the waitForExpression argument as ...
0
votes
0
answers
66
views
Can I run Docker (e.g., Gotenberg) inside an Azure App Service that’s deployed in Code mode?
I’m working on an app where the API is deployed to Azure App Service using the Code publish model (Python + Gunicorn). When I run this locally, I also spin up a Gotenberg (Docker) container from the ...
3
votes
2
answers
365
views
How can I attach a PDF generated using Gotenberg Bundle to a Symfony email?
I want to create a PDF with Symfony and Gotenberg like this:
$doc = $gotenbergPdf
->html()
->content('rechnungen/pdf/rechnung.pdf.html.twig', [])
->...
1
vote
0
answers
203
views
Migrating from WKPDF to Gotenberg
I'm trying to migrate from wkhtmlpdfto gotenberg for the pdf generation. The problem is that the pdf generated by gotenberg is not equal as the one generated with wkhtmlpdf. It's like the layout is ...
1
vote
0
answers
100
views
How to split a wide HTML page into two pages when printing
I have a very simple HTML page with 42cm of width (doubled width of A4).
original HTML page
When I try to print it, I get croped version of this page, smth like this:
print
But instead of this, I want ...
0
votes
0
answers
391
views
PDF Page properties using Gotenberg Python requests
I'm trying to convert word documents and excel documents using the Gotenberg API documentation which only provides cURLs, but I managed to convert the basic cURL using python requests, but cannot seem ...
0
votes
1
answer
1k
views
Gotenberg img convertion for pdf size opimization
I use https://gotenberg.dev/ docker image for converting html with img to pdf.
I have a webp image of reasonable size.
I generate pdf with pyhon code like
with io.BytesIO() as tmp_index_html:
...
2
votes
1
answer
2k
views
Avoid Main content overlap to header and footer on new pages on Gotenberg PDF PHP library
I have written a code to print html in pdf using Gotenberg version 7, pdf library in PHP.
Config to set Gotenberg :
$chromium = Gotenberg::chromium(config('gotenberg.api.host'))
->...
0
votes
0
answers
385
views
Can we convert a byte array of office file to pdf byte array in ASP.NET Core 6 MVC?
I have an ASP.NET Core 6 MVC project. I want to convert my Office files to PDF. But the problem is I take my files as byte array and I must convert them to byte array pdf.
I tried to use gotenberg api ...
3
votes
1
answer
6k
views
how to pass form with files with names via httpx
I am trying to send data to gotenberg container via httpx lib.
r = httpx.post(
"http://doc-to-pdf:3000/forms/chromium/convert/html",
files={
"index.html": ...
4
votes
1
answer
4k
views
Context deadline exceeded- goteberg api (/forms/libreoffice/convert)
I am trying to convert ms-office files to pdf using gotenberg api. For some files, i am getting unoconv PDF context deadline exceeded with 503 status. I have increased the read, write and process ...
2
votes
1
answer
2k
views
Converting .docx to .pdf using Gotenberg and Google Cloud
As many here I stumbled across converting .docx to .pdf. The only reasonable solution out there seems to be Gotenberg which is a Docker-powered stateless API and Gotenberg js client which allows to ...
0
votes
1
answer
901
views
File API - works with cURL but fails with AJAX and Postman
I am running gotenberg as my document to PDF conversion API and it is working with cURL.
The cURL command looks like this
curl --request POST --url http://example.com --header 'Content-Type: ...