比spire.pdf速度更快:EVO PDF Print Crack
适用于 .NET 的 EVO PDF 打印
EVO PDF Print 可用于任何类型的 .NET 应用程序,以静默打印 PDF 文档而不显示任何打印对话框。它可以集成到任何 .NET 应用程序中,包括 ASP.NET 网站和桌面应用程序,以便为您的应用程序添加 PDF 打印功能。您可以在打印过程中选择打印机、纸张尺寸、方向、页边距、添加水印和图章。
适用于 .NET 的 EVO PDF 打印
EVO PDF Print 可用于任何类型的 .NET 应用程序,无需显示任何打印对话框即可静默打印 PDF 文档。与现有 .NET 应用程序的集成非常容易,无需安装。下载的存档包含 .NET 程序集和演示应用程序。示例文件夹中提供了演示应用程序的完整 C# 源代码。您可以选择打印机,设置纸张大小、方向和边距,以彩色或灰度打印,选择要打印的 PDF 页面范围。
EVO PDF Print 不依赖于 Adobe Reader 或其他第三方工具。
从文件、流或内存缓冲区打印 PDF 文档
静默打印,不显示任何打印对话框
不依赖于 Adobe Reader 或其他第三方工具
允许您选择要用于打印的打印机
允许您选择纸张大小、方向和页边距
打印受密码保护的 PDF 文档
在打印过程中添加水印和图章
仅打印一定范围的 PDF 页面
获取 PDF 文档中的页数
支持 .NET 4.0 框架和更高
版本所有功能的文档和 C# 示例
Code Sample - Print PDF Documents
The code below was taken from the PDF Print demo application available for download in the PDF Print product package. In this sample an instance of the PdfPrint class is constructed and used to silently print a selected PDF document.
private void btnPrintPdf_Click(object sender, EventArgs e)
{
if (pdfFileTextBox.Text.Trim().Equals(String.Empty))
{
MessageBox.Show("Please choose a source PDF file", "Choose PDF file", MessageBoxButtons.OK);
return;
}
// the source pdf file
string pdfFileName = pdfFileTextBox.Text.Trim();
// start page number
int startPageNumber = int.Parse(textBoxStartPage.Text.Trim());
// end page number
// when it is 0 the conversion will continue up to the end of document
int endPageNumber = 0;
if (textBoxEndPage.Text.Trim() != String.Empty)
endPageNumber = int.Parse(textBoxEndPage.Text.Trim());
// create the PDF printer
PdfPrint pdfPrint = new PdfPrint();
// set the license key
pdfPrint.LicenseKey = "oy08LDo/LDwsOiI8LD89Ij0+IjU1NTUsPA==";
// set the document name
pdfPrint.DocumentName = "PDF Silent Printing";
// enable or disable color printing
pdfPrint.DefaultPageSettings.Color = cbPrintColor.Checked;
// set the PDF printing color and resolution
pdfPrint.Color = GetSelectedPrintColor();
pdfPrint.Resolution = int.Parse(textBoxResolution.Text);
// select the printer
string selectedPrinterName = GetSelectedPrinterName();
if (selectedPrinterName != null)
pdfPrint.PrinterSettings.PrinterName = selectedPrinterName;
// set paper size
PaperSize selectedPaperSize = GetSelectedPaperSize();
if (selectedPaperSize != null)
pdfPrint.DefaultPageSettings.PaperSize = selectedPaperSize;
// set paper orientation
pdfPrint.DefaultPageSettings.Landscape = GetSelectedPageOrientation() == "Landscape";
// set paper margins
pdfPrint.DefaultPageSettings.Margins = new Margins((int)(float.Parse(leftMarginTextBox.Text) * 100),
(int)(float.Parse(rightMarginTextBox.Text) * 100),
(int)(float.Parse(topMarginTextBox.Text) * 100),
(int)(float.Parse(bottomMarginTextBox.Text) * 100));
// the demo output directory
string outputDirectory = Path.Combine(Application.StartupPath, @"DemoFiles\Output");
Cursor = Cursors.WaitCursor;
try
{
pdfPrint.Print(pdfFileName, startPageNumber, endPageNumber);
}
catch (Exception ex)
{
// The conversion failed
MessageBox.Show(String.Format("An error occurred. {0}", ex.Message), "Error");
return;
}
finally
{
Cursor = Cursors.Arrow;
}
MessageBox.Show("Print Completed", "Print Completed", MessageBoxButtons.OK);
}
相关文章
- 1600页!卷S人的Java《八股文》PDF手册~
- XPS文件转换成PDF[通俗易懂]
- PDF Protector for Mac(pdf加密与解密工具)
- wda7332re 评测_TP-LINK(普联)AC2100无线扩展器TL-WDA7332RE说明书下载地址!tplink TL-WDA7332RE中继器PDF说明书!-家用路由网…
- 怎么用浏览器在线打开pdf文件_PDF文件怎么编辑
- Adobe Acrobat Pro2021 pdf编辑器全版本下载
- Acrobat Pro DC for Mac(PDF编辑器)中文直装版
- Adobe Acrobat Pro DC 2019 软件安装步骤 pdf编辑器全版本下载
- 关于PDF神器,也许是史上最全的整理pdf编辑器全版本下载
- PDF Expert for mac(pdf编辑工具)
- Linux运维实战PDF手册下载(linux运维pdf下载)
- 文件分布式存储Redis实现PDF文件的分布式存储(redis实现pdf)
- Linux宝典:PDF版本(linux宝典pdf)
- PDF Shaper v8.3 最新中文专业绿色版
- MySQL权威指南:PDF版本(mysql权威指南pdf)
- Linux命令行指南:全面解读PDF版(linux命令行大全pdf)
- Linux网络编程:从基础到深入PDF指南(linux网络编程pdf)
- 在 Linux 上使用PDF图片的技巧.(pdf图片linux)
- 探索Linux网络:最全面的PDF资源汇总(linux网络pdf)
- MySQL手册PDF版下载及使用指南(mysql手册pdf)
- Linux实战:入门到精通PDF版(linux实战pdf)
- Linux快速转换PDF,让您轻松实现高效文档转换(linux转pdf)
- MySQL下载PDF指南(mysql下载pdf)
- Oracle终极手册完全掌握PDF书籍(oracle pdf书籍)
- Oracle 8流程图及其在技术文档中的应用(oracle8 pdf)