Save Safari website as PDF (with syncing cookies). Swift script