We are wondering if your product will allow either a byte array or memory stream of any document type (IE: primarily doc, docx, xls, xlsx, txt, Html, odt …. ) to be converted to a PDF. We see that you convert a stream of an Xaml document.
We are storing our documents in a SQL Blob column (then reading them into either a byte array or memory stream) and need to convert them to a PDF and would like to do this without having to create a disk file in the middle.
Also can you provide us with a list of the document types that can be converted to a PDF
As of PDFNet v.5.9 ‘pdftron.PDF.Convert.ToPdf()’ methods support only conversion via filename. This means that you would need to save a file to a temp file for conversion. The converted PDF files does need to be saved to disk however (PDFDoc.Save() method can be used to save to byte or a Stream).
Please note that some conversions such as Html2Pdf (for HTML, TXT), Image (Jpeg, TIFF, png, gif, etc see AddImage sample), XPS, Xaml, EMF/WMF, PDF do support conversion from a memory buffer or a stream so it is not always the case that you need to save the input file.
Ø can you provide us with a list of the document types that can be converted to a PDF
XLA, XLAM, XLC, XLL, XLM, XLS, XLSB, XLSM, XLSX, XLT, XLTM, XLTX, XLW *
- assumes MS Office is present. For conversion from MS Office we generally recommend that MS Office is present on the target machine/server. PDFNet can also convert via a generic virtual printer driver, however due to complicated configuration we are not actively supporting this use case.