# Accessible PDF

Source: https://zshot-cli.com/examples/accessible-pdf/
Markdown: https://zshot-cli.com/examples/accessible-pdf/index.md
Section: [Examples](https://zshot-cli.com/examples/)
License: [Standard](https://zshot-cli.com/support/licenses/standard)

Capture the [ZShot Café receipt](https://zshot-cli.com/example_assets/cafe/) as a tagged PDF at the page's own print size, saved to [`receipt.pdf`](/example-renders/cafe-receipt.pdf).

**CLI**

```sh
zshot -f receipt.pdf \
  --pdf-prefer-css-page-size \
  --pdf-generate-tagged-pdf \
  https://zshot-cli.com/example_assets/cafe/
```

**JSON** — `POST /` body for the [API](/reference/server/api), Pro license

```json
{
  "url": "https://zshot-cli.com/example_assets/cafe/",
  "output_type": "pdf",
  "pdf_prefer_css_page_size": true,
  "pdf_generate_tagged_pdf": true
}
```

**curl**

```sh
curl -X POST http://127.0.0.1:3000/ \
  -H "Content-Type: application/json" \
  -d '{"url":"https://zshot-cli.com/example_assets/cafe/","output_type":"pdf","pdf_prefer_css_page_size":true,"pdf_generate_tagged_pdf":true}' \
  -o receipt.pdf
```

Expected output: [cafe-receipt.pdf](/example-renders/cafe-receipt.pdf) — ZShot Café receipt

## Related

Flags:

- [`--pdf-generate-tagged-pdf`](https://zshot-cli.com/reference/flags/document/pdf-generate-tagged-pdf/) — Enable accessible PDFs
- [`--pdf-prefer-css-page-size`](https://zshot-cli.com/reference/flags/document/pdf-prefer-css-page-size/)

Topics:

- [PDF](https://zshot-cli.com/reference/formats/pdf/)

## Navigation

- [Examples](https://zshot-cli.com/examples/)
  - [Webpage as PNG](https://zshot-cli.com/examples/hello-from-zshot/)
  - [Full-page phone screenshot](https://zshot-cli.com/examples/full-page-phone/)
  - [Wait for a JavaScript event](https://zshot-cli.com/examples/wait-for-event/)
  - [Rendered HTML](https://zshot-cli.com/examples/html-output/)
  - [Tablet screenshot](https://zshot-cli.com/examples/tablet-screenshot/)
  - **Accessible PDF**
  - [WebM video](https://zshot-cli.com/examples/webm-video/)
  - [Animated GIF](https://zshot-cli.com/examples/animated-gif/)
  - [Dark mode](https://zshot-cli.com/examples/dark-mode/)
  - [Emulate geolocation](https://zshot-cli.com/examples/geolocation/)
  - [Log in, then capture](https://zshot-cli.com/examples/navigate-login/)
  - [Log in, then extract JSON](https://zshot-cli.com/examples/sales-report-json/)
  - [Upload a file, download the result](https://zshot-cli.com/examples/enhance-leads/)
  - [Crawl a site into a WACZ](https://zshot-cli.com/examples/crawl-links/)
  - [Archive a sitemap into a WACZ](https://zshot-cli.com/examples/wacz-sitemap/)
  - [Run an API server](https://zshot-cli.com/examples/api-server/)
  - [Signed URL support](https://zshot-cli.com/examples/menu-board/)
  - [Browser as a CDN](https://zshot-cli.com/examples/browser-as-a-cdn/)
- [Download](https://zshot-cli.com/download/)
- [Purchase](https://zshot-cli.com/purchase/)
- [Reference](https://zshot-cli.com/reference/)
- [Support](https://zshot-cli.com/support/)
- [Changelog](https://zshot-cli.com/changelog/)

Site index: https://zshot-cli.com/llms.txt

