New Features
extract-attachments(#1718)./forms/pdf/extract-attachmentsreturns the files a PDF embeds, every one or the onenamegives, as<pdf>_<attachment>:invoice.pdfgivesinvoice_factur-x.xml. Several files come back in a ZIP. A PDF without attachments, or without the named one, answers400. Thanks @Betelgeuse1.extract-text./forms/pdf/extract-textreturns the text of each PDF as a.txtfile, pages joined by a form feed.pagesselects pages;invisible,artifactsandannotationsadd invisible text, artifacts such as headers and stamps, and annotation text. Gotenberg does no OCR: a scanned page reads as empty.
Both are stages too: they come last in a stages list, after encrypt, sign or timestamp if any, and the response holds the PDFs and the extracted files.
Bug Fixes
backdrop-filter: blur()rendered blank on linux/ppc64le (#1491). The ppc64le image pinned Chromium 146, which has the bug; it now installs the same Chromium as the other platforms. Thanks @florianaiautomation.- Data race on concurrent stages. Stages that write many files at once, such as
splitorrenderon several PDFs, could register their output names concurrently.
Chore
- linux/ppc64le moves from Chromium 146 to 156, from Debian's security updates.
- Updated Go dependencies.