I have a large PDF document that includes lot of complex figures. To build these figures I used the viewport feature of the \includeGraphics command from Graphics package extensively. I am aware that cropping images like this does not actually crop them and only asks the renderer to display them as cropped.
My viewports only cover rather small regions of the image. I need to reduce the size of the PDF for online publication. Are there any post processing tricks that can be applied to the PDF to flatten/recrop the images via the renderer to reduce the size? Ideally without removing vector graphics or reducing image quality.
I am aware this feature is not in Latex but it is a very important post processing optimization for the Latex viewport feature if such a workflow exists.