Hello
I am expiring a document from Laserfiche using SDK , and I want to loop the document pages , incase the document has a page but empty the code crashes while getting the page thumbnail, it's get page image but with size 0 KB ( okay)
How to check if document page is empty before exporting ?
exporter.PageFormat = DocumentPageFormat.Tiff; for (int x=1; x<=docInfo.PageCount;x++) { var pagePath = pagesFolder + $"\\{x}.tiff"; var thumPath= thumFolder+ $"\\{x}.tiff"; // exportpage as a tiff image using (FileStream Pfs = File.OpenWrite(pagePath)) { exporter.ExportPage(docInfo, x, Pfs); listPages.Add(pagePath); } // Export thumbnail for page using (FileStream Tfs = File.OpenWrite(thumPath)) { exporter.ExportThumbnail(docInfo, x, Tfs); listthums.Add(thumPath); }
thanks