I'm currently trying to get rid of page numbers from a book and the page number text is the opposite color of the margins (eg: black text over white; white text over black). The GUI version works most of the time, but I want to see if it can be improved.
In the CLI version, I see --nocutpagenumbers, which is to disable the cutting of page numbers, but I don't see settings to tweak the page number removal process. What exactly is happening when it tries?
One idea is to determine the margin color, fill in the margin with the opposite color, determine the margin trim area based on the new margin color, and then apply that new trim area to the original image. The idea is to fill the margin with a similar color to the page number text, which will make it easier for the margin trimming to ignore the page number text. There is a danger for the fill to enter the content area if the layout doesn't use panels, but a workaround is to limit the margin filling to a specified area, like x pixels from the bottom.
|