First try: nothing selected, export with crop
File -> Export As -> PDF -> Dialog: check "Crop" -> Export -> Save
Second try: select boxes in diagram, export selected with crop
File -> Export As -> PDF -> Dialog: check "Selection only" + "Crop" -> Save