# `PDFShift.Config`
[🔗](https://github.com/sgerrand/ex_pdf_shift/blob/v0.2.1/lib/pdf_shift/config.ex#L1)

Configuration module for PDFShift API client.

# `t`

```elixir
@type t() :: %PDFShift.Config{api_key: String.t(), base_url: String.t()}
```

# `new`

```elixir
@spec new(keyword()) :: {:ok, t()} | {:error, String.t()}
```

Creates a new configuration with the given options.

Returns `{:error, reason}` if no API key is available.

## Options

  * `:api_key` - API key for authentication with PDFShift
  * `:base_url` - Base URL for the PDFShift API (defaults to "https://api.pdfshift.io/v3")

## Examples

    iex> PDFShift.Config.new(api_key: "api_key123")
    {:ok, %PDFShift.Config{api_key: "api_key123", base_url: "https://api.pdfshift.io/v3"}}

    iex> PDFShift.Config.new()
    {:error, "API key is required. Pass api_key: "..." or set PDFSHIFT_API_KEY."}

---

*Consult [api-reference.md](api-reference.md) for complete listing*
