How to find the minimal box that contains all content of a page with pdfrw?
I looked at page.MediaBox and page.CropBox but it does not help.
One solution would be to temporarily render the page as a bitmap/image A, and then I could compute the maximal x_0 value such that everything on the left of x_0 is white background.
Is it possible to do this with pdfrw? If not, which library should be used for such things?
How to find the minimal box that contains all content of a page with
pdfrw
?I looked at page.MediaBox and page.CropBox but it does not help.
One solution would be to temporarily render the page as a bitmap/image
A
, and then I could compute the maximalx_0
value such that everything on the left ofx_0
is white background.Is it possible to do this with pdfrw? If not, which library should be used for such things?