wallyqs / org-ruby

An Org mode parser written in Ruby.
218 stars 51 forks source link

Is it possible to export Org mode documents to PDF? #100

Closed avatar-lavventura closed 4 months ago

avatar-lavventura commented 1 year ago

I was wondering Is it possible to export Org mode documents to PDF? Could it be implemented as a feature?

maxnikulin commented 4 months ago

Org mode as Emacs major mode uses LaTeX as intermediate format to export to PDF, see LaTeX Export in the Org manual.

In the scope of org-ruby, you may render a document to HTML and print it to PDF

chromium --headless --disable-gpu --print-to-pdf=output_file_name.pdf file:///path/to/your/html

https://github.com/jgm/pandoc/ uses PdfLaTeX as well (-t pdf).

avatar-lavventura commented 4 months ago

@maxnikulin Thank you