Office2pdf
convert office file to pdf document
Install / Use
/learn @yunfong/Office2pdfREADME
Office2PDF
This program is primarily designed for converting Office files into PDF format.
Programming Language Used: C#
Dependencies: .Net Framework 3.5, MS Office 2007 SP2 or higher
The program supports the conversion of various file types including Word to PDF, Excel to PDF, PowerPoint to PDF, Text (txt) to PDF, HTML to PDF, and more. It is compatible with files produced by both MS Office and WPS Office for the aforementioned conversions.
The Office2PDF program consists of two main components: one part is the invocation of the installed Office COM components, and the other part is an executable tool (exe).
Upon compilation, Office2PDF.dll and a command-line executable file (PDFUtil.exe) are generated. Office2PDF.dll is used to convert the file specified by the input parameters into a PDF format.
Usage: To convert a file, use the following command in the terminal or command prompt:
PDFUtil.exe [path_to_your_office_file] [path_to_target_pdf]
For example:
PDFUtil.exe d:\my\office.doc d:\my\targetoffice.pdf
This command will convert the Office document located at d:\my\office.doc to a PDF file saved at d:\my\targetoffice.pdf.
Office2PDF
本程序主要用于将Office文件转换为PDF格式。
使用编程语言: C#
依赖环境: .Net Framework 3.5,MS Office 2007 SP2或更高版本
该程序支持多种文件类型的转换,包括Word转PDF、Excel转PDF、PowerPoint转PDF、文本(txt)转PDF、HTML转PDF等。它兼容由MS Office和WPS Office生成的上述文件类型的转换。
Office2PDF程序由两个主要部分组成:一部分是调用已安装的Office COM组件;另一部分是一个可执行工具(exe)。
编译后,将生成Office2PDF.dll和一个命令行可执行文件(PDFUtil.exe)。Office2PDF.dll用于将输入参数指定的文件转换为PDF格式。
使用方法: 要转换文件,请在终端或命令提示符中使用以下命令:
PDFUtil.exe [你的Office文件路径] [目标PDF文件路径]
例如:
PDFUtil.exe d:\my\office.doc d:\my\targetoffice.pdf
该命令将会把位于d:\my\office.doc的Office文档转换为保存在d:\my\targetoffice.pdf的PDF文件。
