3c363f10efded104633c7fb0f3064ced1b65d461
[librarian.git] / scripts / book2pdf
1 #!/usr/bin/env python
2 # -*- coding: utf-8 -*-
3 #
4 # This file is part of Librarian, licensed under GNU Affero GPLv3 or later.
5 # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
6 #
7 from __future__ import unicode_literals
8
9 from librarian.book2anything import Book2Anything, Option
10
11
12 class Book2Pdf(Book2Anything):
13     format_name = "PDF"
14     ext = "pdf"
15     uses_cover = True
16     uses_provider = True
17     transform_options = [
18         Option('-t', '--save-tex', dest='save_tex', metavar='FILE',
19                 help='path to save the intermediary LaTeX file to'),
20         Option('-m', '--morefloats', dest='morefloats', metavar='old/new/none',
21                 help='force morefloats in old (<1.0c), new (>=1.0c) or none')
22     ]
23
24
25 if __name__ == '__main__':
26     Book2Pdf.run()