Contents | Start | End | Previous: KB0091: Clicking on a link in a Kindle book appears to go to the wrong location | Next: KB0093: Why don't imported list bullets show up?


KB0092: Executing custom commands before and after compilation

You can use the configuration properties Pre-compile command and Post-compile command to have Jutoh execute external commands before and after compiling an ebook.

For example, you might use the KindleStrip program to reduce the size of your Kindle file for your own use (don't upload a stripped file to Amazon!)

Your post-compile command might look like this:

c:\python27\python.exe c:\apps\kindlestrip1.35\kindlestrip.py "%FOLDER%\%FILENAME%.%EXT%" "%FOLDER%\%FILENAME%_new.%EXT%"

Note that you should not nest double-quotation marks. You can use %FOLDER%, %FILENAME% and %EXT% variables - these are components of the final ebook file name (as specified in the Book file name and Book folder configuration properties). You can also specify %APPDIR%, the folder in which the Jutoh application is executing.


Contents | Start | End | Previous: KB0091: Clicking on a link in a Kindle book appears to go to the wrong location | Next: KB0093: Why don't imported list bullets show up?