Created
October 17, 2023 10:24
-
-
Save bjoerntx/7a1845bafb8ddaced90ee2cfa774192c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@model byte[] | |
@using TXTextControl.Web.MVC.DocumentViewer | |
@using System.Text | |
<div style="width: 800px; height: 600px;"> | |
@Html.TXTextControl().DocumentViewer(settings => { | |
settings.DocumentData = Convert.ToBase64String(Model); | |
settings.Dock = DocumentViewerSettings.DockStyle.Fill; | |
settings.DocumentLoadSettings.PDFJS.BasePath = "/lib/pdf.js/"; | |
}).Render() | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment