Rendro.Adapters.Poppler (Rendro v0.2.0)

Copy Markdown View Source

External binary adapter for Poppler's pdfinfo tool. Provides structural validation of generated PDF files.

Summary

Functions

Validates a PDF file at the given path using pdfinfo.

Functions

validate(file_path, opts \\ [])

Validates a PDF file at the given path using pdfinfo.

Returns {:ok, metadata_map} on success. Returns {:error, {:invalid_pdf, reason}} if the PDF is invalid. Returns {:error, {:missing_executable, "pdfinfo"}} if pdfinfo is not installed.