Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Created March 12, 2024 14:45
Show Gist options
  • Save bjoerntx/c0230a25363fb924ec449f562aa304df to your computer and use it in GitHub Desktop.
Save bjoerntx/c0230a25363fb924ec449f562aa304df to your computer and use it in GitHub Desktop.
@Html.TXTextControl().DocumentViewer(settings => {
settings.DocumentLoadSettings.PDFJS.LibrarySourcePath = "/Scripts/pdf.js/pdf.min.mjs";
settings.DocumentLoadSettings.PDFJS.WorkerSourcePath = "/Scripts/pdf.js/pdf.worker.min.mjs";
}).Render()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment