Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Created October 20, 2023 09:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bjoerntx/12564e28b2c0e8af242c22ca6d24ba1d to your computer and use it in GitHub Desktop.
Save bjoerntx/12564e28b2c0e8af242c22ca6d24ba1d to your computer and use it in GitHub Desktop.
@using TXTextControl.Web.MVC.DocumentViewer
@using System.Text
<div style="width: 1200px; height: 800px;">
@Html.TXTextControl().DocumentViewer(settings => {
settings.DocumentPath = "App_Data/test.pdf";
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