We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75e070b commit 64934ceCopy full SHA for 64934ce
WebFormsDocumentViewer/DocumentViewer.cs
@@ -107,7 +107,8 @@ public StringBuilder BuildControl(string projectRootPath)
107
throw new Exception("An error ocurred while trying to convert the file");
108
}
109
110
- if (PdfRenderer == PdfRenderers.PdfJs && !extension.ToString().StartsWith("xls"))
+ if (PdfRenderer == PdfRenderers.PdfJs && !extension.Equals(SupportedExtensions.txt) &&
111
+ !extension.ToString().StartsWith("xls"))
112
FilePath = "/Scripts/pdf.js/web/viewer.html?file=../../../" + FilePath;
113
114
StringBuilder sb = new StringBuilder();
0 commit comments