SferaDoc.Pdf.ObjectStore.FileSystem (sfera_doc v0.1.0)

Copy Markdown View Source

File-system backed PDF object storage.

PDFs are written as regular files under a configurable base path, organized as:

{path}/{prefix}{name}/{version}/{assigns_hash}.pdf

No external dependencies are required.

Configuration

config :sfera_doc, :pdf_object_store,
  adapter: SferaDoc.Pdf.ObjectStore.FileSystem,
  path: "/var/data/pdfs",
  prefix: ""          # optional, default ""

The path directory will be created automatically on first write.