Junior Member
Posts: 4
Karma: 10
Join Date: Jun 2016
Device: none
Bulk epub to docx margins settings ignored
Hi,
I am trying to do a bulk conversion from EPUB to DOCX. Conversion works fine but margins new settings (10p) are ignored and the defaults (72p) are used.
When doing this individually it works fine and I am getting the new page margins.
This is happening with any epub files to be converted, I have tried with 200 epub files, so the problem is not related to the source file (as if I use individually conversion anyone of them works fine with new margins).
Here is the log from one of the conversion:
Spoiler :
Convert book 4 of 6 (Rugaciunea Mamei)
Resolved conversion options
calibre version: 2.58.0
{'asciiize': False,
'author_sort': None,
'authors': None,
'base_font_size': 0.0,
'book_producer': None,
'change_justification': u'justify',
'chapter': u"//*[((name()='h1' or name()='h2') and re:test(., '\\s*((chapter|book|section|part)\\s+)|((prolog|pr ologue|epilogue)(\\s+|$))', 'i')) or @class = 'chapter']",
'chapter_mark': u'pagebreak',
'comments': None,
'cover': u'C:\\Users\\mario\\AppData\\Local\\Temp\\calibre_ nmrpmv\\vw1v2z.jpeg',
'debug_pipeline': None,
'dehyphenate': True,
'delete_blank_paragraphs': True,
'disable_font_rescaling': False,
'docx_custom_page_size': None,
'docx_no_cover': True,
'docx_no_toc': True,
'docx_page_size': u'a5',
'duplicate_links_in_toc': False,
'embed_all_fonts': False,
'embed_font_family': u'Bookman Old Style',
'enable_heuristics': False,
'expand_css': False,
'extra_css': None,
'extract_to': None,
'filter_css': u'margin-right,margin-top,,margin-left,margin,margin-bottom',
'fix_indents': True,
'font_size_mapping': u'12',
'format_scene_breaks': True,
'html_unwrap_factor': 0.4,
'input_encoding': None,
'input_profile': <calibre.customize.profiles.InputProfile object at 0x0000000004FB3588>,
'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': 72.0,
'margin_left': 72.0,
'margin_right': 72.0,
'margin_top': 72.0,
'markup_chapter_headings': True,
'max_toc_links': 0,
'minimum_line_height': 120.0,
'no_chapters_in_toc': False,
'no_inline_navbars': False,
'output_profile': <calibre.customize.profiles.GenericEink object at 0x0000000004FB3908>,
'page_breaks_before': '/',
'prefer_metadata_cover': False,
'pretty_print': False,
'pubdate': None,
'publisher': None,
'rating': None,
'read_metadata_from_opf': u'C:\\Users\\mario\\AppData\\Local\\Temp\\calibre_ nmrpmv\\azyigs.opf',
'remove_fake_margins': False,
'remove_first_image': False,
'remove_paragraph_spacing': False,
'remove_paragraph_spacing_indent_size': 1.5,
'renumber_headings': True,
'replace_scene_breaks': u'',
'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': 0,
'transform_css_rules': '[]',
'unsmarten_punctuation': False,
'unwrap_lines': True,
'use_auto_toc': False,
'verbose': 2}
InputFormatPlugin: EPUB Input running
on C:\Users\mario\AppData\Local\Temp\calibre_nmrpmv\3 steyt.epub
Parsing all content...
Parsing Ops/style.css ...
Parsing Ops/001.html ...
Reading TOC from NCX...
Merging user specified metadata...
Detecting structure...
Flattening CSS and remapping font sizes...
Filtering CSS properties: , margin, margin-bottom, margin-right, margin-left, margin-top
Embedding font: Bookman Old Style
Source base font size is 13.08000pt
Cleaning up manifest...
Trimming unused files from manifest...
Creating DOCX Output...
Rasterizing SVG images...
Processing Ops/001.html
0 Text Styles 3 Combined styles
DOCX output written to C:\Users\mario\AppData\Local\Temp\calibre_nmrpmv\0 ccdwp.docx
I have attached the epub file.
Changes from default:
text: justified
font family: bookman old style
font size: 12
output profile: generic e-ink
input profile: default input profile
margins: 10p
DOCX options: paper size A5
I have here also the log for indidually conversion where 10p margins are all right:
Convert book 1 of 1 (Rugaciunea Mamei)
Resolved conversion options
calibre version: 2.58.0
{'asciiize': False,
'author_sort': None,
'authors': None,
'base_font_size': 0.0,
'book_producer': None,
'change_justification': u'justify',
'chapter': u"//*[((name()='h1' or name()='h2') and re:test(., '\\s*((chapter|book|section|part)\\s+)|((prolog|pr ologue|epilogue)(\\s+|$))', 'i')) or @class = 'chapter']",
'chapter_mark': u'pagebreak',
'comments': None,
'cover': u'C:\\Users\\mario\\AppData\\Local\\Temp\\calibre_ nmrpmv\\9tgupo.jpeg',
'debug_pipeline': None,
'dehyphenate': True,
'delete_blank_paragraphs': True,
'disable_font_rescaling': False,
'docx_custom_page_size': None,
'docx_no_cover': True,
'docx_no_toc': True,
'docx_page_size': u'a5',
'duplicate_links_in_toc': False,
'embed_all_fonts': False,
'embed_font_family': u'Bookman Old Style',
'enable_heuristics': False,
'expand_css': False,
'extra_css': None,
'extract_to': None,
'filter_css': u'margin-right,margin-top,,margin-left,margin,margin-bottom',
'fix_indents': True,
'font_size_mapping': u'12',
'format_scene_breaks': True,
'html_unwrap_factor': 0.4,
'input_encoding': None,
'input_profile': <calibre.customize.profiles.InputProfile object at 0x0000000004FDB588>,
'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': 10.0,
'margin_left': 10.0,
'margin_right': 10.0,
'margin_top': 10.0,
'markup_chapter_headings': True,
'max_toc_links': 0,
'minimum_line_height': 120.0,
'no_chapters_in_toc': False,
'no_inline_navbars': False,
'output_profile': <calibre.customize.profiles.GenericEink object at 0x0000000004FDB908>,
'page_breaks_before': u"//*[name()='h1' or name()='h2']",
'prefer_metadata_cover': False,
'pretty_print': False,
'pubdate': None,
'publisher': None,
'rating': None,
'read_metadata_from_opf': u'C:\\Users\\mario\\AppData\\Local\\Temp\\calibre_ nmrpmv\\e7nmd9.opf',
'remove_fake_margins': False,
'remove_first_image': False,
'remove_paragraph_spacing': False,
'remove_paragraph_spacing_indent_size': 1.5,
'renumber_headings': True,
'replace_scene_breaks': u'',
'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': 0,
'transform_css_rules': '[]',
'unsmarten_punctuation': False,
'unwrap_lines': True,
'use_auto_toc': False,
'verbose': 2}
InputFormatPlugin: EPUB Input running
on C:\Users\mario\AppData\Local\Temp\calibre_nmrpmv\t r0pcm.epub
Parsing all content...
Parsing Ops/001.html ...
Parsing Ops/style.css ...
Reading TOC from NCX...
Merging user specified metadata...
Detecting structure...
Flattening CSS and remapping font sizes...
Filtering CSS properties: , margin-right, margin-top, margin-left, margin, margin-bottom
Embedding font: Bookman Old Style
Source base font size is 13.08000pt
Cleaning up manifest...
Trimming unused files from manifest...
Creating DOCX Output...
Rasterizing SVG images...
Processing Ops/001.html
0 Text Styles 3 Combined styles
DOCX output written to C:\Users\mario\AppData\Local\Temp\calibre_nmrpmv\w ylqi0.docx
Thank you,
Mario
Last edited by BetterRed; 06-03-2016 at 05:50 AM .
Reason: wrap log in spoiler tags