Word margin issue when converting to CHM

Word-2-CHM Converter

Word margin issue when converting to CHM


MasterCephus 02-18-2009, 11:14 AM
I have a pretty sizable word document that I am creating a CHM file using the 2008 pro version.

I have a couple of pages that are out of the margins (text boxes are out of the margin) and the document prints fine, but when I try to convert it to a CHM file, the page gets cut off from the margin. 

Is this a bug or a desired effect?  I really can't have this in my CHM file.

Any help?

Re: Word margin issue when converting to CHM


David 02-18-2009, 7:18 PM
Is the layout of the image floating or not?
If yes, it will be displayed incorrectly after convert into CHM.
Please change the layout to "In Line with Text" and try again.

Re: Word margin issue when converting to CHM


Kjell 12-23-2009, 1:23 AM
It does not work with "in line with text".

On the other hand does the other layout options in Word work, but then the following text appears to the right of the picture in a very ugly way (no newlines prevents this)..

The problem is this:
* I have a large picture.
* In order to view most of the picture, the margin of the picture is to the left of normal text.

Word-2-chm crops the part of the picture that is left of the text margin.

I use Word-2-chm 2009.2.1105.2256 Pro edition.

Re: Word margin issue when converting to CHM


Peter 12-26-2009, 6:58 PM
There are many different between Word and HTML.

Here is the solution:
1. Enable the HTML Replace add-in.
2. In the HTML Replace add-in:
    a. Enable the Use Regex option
    b. In the Find HTML textbox: style='[^'>]*position:\s*relative[^'>]*'
    c. Leave the Replace With textbox empty.


Re: Word margin issue when converting to CHM


Kjell 01-06-2010, 10:34 PM
For the record: the solution works. Thanks!

Powered by Community Server, by Telligent Systems