Skip to content

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 under insertInlineImage’s 25-megapixel limit.
  • GoogleDocsClient.export_pdf/1 no longer fails on documents whose PDF is past the ~10 MB cap of Drive’s files.export (403 exportSizeLimitExceeded). It downloads the same PDF from the file’s exportLinks, sending the token only to an https://docs.google.com link, with a 120s receive timeout, and accepting only a body that starts with %PDF-. :drive_export_too_large now means the fallback failed too. The admin page still refuses to push PDFs over 5 MB, so these exports reach API callers of Documents.export_pdf/2 but not the download button.

Changed

  • Upgraded locked dependencies: phoenix_kit 2.35.0 → 2.37.0, etcher 0.16.0 → 0.17.0, phoenix_template 1.0.4 → 1.1.0, quic 1.8.2 → 1.10.0, webtransport 0.4.5 → 0.4.6, h2 0.12.0 → 0.12.1. The :phoenix_kit requirement 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.