X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/12266a4397d9e344b7f95a19edc4a8df7cd5f9f0..32177c13e6f1f07741f559601064538a65ce00fd:/scripts/book2partner diff --git a/scripts/book2partner b/scripts/book2partner index b121333..4b84c2f 100755 --- a/scripts/book2partner +++ b/scripts/book2partner @@ -23,7 +23,9 @@ if __name__ == '__main__': parser.add_option('--bookoteka', action='store_true', dest='bookoteka', default=False, help='prepare files for Bookoteka') parser.add_option('--gandalf', action='store_true', dest='gandalf', default=False, - help='prepare files for Gandalf') + help='prepare EPUB files for Gandalf') + parser.add_option('--gandalf-pdf', action='store_true', dest='gandalf_pdf', default=False, + help='prepare PDF files for Gandalf') parser.add_option('--virtualo', action='store_true', dest='virtualo', default=False, help='prepare files for Virtualo API') parser.add_option('--prestigio', action='store_true', dest='prestigio', default=False, @@ -41,8 +43,10 @@ if __name__ == '__main__': packagers.BookotekaEpubPackager.prepare(input_filenames, options.output_dir, options.verbose) if options.gandalf: packagers.GandalfEpubPackager.prepare(input_filenames, options.output_dir, options.verbose) + if options.gandalf_pdf: + packagers.GandalfPdfPackager.prepare(input_filenames, options.output_dir, options.verbose) if options.virtualo: - packagers.VirtualoEpubPackager.prepare(input_filenames, options.output_dir, options.verbose) + packagers.VirtualoPackager.prepare(input_filenames, options.output_dir, options.verbose) if options.prestigio: packagers.PrestigioEpubPackager.prepare(input_filenames, options.output_dir, options.verbose) if options.prestigio_pdf: