Saved PDF annotations can vanish after a reload or export
Two EmbedPDF users report that annotations restored after a viewer restart can be invisible either in the viewer or in an exported PDF, even when the import reports no error or the annotation data remains present.
What someone actually noticed
One EmbedPDF user reports that annotations saved outside the viewer and imported after a reload still look correct inside EmbedPDF, but some are invisible after exporting the PDF and opening it in a standard reader. Their investigation found that restored annotations lacked appearance streams in the exported file, while annotations newly drawn in the current session were visible. A no-op update and commit did not fix their reproduction.
A different user reports a related but distinct failure: after exporting annotation data, destroying the viewer and importing that data into a fresh instance, a stamp becomes invisible inside the viewer itself without an import error. They supplied a minimal reproduction. Both reports concern the EmbedPDF annotation round trip; they do not establish that all PDF viewers or annotation types fail in the same way.
Read the original signal: EmbedPDF GitHub issue about annotations missing from exported PDFsWays to solve it
Without new software, keep a small set of representative annotated PDFs, restart the viewer, export each one, and visually compare the result in a second PDF reader before handing it off. Track the affected EmbedPDF issues and retest after updates.
If that manual round trip is repeated often, try a local fixture-based QA harness that surfaces differences after reload and export. Make failures reviewable and prioritize fixing the library integration rather than treating the checker as a repair tool.
A small app you could build
Annotation Roundtrip Check
A local pre-handoff test harness for teams embedding a PDF viewer: reopen saved annotation data, export the PDF, and flag missing or visually changed marks for human review.
Who might use it: Developers and QA teams building document-review flows with saved PDF annotations
- Accept a test PDF and a saved annotation fixture locally, without uploading document contents
- Run a fresh-viewer import and exported-PDF check against a developer-approved reference image or annotation list
- Show page-level differences and an exception report; do not silently repair or certify the PDF
What to verify before building
- Reproduce both reported paths on the currently deployed EmbedPDF version, including a newly drawn mark, a restored shape and a stamp; check whether upstream fixes now resolve either case.
- Ask document-review developers whether reload-and-export regressions recur in their actual workflows and whether their existing integration tests already catch them.
- Compare a manual second-reader inspection with the proposed local check on redacted fixtures, recording false positives and missing visual errors before building a product.
Reality check
These are two reports against the same library, with different visible symptoms; they are not evidence of broad PDF demand. A library fix might remove the need for a separate tool. A simple annotation-count or appearance-stream check could miss visually wrong marks, while image comparisons can flag harmless rendering differences. The proposed harness would detect regressions for tested fixtures, not guarantee every recipient sees the same PDF or fix the underlying import path.
An observation is not market validation. Check other reports and talk to the people who experience this before committing more than a tiny experiment.