private void button2_Click(object sender, EventArgs e){Spire.Pdf.PdfDocument pdfdocument = new Spire.Pdf.PdfDocument();pdfdocument.LoadFromFile(url);pdfdocument.PrintSettings.PrinterName = dyj;//打印机名字pdfdocument.PrintSettings.Copies = 1;//指定打印的次数pdfdocument.PrintSettings.Collate = true; //是否被整理pdfdocument.PrintSettings.SetPaperMargins(0,0,0,0);pdfdocument.PrintSettings.PaperSize = new PaperSize("Letter", 3000, 1500);//纸张的大小//pdfdocument.PrintSettings.PaperSize = new PaperSize();//纸张的大小pdfdocument.Print();pdfdocument.Dispose();}