Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Created January 20, 2023 10:31
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/02f918ac95985b8d645cde18cec4839d to your computer and use it in GitHub Desktop.
Save bjoerntx/02f918ac95985b8d645cde18cec4839d to your computer and use it in GitHub Desktop.
@Html.TXTextControl().DocumentViewer(settings => {
settings.DocumentPath = Server.MapPath("~/App_Data/Documents/test.pdf");
settings.Dock = DocumentViewerSettings.DockStyle.Fill;
settings.IsSelectionActivated = true;
settings.ShowThumbnailPane = true;
settings.DocumentLoadSettings.PDFJS.BasePath = "https://cdnjs.cloudflare.com/ajax/libs/pdf.js/3.2.146";
}).Render()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment