Hi I am doing a small project that export LF document as PDF with SDK script.
The code is simple like this:
DocumentInfo DI = Document.GetDocumentInfo(this.BoundEntryInfo.Id, RASession);
DocumentExporter DE = new DocumentExporter();
DE.ExportPdf(DI, DI.AllPages, PdfExportOptions.None, "C:\\temp\\" + DI.Name + ".pdf");
It works fine when DI.AllPages returns valid content. However, if the document doesn't have pages, then DI.AllPages returns a NULL object which fails the function.
However, it happens many chances the LF document is valid TIFF or PDF or other format but just don't have LF pages information in it. I am wondering in this situation, how should I do to correctly export the document into a PDF?