use standalone package and pdfcrop instead of miminal package with explicit pages sizes