How can I make InDesign render a region of a page, as it would be rendered when exporting the whole file?
I know I can render a PageItem
using the exportFile
function, but this will ignore any other PageItem
s sharing the same region.
My current solution is to make a new document the size of the region of interest, with a copy of each PageItem
whose coordinates fall into that region. It’s very inelegant, and it seems it cannot be done without the user seeing windows meaningless to them come and go.
Another approach I can think of is to export the whole spread containing the region, then crop the resulting file using something like ImageMagick. But I’d still prefer to be able to render only the region I need, if possible.