View Source Pdf.Reader.Error exception (ExPDF v1.0.1)

Exception raised by bang variants of Pdf.Reader functions.

The :reason field carries the same atom or tagged tuple that the non-bang variant would have returned in {:error, reason}.

Do not rescue this in production pipelines — use the non-bang forms and pattern-match on {:error, reason} instead.