如何使用activePDF Toolkit将图片转换为PDF.pdf

如何使用activePDF Toolkit将图片转换为PDF.pdf

  1. 1、本文档共3页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
如何使用activePDF Toolkit将图片转换为PDF

来源:慧都控件网 如何使用activePDF Toolkit将图片转换为PDF 作为2012读者选择奖PDF和打印/预览类的金奖得主,activePDF的主打产品activePDF Toolkit 能够通过简单的代码设置,实现图片的转换功能,将图片转换为PDF格式。 代码示例如下: // Copyright (c) 2013 activePDF, Inc. // Example created 01/09/13 // Make sure to add the activePDF product .NET DLL(s) to your application. // .NET DLL(s) are typically found in the products bin folder. class Examples { public void main() { string strPath; int intJPEGToPDF; int intTIFFToPDF; int intImageToPDF; strPath = AppDomain.CurrentDomain.BaseDirectory; // Instantiate Object APToolkitNET.Toolkit oTK = new APToolkitNET.Toolkit(); // Toolkit can directly convert an image to a PDF file 慧都咨询——为您提供贴近企业应用的方案,帮助您获得成功! 1 // If the image is a JPEG file use JPEGToPDF intJPEGToPDF = oTK.JPEGToPDF(strPath + IMG.jpg, strPath + JPEG.pdf); if (intJPEGToPDF 1) { ErrorHandler(JPEGToPDF, intJPEGToPDF); } // If the image file is a TIFF file use TIFFToPDF intTIFFToPDF = oTK.TIFFToPDF(strPath + IMG.tif, strPath + TIFF.pdf); if (intTIFFToPDF != 1) { ErrorHandler(TIFFToPDF, intTIFFToPDF); } // Any supported image file can be converted to PDF with ImageToPDF intImageToPDF = oTK.ImageToPDF(strPath + IMG.jpg, strPath + IMG.pdf); if (intImageToPDF != 1) { ErrorHandler(ImageToPDF, intImageToPDF); } // Release Object oTK = null; // Process Complete 慧都咨询——为您提供贴近企业应用的方案,帮助您获得成功! 2 System.Diagnostics.Debug.WriteLine(Done!); } // Error Handling public static void ErrorHandler(string strMethod,

文档评论(0)

yan698698 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档