When I am converting a .TXT file to a PDF it is only showing 2 pages, I am pasting my conversion code below and have attached the text file that I am using as a zip.
Code:
GroupDocs.Viewer.Caching.FileCache cache = new GroupDocs.Viewer.Caching.FileCache(cachePath);
ViewerSettings settings = new ViewerSettings(cache);
using (GroupDocs.Viewer.Viewer viewer = new GroupDocs.Viewer.Viewer(filePath, settings))
{
ViewOptions viewOptions = new PdfViewOptions(outputPath);
viewOptions.SpreadsheetOptions = SpreadsheetOptions.ForOnePagePerSheet();
//viewOptions.SpreadsheetOptions = SpreadsheetOptions.ForSplitSheetIntoPages(100);
viewOptions.SpreadsheetOptions.SkipEmptyRows = false;
viewOptions.SpreadsheetOptions.SkipEmptyColumns = false;
viewOptions.SpreadsheetOptions.RenderGridLines = true;
viewOptions.SpreadsheetOptions.RenderHeadings = true;
viewOptions.RenderHiddenPages = true;
viewOptions.Watermark = new Watermark("Test");
viewOptions.Watermark.Color = System.Drawing.Color.FromArgb(50, 0, 66, 113);
viewOptions.CadOptions.RenderLayouts = true;
viewer.View(viewOptions);
}
File: TestFile.zip (51.6 KB)