通用文档转换器Universal Document Converter
Universal Document Converter,中文可译作通用文档转换器,是任何类型的文件转换成Adobe pdf文件或图形文件的最完整解决方案。Universal Document Converter采用虚拟打印创新技术,可导出Microsoft Word文档,Excel表格,PowerPoint演示文稿,或Autodesk AutoCAD图纸作为桌面打印机打印格式。Universal Document Converter v6功能介绍
可保存Microsoft Word文档为: PDF, JPEG, TIFF, PNG
转换Adobe PDF文档为: JPG, TIFF, PNG
转换Excel文档为: PDF, JPG, TIFF
转换Microsoft PowerPoint文档为: PDF, JPEG, TIFF
保存Microsoft Outlook信息为: PDF, JPEG, TIFF
转换Autodesk AutoCAD drawing为: PDF, JPEG, TIFF
保存Microsoft Visio文档为: PDF, JPEG, TIFF
保存网页为: PDF, JPEG, TIFF
合并或者拆分PDF文档
转换DjVu、CHM为PDF, JPEG, TIFF
转换 JPEG为PDF or TIFF
转换Microsoft Access报告为 PDF, JPEG, TIFF
转换HTML文档为 PDF, JPEG, TIFF
保存QuarkXPress文档为PDF, JPEG, TIFF.
除此之外,Universal Document Converter v6还是超强的虚拟打印机工具,可为文档添加图片或者文字水印,文档加密,支持高分辨率导出,自动裁剪和调整大小等等。
下面以word文档为例。简单示例如下
**指定你的word文档(包含完整路径)
strFilePath="g:\1.docx"
objUDC = CREATEOBJECT("UDC.APIWrapper")
itfPrinter = objUDC.Printers("Universal Document Converter")
itfProfile = itfPrinter.Profile
itfProfile.PageSetup.ResolutionX = 300
itfProfile.PageSetup.ResolutionY = 300
itfProfile.FileFormat.ActualFormat = 2 &&FMT_JPG
itfProfile.FileFormat.PDF.ColorSpace = 24 &&CS_TRUECOLOR
itfProfile.FileFormat.PDF.Multipage = 2 &&MM_MULTI
itfProfile.OutputLocation.Mode = 1 &&LM_PREDEFINED
itfProfile.OutputLocation.FolderPath = "C:\Out"
itfProfile.OutputLocation.FileName = "&[DocName(0)] -- &[Date(0)] -- &[Time(0)].&[ImageType]"
itfProfile.OutputLocation.OverwriteExistingFile = .F.
WordApp = CreateObject("Word.Application")
WordDoc = WordApp.Documents.Open(strFilePath, , 1)
WordApp.ActivePrinter = "Universal Document Converter"
WordApp.PrintOut()
WordDoc.Close
WordDoc = null
WordApp.Quit
WordApp = Null