7.0.310-7 • Published 5 days ago

@mstechusa/eviewer7 v7.0.310-7

Weekly downloads
-
License
ISC
Repository
-
Last release
5 days ago

eViewer

npm.io

A HTML5-based document viewer built on Angular and JavaScript technologies for the highest level of performance and integration into your applications. eViewer is multi-platform, multi-device compatible to provide the greatest versatility and amazing user experience.

Build Status

Supported platform

eViewer requires the following for deployment:

  • Server OS: Linux(x64) excluding Alpine, Windows(x64)
  • Java: 8 and higher or .Net Core

eViewer Installation

Install the dependencies and devDependencies and start the server.

Install eViewer

npm i @mstechusa/eviewer7 --save

Import and instantiate eViewer

    import eViewerApp from "eviewer7/js/eViewer7";
    this.eViewerObj = new eViewerApp("demoUser");
	var options = {
		contextMenuOptions: {
		  overrideContextMenus: false,
		  location: [
			"documentView",
			"pageThumbnails",
			"docThumbnails",
			"toolbar",
			"docTab",
		  ],
		},
	};
	eViewerObj
		.loadViewer("viewer", null, null, "best-fit", options)
		.then(() => {
			eViewerObj.registerLicense(licenseKey);
			setViewerOptions();
		});		
	});

    await import("@mstechusa/eviewer7/styles.css");
    await import("@mstechusa/eviewer7/scripts");
    await import("@mstechusa/eviewer7/runtime");
    await import("@mstechusa/eviewer7/polyfills");
    await import("@mstechusa/eviewer7/main");
    await import("@mstechusa/eviewer7/js/events");

Load Document

    let docUrl = "http://www.africau.edu/images/default/sample.pdf";
    let saveUrl = "";
    let serverUrl = "";
    let annotationUrl = "";
    let userName = "demouser";
    let isEditMode = true;
    let repoType = "filesystem";
    let fileName = "";
    let password = "";

    let savePayloadType = 'multipart/form-data';
    // let savePayloadType = 'application/json;

    let options = {
      type: "GET",
      headers: {
        Authorization:
          "Bearer ",
      },
      savePayLoadType: savePayloadType,
    };
	
	this.eViewerObj.setDocumentEndPointOptions(options, serverUrl, saveUrl, userName);
    let documentSrvc = this.eViewerObj.getDocumentService();
	let clientDocID = "client_" + uuid();
    documentSrvc
      .loadDocumentWithOptions(
        docUrl,
        annotationUrl,
		clientDocID,
        userName,
        // optional parmeters
		{
          isEditMode: true,
          repoType: "filesystem",
          password: "",
          landingPage: this.state.landingPgNo,
		  pageFilters: this.getPageVisibility(),
          tabStyle: {
             backgroundColor: "white",
             color: "black",
             fontWeight: "900",
             fontStyle: "italic",
             fileName: "OUTFOCUS",
             icon: "",
           },
           focusTabStyle: {
             backgroundColor: "red",
             color: "white",
             fontWeight: "900",
             fontStyle: "underline",
             fileName: "INFOCUS",
             icon: "",
           },		  
        }
      )
      .then((response) => {
        console.log("Document laoded");
      });

License

Please visit https://eviewer.net or https://mstusa.com to learn more about licensing eViewer

7.0.310-7

5 days ago

7.0.307-2

1 month ago

7.0.310-4

1 month ago

7.0.310-3

1 month ago

7.0.307-1

1 month ago

7.0.310-2

1 month ago

7.0.310-1

1 month ago

7.0.309-2

2 months ago

7.0.309-1

2 months ago

7.0.306

2 months ago

7.0.307

2 months ago

7.0.299-3

3 months ago

7.0.299-4

3 months ago

7.0.299-2

3 months ago

7.0.29-9.1

4 months ago

7.0.299-1

4 months ago

7.0.294

5 months ago

7.0.275

10 months ago

7.0.278

8 months ago

7.0.287

7 months ago

7.0.289-1

6 months ago

7.0.264

12 months ago

7.0.268

11 months ago

7.0.259

1 year ago

7.0.253

1 year ago

7.0.254

1 year ago

7.0.243

1 year ago

7.0.239

1 year ago

7.0.227

1 year ago

7.0.219

2 years ago

7.0.209

2 years ago

7.0.197

2 years ago

7.0.192

2 years ago

7.0.178

2 years ago

7.0.179

2 years ago

7.0.180

2 years ago

7.0.170

2 years ago

7.0.172

2 years ago

7.0.154

2 years ago

7.0.158

2 years ago

7.0.165

2 years ago

7.0.146

2 years ago

7.0.140

2 years ago

7.0.141

2 years ago

7.0.145

2 years ago

7.0.136

3 years ago

7.0.148

2 years ago

7.0.137

3 years ago

7.0.135

3 years ago

7.0.132

3 years ago

7.0.128

3 years ago

7.0.126

3 years ago

7.0.127

3 years ago

7.0.121

3 years ago

7.0.106

3 years ago

7.0.107

3 years ago

7.0.108

3 years ago

7.0.109

3 years ago

7.0.110

3 years ago

7.0.105

3 years ago

7.0.104

3 years ago