# Making DOI Ready PDFs from Discourse

**URL:** <https://meta.discourse.org/t/making-doi-ready-pdfs-from-discourse/92858>\
**Category:** Feature\
**Created:** [July 21, 2018, 8:20pm UTC](https://meta.discourse.org/t/making-doi-ready-pdfs-from-discourse/92858 "2018-07-21T20:20:02Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![swamidass](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/swamidass/32/119549_2.png) [@swamidass](https://meta.discourse.org/u/swamidass)\
**Post date:** [August 5, 2018, 6:51pm UTC](https://meta.discourse.org/t/making-doi-ready-pdfs-from-discourse/92858/10 "2018-08-05T18:51:41Z")

</div>

This is all helpful. I just blogged about the use case I am after here:

> **[The Perils of Digital Dialogue](https://peacefulscience.org/articles/digital-dialogue/)**
>
> In the conversation between theology and science, digital dialogue is important, but comes with perils. Maybe DOIs could help us do better.

The challenge I’ve now seen from using this is several fold.

> [@robmc](#):
>
> As a matter of interest, does it have to be a PDF in this case? Is a topic not just as much of a ‘digital object’? (I’m not an academic, as you can tell).

It does have to be a static file that can be uploaded to Zenodo. The “promise” behind DOIs is that they will **_always_** be accessible in perpetuity, and immutable. Uploading to Zenodo guarrantees this, but we have to upload. It need not be a PDF. A well packaged HTML file could work too, but PDF’s are viewable on the website. The key thing is that it must be static.

> [@robmc](#):
>
> Yes, that is an interesting use-case. I can’t quite get my head around how you present either all or just a selection of posts in a topic in this way as opposed to simply using the permalink for the topic.

That would be a great feature. Though it seems downstream from some other problems. Here is what I see are the big issues:

1. Links are not handled well, nor are crosslinks.
2. Most of the problems are hackishly solvable with custom css added to the template.
3. Links should ideally be handled as footnotes, but this is not easy to do with standard CSS. I should be done on the backend.
4. It is currently untested on things like “spoiler” tags or Latex.
5. There is a ton of nuisance elements that need to be removed (such as cross link indicators after posts). If someone wants to help with this, I can produce a definitive list.
6. Process is pretty manual. Ideally there is an Admin button one could click which would interface directly with the Zenodo API, including getting the versioning correctly, etc. This admittedly is a lot of work. So I imagine will take a while.

I can provide the CSS I am using if someone wants to make it default. All it does is add some CSS in print and page css sections to clean things up for print. That is probably the easiest thing to do right now, perhaps adding some configuration options to discourse to tune it. Is there interest in that?

The HTML link to footnote is a real problem that does need to be addressed. It is most likely solvable only on the backend, as CSS is not set up for this. That, it seems, it the most important hard problem to solve quickly.

Is this something anyone can help with?

---

_[View the full topic](https://meta.discourse.org/t/making-doi-ready-pdfs-from-discourse/92858)._
