ccb5facc4dcd60ba3e1188d3be910e3a1aaa2fa6
[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 librarian.book2anything import Book2Anything, Option
8
9
10 class Book2Pdf(Book2Anything):
11     format_name = "PDF"
12     ext = "pdf"
13     uses_cover = True
14     uses_provider = True
15     transform_options = [
16         Option('-t', '--save-tex', dest='save_tex', metavar='FILE',
17                 help='path to save the intermediary LaTeX file to'),
18         Option('-m', '--morefloats', dest='morefloats', metavar='old/new/none',
19                 help='force morefloats in old (<1.0c), new (>=1.0c) or none')
20     ]
21
22
23 if __name__ == '__main__':
24     Book2Pdf.run()