I'm trying to write an script (javascript) to export an group to an image. This works but the group has pageitems that extend beyond the page size. The problem is that when exporting the group the clipping is not there anymore, so the exported image is bigger then the page.
I searched a lot, but could not find anything on clipping a group to the page on export.
I hope someone can help me out.