You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Controlled Document PDF preview fails with embedded images using platform:// URLs #11023
Printing a Controlled Document containing embedded images produces a PDF object, but Huly displays Failed to preview and the generated file cannot be downloaded.
Regular Huly Documents containing embedded images print correctly. The issue appears specific to documents:class:ControlledDocument.
Headless Chromium does not support the platform:// scheme.
The Controlled Document guest renderer may need to resolve these references to authenticated HTTP(S) /files/... URLs before Puppeteer calls page.pdf().
Possible fix
Resolve internal file references in the Controlled Document guest renderer, or replace platform://platform/files/... image sources with guest-accessible HTTP(S) URLs before PDF rendering.
Security note
All workspace IDs, file IDs, document content, domains, and guest tokens have been redacted.
I proposed a partial fix in Platform-Collective/platform#216, the actively maintained continuation of this repository. It resolves images that only have an internal platform:// source; the PDF preview/download failure may be a separate problem and is not covered.
Activity
MichaelUray commentedon Oct 23, 2026
I proposed a partial fix in Platform-Collective/platform#216, the actively maintained continuation of this repository. It resolves images that only have an internal platform:// source; the PDF preview/download failure may be a separate problem and is not covered.
fix(text-editor): render loadable image URLs instead of platform:// p…