Created attachment 90794
fix center bug when using crop box as page size
I had a look at why the page centering was not working correctly with launch_leaflet-pdftopdf.pdf. The reason is the different media box and crop box sizes. If the -nocrop option is not used the crop box is assumed to be the page size. But the centering code was still trying center the page within the media box size.
Created attachment 90794
fix center bug when using crop box as page size
I had a look at why the page centering was not working correctly with launch_ leaflet- pdftopdf. pdf. The reason is the different media box and crop box sizes. If the -nocrop option is not used the crop box is assumed to be the page size. But the centering code was still trying center the page within the media box size.