new Convert()
Converter is a utility class used to convert documents and files to PDF. Conversion of XPS, EMF and image files to PDF documents is performed internally. Other document formats are converted via native application and printing.
Methods
-
<static> fromXpsMem(in_pdfdoc, buf)
-
Convert the specified XPS document contained in memory to PDF and append converted pages to the specified PDF document.
Parameters:
Name Type Description in_pdfdoc
PDFNet.PDFDoc the PDFDoc to append to
buf
Array the buffer containing the xps document
-
<static> office2PDFBuffer(input, options)
-
Parameters:
Name Type Description input
string | ArrayBuffer Either a url from which to download the file or an ArrayBuffer containing the file data.
options
Object An object containing conversion options
Properties
Name Type Argument Description l
string <optional>
The license key with which to initialze the SDK
Returns:
A promise that resolves to an ArrayBuffer containing the resulting PDF data.
- Type
- ArrayBuffer
-
<static> officeToPdfWithFilter(in_pdfdoc, in_data, options)
-
Parameters:
Name Type Description in_pdfdoc
PDFNet.PDFDoc in_data
PDFNet.Filter options
PDFNet.Obj -
<static> officeToPdfWithPath(in_pdfdoc, in_filename, options)
-
Parameters:
Name Type Description in_pdfdoc
PDFNet.PDFDoc in_filename
string options
PDFNet.Obj -
<static> streamingPdfConversionWithFilter(in_data, options)
-
Parameters:
Name Type Description in_data
PDFNet.Filter options
PDFNet.Obj Returns:
A promise that resolves to an object of type: "DocumentConversion"
-
<static> streamingPdfConversionWithPath(in_filename, options)
-
Parameters:
Name Type Description in_filename
string options
PDFNet.Obj Returns:
A promise that resolves to an object of type: "DocumentConversion"
-
<static> streamingPdfConversionWithPdfAndFilter(in_pdfdoc, in_data, options)
-
Parameters:
Name Type Description in_pdfdoc
PDFNet.PDFDoc in_data
PDFNet.Filter options
PDFNet.Obj Returns:
A promise that resolves to an object of type: "DocumentConversion"
-
<static> streamingPdfConversionWithPdfAndPath(in_pdfdoc, in_filename, options)
-
Parameters:
Name Type Description in_pdfdoc
PDFNet.PDFDoc in_filename
string options
PDFNet.Obj Returns:
A promise that resolves to an object of type: "DocumentConversion"