PdfElixide (pdf_elixide v0.2.0)

Copy Markdown View Source

Elixir bindings for pdf_oxide, a high-performance PDF library written in Rust.

Summary

Functions

Opens a PDF document from the given binary data. See PdfElixide.Document.from_binary/1.

Opens a PDF document from the given binary data, raising an error if it fails. See PdfElixide.Document.from_binary!/1.

Opens a PDF document from the specified file path. See PdfElixide.Document.open/1.

Opens a PDF document from the specified file path, raising an error if it fails. See PdfElixide.Document.open!/1.

Functions

from_binary(bin)

@spec from_binary(binary()) :: {:ok, PdfElixide.Document.t()} | {:error, term()}

Opens a PDF document from the given binary data. See PdfElixide.Document.from_binary/1.

from_binary!(bin)

@spec from_binary!(binary()) :: PdfElixide.Document.t()

Opens a PDF document from the given binary data, raising an error if it fails. See PdfElixide.Document.from_binary!/1.

open(path)

@spec open(Path.t()) :: {:ok, PdfElixide.Document.t()} | {:error, term()}

Opens a PDF document from the specified file path. See PdfElixide.Document.open/1.

open!(path)

@spec open!(Path.t()) :: PdfElixide.Document.t()

Opens a PDF document from the specified file path, raising an error if it fails. See PdfElixide.Document.open!/1.