I finally figured out (through trial & error) what to do to properly use BuildFromWordDoc using the Builder interface of the PubX.dll OLE library as explained here. Even though, you can convert .doc directly into .imp (even in batches) using the BulkConvert program that also "ships" with the eBook Publisher software, this perl script (Word2imp.pl) now allows pre- & post-processing changes to be made using perl scripts!
WORD2IMPA simple batch file called Word2IMP.bat demonstrates how .IMP ebooks can be created using the workhorse routine 'Word2imp.pl'. The 'Word2imp.pl' perl script takes as input a single filename of the .rtf, .doc or .html to convert to .imp. If the filename contain spaces, then quotes need to surround the parameter!
After executing the sample batch file, the .IMP ebook is produced along with the .opf project file used internally. However, since temporary files are used to build the .imp, the source .html file created gets deleted at the end and is no longer available.
A work-around is to create a .oeb ebook and then 'unpack' it to see that intermediary .html file!
Then and only then can the ebook be loaded into eBook Publisher for further processing, if necessary.
EDIT: For a revised Word2imp.pl Perl Script that produces a better .doc to .imp conversion (set CSS=1
or better still use CSS=2)) as detailed in
post #41 below.