Document Creator 0.9.7: Sharp images and exports of large PDFs
Document Creator 0.9.7 keeps images sharp in templates and documents, and lets code export PDFs that Google Drive’s normal export refuses as too large.
Images inserted into templates and documents used Google’s default copy, scaled to 1600 pixels on the long side. They now ask for up to 4096 pixels, which stays within Google Docs’ size limit for inserted images.
PDF export used to fail for documents whose PDF was over Drive’s export limit of about 10 MB. It now falls back to downloading the same PDF from Google Docs directly. This helps code that calls the export; the Export PDF download in the admin still refuses files over 5 MB with PDF is too large to download directly. Please export from Google Docs instead.
Full release notes: Document Creator 0.9.7
0.9.7 · 22 September 2026
Fixed
- Images inserted into templates and documents keep their resolution. The
embed URL now asks Google for up to 4096px on the long side instead of the
1600px copy a bare
lh3.googleusercontent.com/d/<id>URL serves; 4096px keeps every aspect ratio underinsertInlineImage’s 25-megapixel limit. GoogleDocsClient.export_pdf/1no longer fails on documents whose PDF is past the ~10 MB cap of Drive’sfiles.export(403exportSizeLimitExceeded). It downloads the same PDF from the file’sexportLinks, sending the token only to anhttps://docs.google.comlink, with a 120s receive timeout, and accepting only a body that starts with%PDF-.:drive_export_too_largenow means the fallback failed too. The admin page still refuses to push PDFs over 5 MB, so these exports reach API callers ofDocuments.export_pdf/2but not the download button.
Changed
- Upgraded locked dependencies:
phoenix_kit2.35.0 → 2.37.0,etcher0.16.0 → 0.17.0,phoenix_template1.0.4 → 1.1.0,quic1.8.2 → 1.10.0,webtransport0.4.5 → 0.4.6,h20.12.0 → 0.12.1. The:phoenix_kitrequirement is unchanged (~> 2.21 and >= 2.21.3).
Document Creator 0.9.7. Install or update: {:phoenix_kit_document_creator, "~> 0.9"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.