7.0.327 • Published 10 months ago

@mstechusa/eviewer7 v7.0.327

Weekly downloads
-
License
ISC
Repository
-
Last release
10 months 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.327

10 months ago

7.0.324-3

10 months ago

7.0.318-4

11 months ago

7.0.310-10

1 year ago

7.0.318-5

11 months ago

7.0.318-3

12 months ago

7.0.321-3

11 months ago

7.0.315

1 year ago

7.0.315-1

11 months ago

7.0.317-3

12 months ago

7.0.319-2

11 months ago

7.0.320-2

11 months ago

7.0.310-8

1 year ago

7.0.310-7

1 year ago

7.0.307-2

1 year ago

7.0.310-4

1 year ago

7.0.310-3

1 year ago

7.0.307-1

1 year ago

7.0.310-2

1 year ago

7.0.310-1

1 year ago

7.0.309-2

1 year ago

7.0.309-1

1 year ago

7.0.306

1 year ago

7.0.307

1 year ago

7.0.299-3

1 year ago

7.0.299-4

1 year ago

7.0.299-2

1 year ago

7.0.29-9.1

1 year ago

7.0.299-1

1 year ago

7.0.294

2 years ago

7.0.275

2 years ago

7.0.278

2 years ago

7.0.287

2 years ago

7.0.289-1

2 years ago

7.0.264

2 years ago

7.0.268

2 years ago

7.0.259

2 years ago

7.0.253

2 years ago

7.0.254

2 years ago

7.0.243

2 years ago

7.0.239

2 years ago

7.0.227

3 years ago

7.0.219

3 years ago

7.0.209

3 years ago

7.0.197

3 years ago

7.0.192

3 years ago

7.0.178

3 years ago

7.0.179

3 years ago

7.0.180

3 years ago

7.0.170

3 years ago

7.0.172

3 years ago

7.0.154

3 years ago

7.0.158

3 years ago

7.0.165

3 years ago

7.0.146

4 years ago

7.0.140

4 years ago

7.0.141

4 years ago

7.0.145

4 years ago

7.0.136

4 years ago

7.0.148

4 years ago

7.0.137

4 years ago

7.0.135

4 years ago

7.0.132

4 years ago

7.0.128

4 years ago

7.0.126

4 years ago

7.0.127

4 years ago

7.0.121

4 years ago

7.0.106

4 years ago

7.0.107

4 years ago

7.0.108

4 years ago

7.0.109

4 years ago

7.0.110

4 years ago

7.0.105

4 years ago

7.0.104

4 years ago