Nebulous Puffy Marshmallows

    @mstechusa/eviewer7

    7.0.180 • Public • Published

    eViewer

    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();
        this.eViewerObj.loadViewer("viewer", null, null).then(() => {
        });
    
        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
          .loadDocument(
            docUrl,
            annotationUrl,
    		clientDocID,
            userName,
            "some-document-description",
            // optional parmeters
    		{
              isEditMode: true,
              repoType: "filesystem",
              password: "",
              landingPage: this.state.landingPgNo,
            }
          )
          .then((response) => {
            console.log("Document laoded");
          });

    License

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

    Install

    npm i @mstechusa/eviewer7

    DownloadsWeekly Downloads

    27

    Version

    7.0.180

    License

    ISC

    Unpacked Size

    12.9 MB

    Total Files

    22

    Last publish

    Collaborators

    • ismeetpawar