Skip to content

printToPDF output is a raster image: no embedded fonts, empty text layer #279

Description

@XDLCS

Summary

Page.printToPDF produces a raster-only PDF: zero embedded fonts and an empty text layer. The PDF cannot be searched, copied from, or read by assistive technology.

Environment

  • moli 1.0.6, also verified on local build at commit a1385e0 (main, 2026-08-30)
  • Chromium baseline: chrome-headless-shell 131.0.6778.204, same probe

Reproduction

Serve this page:

<!DOCTYPE html><html><head><title>v6</title></head><body><h1>Font Text 123</h1></body></html>

Then:

moli fetch http://127.0.0.1:8765/v6.html --dump=pdf --layout > out.pdf
pdffonts out.pdf   # -> 0 font rows
pdftotext out.pdf - | tr -d '[:space:]' | wc -c   # -> 0

Observed (moli)

  • pdffonts: 0 fonts embedded
  • pdftotext: 0 characters in the text layer
  • Visual rendering is correct: non-white pixel coverage matches Chrome, and the PDF opens as an image-like page

Expected (Chromium 131)

  • Same page → pdftotext recovers 152 characters ("Font Text 123" etc.)
  • Fonts are embedded as subsetted font programs

Impact

PDF output is unusable for search, copy-paste, indexing, or accessibility. Anything consuming moli's PDF export (archival, RAG ingestion, agent tooling) gets a picture, not a document.

Verified on a1385e0: still raster-only (0 fonts / 0 text chars).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions