Hi,
I'm getting an Error when converting my EPUB to PDF. It is DRM protected, have DeDRM installed and believe I used it correctly. The conversion looks like its going well, gets up to 70%, then just gives a generic error saying the conversion cannot be completed. Here is the log
Spoiler:
calibre, version 5.27.0 (win32, embedded-python: True)
Conversion error: Failed: Convert book 1 of 1 (Photographic Atlas of Anatomy)
Convert book 1 of 1 (Photographic Atlas of Anatomy)
DeDRM v7.2.1: Trying to decrypt lm9xa40j.epub
DeDRM v7.2.1: Verifying zip archive integrity
DeDRM v7.2.1: “lm9xa40j.epub” is neither an Adobe Adept nor a Barnes & Noble encrypted ePub
Conversion options changed from defaults:
debug_pipeline: 'C:\\Users\\Daniel\\Desktop\\DEBUG Folder'
pdf_sans_family: 'MS Shell Dlg 2'
read_metadata_from_opf: 'C:\\Users\\Daniel\\AppData\\Local\\Temp\\calibre_ 8g2prh4v\\7tzi_e1f.opf'
output_profile: 'generic_eink'
cover: 'C:\\Users\\Daniel\\AppData\\Local\\Temp\\calibre_ 8g2prh4v\\ay8jkri3.jpeg'
pdf_serif_family: 'MS Shell Dlg 2'
verbose: 2
Resolved conversion options
calibre version: 5.27.0
{'asciiize': False,
'author_sort': None,
'authors': None,
'base_font_size': 0.0,
'book_producer': None,
'change_justification': 'original',
'chapter': "//*[((name()='h1' or name()='h2') and re:test(., "
"'\\s*((chapter|book|section|part)\\s+)|((prolog|p rologue|epilogue)(\\s+|$))', "
"'i')) or @class = 'chapter']",
'chapter_mark': 'pagebreak',
'comments': None,
'cover': 'C:\\Users\\Daniel\\AppData\\Local\\Temp\\calibre_ 8g2prh4v\\ay8jkri3.jpeg',
'custom_size': None,
'debug_pipeline': 'C:\\Users\\Daniel\\Desktop\\DEBUG Folder',
'dehyphenate': True,
'delete_blank_paragraphs': True,
'disable_font_rescaling': False,
'duplicate_links_in_toc': False,
'embed_all_fonts': False,
'embed_font_family': None,
'enable_heuristics': False,
'expand_css': False,
'extra_css': None,
'filter_css': '',
'fix_indents': True,
'font_size_mapping': None,
'format_scene_breaks': True,
'html_unwrap_factor': 0.4,
'input_encoding': None,
'input_profile': <calibre.customize.profiles.InputProfile object at 0x07956AD8>,
'insert_blank_line': False,
'insert_blank_line_size': 0.5,
'insert_metadata': False,
'isbn': None,
'italicize_common_cases': True,
'keep_ligatures': False,
'language': None,
'level1_toc': None,
'level2_toc': None,
'level3_toc': None,
'line_height': 0.0,
'linearize_tables': False,
'margin_bottom': 5.0,
'margin_left': 5.0,
'margin_right': 5.0,
'margin_top': 5.0,
'markup_chapter_headings': True,
'max_toc_links': 50,
'minimum_line_height': 120.0,
'no_chapters_in_toc': False,
'no_inline_navbars': False,
'output_profile': <calibre.customize.profiles.GenericEink object at 0x07956C58>,
'page_breaks_before': '/',
'paper_size': 'letter',
'pdf_add_toc': False,
'pdf_default_font_size': 20,
'pdf_footer_template': None,
'pdf_header_template': None,
'pdf_hyphenate': False,
'pdf_mark_links': False,
'pdf_mono_family': 'Courier',
'pdf_mono_font_size': 16,
'pdf_odd_even_offset': 0.0,
'pdf_page_margin_bottom': 72.0,
'pdf_page_margin_left': 72.0,
'pdf_page_margin_right': 72.0,
'pdf_page_margin_top': 72.0,
'pdf_page_number_map': None,
'pdf_page_numbers': False,
'pdf_sans_family': 'MS Shell Dlg 2',
'pdf_serif_family': 'MS Shell Dlg 2',
'pdf_standard_font': 'serif',
'pdf_use_document_margins': False,
'prefer_metadata_cover': False,
'preserve_cover_aspect_ratio': False,
'pretty_print': False,
'pubdate': None,
'publisher': None,
'rating': None,
'read_metadata_from_opf': 'C:\\Users\\Daniel\\AppData\\Local\\Temp\\calibre_ 8g2prh4v\\7tzi_e1f.opf',
'remove_fake_margins': True,
'remove_first_image': False,
'remove_paragraph_spacing': False,
'remove_paragraph_spacing_indent_size': 1.5,
'renumber_headings': True,
'replace_scene_breaks': '',
'search_replace': '[]',
'series': None,
'series_index': None,
'smarten_punctuation': False,
'sr1_replace': None,
'sr1_search': None,
'sr2_replace': None,
'sr2_search': None,
'sr3_replace': None,
'sr3_search': None,
'start_reading_at': None,
'subset_embedded_fonts': False,
'tags': None,
'timestamp': None,
'title': None,
'title_sort': None,
'toc_filter': None,
'toc_threshold': 6,
'toc_title': None,
'transform_css_rules': '[]',
'uncompressed_pdf': False,
'unit': 'inch',
'unsmarten_punctuation': False,
'unwrap_lines': True,
'use_auto_toc': False,
'use_profile_size': False,
'verbose': 2}
Running file type plugin DeDRM failed with traceback:
Traceback (most recent call last):
File "calibre\customize\ui.py", line 176, in _run_filetype_plugins
File "calibre_plugins.dedrm.__init__", line 644, in run
File "calibre_plugins.dedrm.__init__", line 420, in ePubDecrypt
calibre_plugins.dedrm.DeDRMError: DeDRM v7.2.1: Couldn't decrypt after 46.4 seconds. DRM free perhaps?
DeDRM v7.2.1: Trying to decrypt lm9xa40j.epub
DeDRM v7.2.1: Verifying zip archive integrity
DeDRM v7.2.1: “lm9xa40j.epub” is neither an Adobe Adept nor a Barnes & Noble encrypted ePub
Running file type plugin DeDRM failed with traceback:
Traceback (most recent call last):
File "calibre\customize\ui.py", line 176, in _run_filetype_plugins
File "calibre_plugins.dedrm.__init__", line 644, in run
File "calibre_plugins.dedrm.__init__", line 420, in ePubDecrypt
calibre_plugins.dedrm.DeDRMError: DeDRM v7.2.1: Couldn't decrypt after 43.9 seconds. DRM free perhaps?
InputFormatPlugin: EPUB Input running
on C:\Users\Daniel\AppData\Local\Temp\calibre_8g2prh4 v\lm9xa40j.epub
Found HTML cover OEBPS/xhtml/00_cover.xhtml
Input debug saved to: C:\Users\Daniel\Desktop\DEBUG Folder\input
Parsing all content...
Parsing OEBPS/xhtml/00_cover.xhtml ...
Parsing OEBPS/xhtml/01_fm01.xhtml ...
Parsing OEBPS/nav.xhtml ...
Parsing OEBPS/xhtml/02_title.xhtml ...
Parsing OEBPS/xhtml/03_copyright.xhtml ...
Parsing OEBPS/xhtml/04_preface.xhtml ...
Parsing OEBPS/xhtml/05_contents.xhtml ...
Parsing OEBPS/xhtml/06_chapter01.xhtml ...
Parsing OEBPS/xhtml/07_chapter02.xhtml ...
Parsing OEBPS/xhtml/08_chapter03.xhtml ...
Parsing OEBPS/xhtml/09_chapter04.xhtml ...
Parsing OEBPS/xhtml/10_chapter05.xhtml ...
Parsing OEBPS/xhtml/11_chapter06.xhtml ...
Parsing OEBPS/xhtml/12_chapter07.xhtml ...
Parsing OEBPS/xhtml/13_chapter08.xhtml ...
Parsing OEBPS/xhtml/14_chapter09.xhtml ...
Parsing OEBPS/xhtml/15_bm01.xhtml ...
Parsing OEBPS/xhtml/16_index.xhtml ...
Parsing OEBPS/styles/epub.css ...
Referenced file 'js/kobo.js' not found
Reading TOC from NCX...
Parsed HTML written to: C:\Users\Daniel\Desktop\DEBUG Folder\parsed
Merging user specified metadata...
Detecting structure...
Structured HTML written to: C:\Users\Daniel\Desktop\DEBUG Folder\structure
Flattening CSS and remapping font sizes...
Source base font size is 10.80000pt
Removing fake margins...
Found 90 items of level: div_1
Found 678 items of level: p_2
Found 21627 items of level: p_1
Found 55 items of level: p_4
div_1 left margin stats: Counter({'0': 21, '3em': 1})
div_1 right margin stats: Counter({'0': 22})
Negative text indent detected at level p_2, ignoring this level
Negative text indent detected at level p_1, ignoring this level
p_4 left margin stats: Counter({'1.5em': 41, '0': 14})
p_4 right margin stats: Counter({'0': 55})
Cleaning up manifest...
Trimming unused files from manifest...
Trimming 'OEBPS/fonts/TimesNewRoman.ttf' from manifest
Trimming 'OEBPS/toc.ncx' from manifest
Trimming 'OEBPS/xhtml/00_cover.xhtml' from manifest
Trimming 'OEBPS/nav.xhtml' from manifest
Processed HTML written to: C:\Users\Daniel\Desktop\DEBUG Folder\processed
Creating PDF Output...
Converting input as a text based book...
Thanks for your help,
Dan
Last edited by theducks; 09-19-2021 at 10:58 AM.
Reason: spoilered
Looking at your posted log, DeDRM makes it pretty clear that it could not remove DRM from this epub.
Quote:
DeDRM v7.2.1: Trying to decrypt lm9xa40j.epub
DeDRM v7.2.1: Verifying zip archive integrity
DeDRM v7.2.1: “lm9xa40j.epub” is neither an Adobe Adept nor a Barnes & Noble encrypted ePub
I tend to suspect that since this is a rather expensive textbook, that the epub version may be using Adobe's hardened DRM which DeDRM will not remove.
I'm a bit surprised since I was under the impression that DeDRM only removed DRM when an ebook was imported into calibre and not as part of the conversion pipeline.