# Is there an API that can convert a topic into a PDF file?

**URL:** https://meta.discourse.org/t/is-there-an-api-that-can-convert-a-topic-into-a-pdf-file/353048
**Category:** Support
**Created:** [February 19, 2025, 8:25am UTC](https://meta.discourse.org/t/is-there-an-api-that-can-convert-a-topic-into-a-pdf-file/353048 "2025-02-19T08:25:21Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![MachineScholar](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/machinescholar/32/424719_2.png) [@MachineScholar](https://meta.discourse.org/u/MachineScholar)
#### Post date: [February 19, 2025, 10:16am UTC](https://meta.discourse.org/t/is-there-an-api-that-can-convert-a-topic-into-a-pdf-file/353048/3 "2025-02-19T10:16:56Z")

</div>

Check this out

> [@Printing a topic as a PDF](https://meta.discourse.org/t/printing-a-topic-as-a-pdf/160061):
>
> bookmark This guide explains how to print/download any Discourse topic to PDF. person_raising_hand Required user level: All users Discourse allows you to generate a PDF of a topic by using the Print topic keyboard shortcut. The shortcut for your system is noted in the keyboard shortcut reference modal that pops up when you press the ? key while browsing a Discourse site. Most operating systems: ctrl+p MacOS: ⌘+p Using the shortcut will open a new browser window where you can optionall…

This check this topic to figure out how to achieve it via API

> [@Reverse engineer the Discourse API](https://meta.discourse.org/t/reverse-engineer-the-discourse-api/20576):
>
> Discourse is backed by a complete JSON api. Anything you can do on the site you can also do using the JSON api. The API is documented at [docs.discourse.org](https://docs.discourse.org). You can also use the [discourse\_api](https://github.com/discourse/discourse_api) Ruby gem as a client library. However, not every endpoint is documented. To determine how to do something with the JSON API here are some steps you can follow. Example: recategorize a topic. Go to a topic and start editing a category: Open Chrome dev tools, switch to the Network tab, select …

---

_[View the full topic](https://meta.discourse.org/t/is-there-an-api-that-can-convert-a-topic-into-a-pdf-file/353048)._
