Quote:
Originally Posted by ldolse
I've been thinking more about how to programmatically replace/insert margins. This is probably a very reasonable thing to do, at least when considering users of older Adobe renderers that may want to create a slightly larger right margin. Aside from the matter of successfully injecting them, which is solvable, this brings up other questions for Quality Check, as one would want to be able to exclude whatever margin Modify Epub was configured to insert from a search...
|
In terms of thee replace/insert. As you pointed out blindly replacing the 'Page declaration with a new one containing just margins is a no-no. Though could you not take the old one, parse it to split by ; and then strip out just the margin related elements to insert your own. Then replace the whole @page element back in the file? I'm asking out of ignorance (which is why I didn't take on this feature myself!).
I don't have an answer for Quality Check however. Good luck...