I have a situation where I have 20 element Ids that I need to capture screenshots of in a specific size (400x400) like a detail view. The current viewer I am using has different dimensions, so I'm wondering if there is a way to achieve this and return the viewer back to its original state?
I attempted the following steps:
- Save the current view
- Adjust the viewer dimensions
- Use fitToView(elementIds) - I tried adjusting the camera manually, but I'm not very familiar with it. I also experimented with the fitToView function, but sometimes the elements end up out of the view.
- Take a screenshot at 400x400
- Restore the original view
I'm encountering some challenges with this process, so any assistance would be greatly appreciated.