Quote:
Originally Posted by BetterRed
Into a blank document which has your preferred settings i.e. "Do not compress images in file" is checked, try using Word->Insert->Object>Text File on the DOCX that calibre creates.
LO Writer probably has something similar.
Not Tested
BR
|
That method does work. In trying to automate it with my batch files and Word macros, I would need to account for the varying page sizes.
I seem to have asked this question about eight years ago. Whoops!
Anyway, for the past eight years, I have been modifying a copy of the code and linking to it. Not many changes are required. Six lines of code in one file and one line of code in another file (plus one line for __init__.py to print a message indicating I am using a code-tweaked version). This code is needed because Calibre does not include the standard settings.xml file within the created DOCX file structure.
My main issue is every time there is a new version of Calibre released, I have to download and update the code. So, while I can get Calibre updated that was installed into Windows regularly, I'm still linked to an older version of Calibre until I re-download the matching code, make the appropriate changes, and adjust the environment variable in Windows.
Not the end of the world. This would be easier if I could do this in a Word macro. Outside of a brute-force method of inserting the document into a blank document, I don't see how to do this in a macro. I toyed with the idea of modifying the XML files within the DOCX, but automating it seems to be beyond my pay grade.
Thanks for the help.