I wanted to have the ability to pull the pdf bounds of the page before converting it over into a png. Sometimes the pages are quite large, depending on how they are generated. The bounds give the ability to guess a suitable dpi before doing the heavy work of converting it over into an image.
I also though about creating another struct for Page since mupdf has its own struct we could pull more methods from but I thought this was the simplest for now since we didn't have to worry about sharing locks.
I wanted to have the ability to pull the pdf bounds of the page before converting it over into a png. Sometimes the pages are quite large, depending on how they are generated. The bounds give the ability to guess a suitable dpi before doing the heavy work of converting it over into an image.
I also though about creating another struct for
Page
since mupdf has its own struct we could pull more methods from but I thought this was the simplest for now since we didn't have to worry about sharing locks.