> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mirage.strukto.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# pdfinfo

> Set up the credential-free pdfinfo CLI for PDF files.

![](https://mintcdn.com/struktoai/F9Lv_nTaj6By6crk/images/python-logo.svg?fit=max\&auto=format\&n=F9Lv_nTaj6By6crk\&q=85\&s=cf5b268d330f7db46ea5cf6083f309a1)

Node.js

Browser

![](https://mintcdn.com/struktoai/CsxMCKUyfoQQJYHB/images/cloudflare-logo.svg?fit=max\&auto=format\&n=CsxMCKUyfoQQJYHB\&q=85\&s=23668457afa14abb3b0db0f5b9c0541a)

Mirage implements [poppler](https://poppler.freedesktop.org)'s `pdfinfo`:
a PDF's metadata, page count, page sizes, encryption and PDF version, with
poppler's messages and exit codes.

`pdfinfo` needs no account config and reads PDF files through existing mounts.
Register it on `ws`.

> [tab] YAML
>
> ```yaml workspace.yaml theme={null}
> clis:
>   pdfinfo:
>     cli: pdfinfo
>     machine: in_process
> ```

> [tab] Python
>
> ```python theme={null}
> from mirage.commands.cli.builtin.pdf import PDFINFO
>
> ws.register_cli("pdfinfo", PDFINFO)
> ```

> [tab] TypeScript
>
> ```typescript theme={null}
> import { PDFINFO } from '@struktoai/mirage-node'
>
> ws.registerCli('pdfinfo', PDFINFO)
> ```

## SDK guides

> [card] [Python](https://docs.mirage.strukto.ai/python/cli/pdfinfo.md)
>
> Every command, its flags and behavior.

> [card] [TypeScript](https://docs.mirage.strukto.ai/typescript/cli/pdfinfo.md)
>
> Every command, its flags and behavior.

## License

| Project | Role in Mirage | License |
| - | - | - |
| [poppler](https://poppler.freedesktop.org) | Command-line behavior reference; Mirage copies none of its code | GPL |
| [pdf\_oxide](https://github.com/yfedoseev/pdf_oxide) | PDF reader dependency | MIT or Apache-2.0 |
| [Mirage](https://github.com/strukto-ai/mirage) | Command implementation | [Apache-2.0](https://github.com/strukto-ai/mirage/blob/main/LICENSE) |

See [compatibility and licenses](https://docs.mirage.strukto.ai/home/setup/clis.md#compatibility-and-licenses).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.