Printing varying layout formats

When printing multiple layouts/pages with different page sizes (e. g. A4 and A3) to a PDF, rhino uses one fixed page size, creating either cropped layouts or oversized layouts with a white border.
Is there any workaround or script to solve this?

When having a series of layouts it currently requires a lot of pdf „postediting“.

Any help is very much appreciated.