diff --git a/src/calibre/ebooks/pdf/output.py b/src/calibre/ebooks/pdf/output.py index e76bcdd3d7..230beed9ae 100644 --- a/src/calibre/ebooks/pdf/output.py +++ b/src/calibre/ebooks/pdf/output.py @@ -70,7 +70,7 @@ class PDFOutput(OutputFormatPlugin): popts.paper_size = paper_size(opts.paper_size) popts.orientation = orientation(opts.orientation) - with TemporaryDirectory('_any2pdf') as oebdir: + with TemporaryDirectory('_pdf_out') as oebdir: OEBOutput(None).convert(oeb_book, oebdir, input_plugin, opts, log) opf = glob.glob(os.path.join(oebdir, '*.opf'))[0] diff --git a/src/calibre/ebooks/pdf/writer.py b/src/calibre/ebooks/pdf/writer.py index a618213189..2aebd7322c 100644 --- a/src/calibre/ebooks/pdf/writer.py +++ b/src/calibre/ebooks/pdf/writer.py @@ -82,7 +82,7 @@ class PDFWriter(QObject): def _delete_tmpdir(self): if os.path.exists(self.tmp_path): shutil.rmtree(self.tmp_path, True) - self.tmp_path = PersistentTemporaryDirectory('_any2pdf_parts') + self.tmp_path = PersistentTemporaryDirectory('_pdf_out_parts') def _write(self): self.logger.info('Combining individual PDF parts...')