Open PDF within Anytype

WHAT DO YOU RECOMMEND?

Anytype should support a reliable workflow for opening and saving PDF files.

At minimum, users should be able to open a PDF in their preferred external application, edit or annotate it, and save the changes directly back to the same file stored in Anytype.

Ideally, Anytype should provide an inline PDF viewer with basic annotation tools. Highlights, comments, drawings, and other annotations should be saved directly to the PDF and synchronized across devices.

HOW COULD IT BE DONE?

Minimum implementation:

  • Open the PDF in the system’s default PDF application.

  • Keep a connection to the file stored in Anytype.

  • Detect when the external application saves changes.

  • Replace or update the stored file automatically while preserving its object, properties, links, and references.

  • Synchronize the updated PDF across devices.

Optimal implementation:

  • Open PDFs inline without leaving Anytype.

  • Provide highlighting, comments, drawing, text selection, and basic navigation.

  • Save annotations directly into the PDF using standard PDF annotations, so they remain compatible with other PDF applications.

  • Preserve the reading position and offer thumbnails, an outline, and search.

  • Synchronize both the PDF and its annotations across desktop and mobile.

REAL WORLD USE CASES

PDFs are frequently used for research papers, manuals, contracts, invoices, lecture slides, and reference documents.

A typical workflow is:

  1. Store a PDF in Anytype.

  2. Open it while working on a related project or note.

  3. Highlight important passages or add comments.

  4. Save it and continue working in Anytype.

Currently, opening a PDF externally breaks this workflow. Anytype stores its own copy, so changes made in the external application are not saved back automatically. Users must export or download the PDF, edit it, and upload it again. This can create duplicate files, outdated versions, and broken references.

For a knowledge-management application, being able to read and annotate source material without manually managing multiple copies is an essential workflow.

RECOMMENDED ALTERNATIVES

The current workaround is to download or open the PDF externally, annotate it, and upload the edited version again. This is cumbersome and risks leaving an outdated copy in Anytype.

Another workaround is to keep PDFs outside Anytype and link to the local files. However, those links are device-dependent, are not reliably synchronized, and undermine the purpose of keeping project material inside Anytype.

Using a separate application such as Zotero works for research workflows, but requires maintaining another library and does not solve PDF handling within Anytype itself.

ADDITIONAL CONTEXT

The minimum request is not a complete PDF editor. A dependable “open externally, edit, save back to Anytype” workflow would already solve the most serious problem.

An integrated inline viewer with annotations would be the optimal long-term solution. Standard PDF annotations are important so that edits remain portable and can still be viewed or modified in applications such as Preview, Adobe Acrobat, Zotero, or Okular.

Any implementation should preserve the existing Anytype object, its properties, backlinks, and references when the underlying PDF is updated.

I suggested here to replace the PDF.js Anytype is currently using with EmbedPDF.

I would rather my anytype db not to be cluttered with files.

I store my files on my computer / cloud storage.

I am a 40+ old guy who doesn’t like to dump files in a closed database when they could be easily (and manually) accessible in a file system. Yeah, I am not a data scientist and I don’t see the value of a data lake at my personal scale.

In any case, I don’t like applications which try to do everything… they end up being a bit crap everywhere and eventually good nowhere.

Anytype shouldn’t be a depository of files. At least, that’s my vision of a good product. It has so many other things where it can provide value on.

There have been many other topics on the forum related to this. As we’ve mentioned there, the problem with local device storage of files is that it obviously doesn’t play nicely when you try to access them from other devices. Many of our users are multi-device, hence the need for synced files. Of course, one could always do their file storage separately from Anytype/Anytwo and put file links as bookmarks/URLs in, but that’s a personal decision.