ConvertOfficeToPDF Method (PDFDoc, String, IConversionOptions) |
Convert the an office document (in .docx, .xlsx, pptx, or .doc format) to pdf and append to the specified PDF document. This conversion is performed entirely within PDFNet, and does not rely on Word interop or any other external functionality.
Font requirements: on some systems you may need to specify extra font resources to aid in conversion. Please see http://www.pdftron.com/kb_fonts_and_builtin_office_conversion
Namespace:
pdftron.PDF
Assembly:
pdftron (in pdftron.dll) Version: 255.255.255.255
Syntax public static void OfficeToPDF(
PDFDoc doc,
string filePath,
IConversionOptions options
)
Public Shared Sub OfficeToPDF (
doc As PDFDoc,
filePath As String,
options As IConversionOptions
)
public:
static void OfficeToPDF(
[InAttribute] PDFDoc^ doc,
[InAttribute] String^ filePath,
[InAttribute] IConversionOptions^ options
)
pdftron.PDF.Convert.OfficeToPDF = function(doc, filePath, options);
Parameters
- doc
- Type: pdftron.PDFPDFDoc
the conversion result will be appended to this pdf - filePath
- Type: SystemString
the path to the source document - options
- Type: pdftron.PDFIConversionOptions
the conversion options
Remarks
see StreamingPDFConversion() if you would like more control over the conversion process
See Also