How can I find the space around a PDF page that is unused (white) with pdfrw in order to be able to trim it? Maybe if I can go through all the objects and find the closest coordinates to the border of the page...
pdfrw - How to trim white space around the page
By : Magen
This video can help you solving your question :)