$mech->('pdfcreate',["script.pdf", 'pdfcreate', ], # 1); ['Content-Type' => 'application/pdf'], );