<template>
    <div id="html5_viewer" style="position:absolute; width:100%; height:100%;"></div>
</template>


  <script>
  import axios from "axios";

  // API
  import VuePdfApp from "vue3-pdf-app";
  export default {
    components: {
        VuePdfApp,
    },
    data() {
      return {
        fileId: null, // 파일아이디
        pdfurl : '',  
        viewer : {},
        mml : '',  
      };
    },
    created() { 
          },
    methods: {
       
    },
    mounted() {
        this.viewer = new m2soft.crownix.Viewer('http://210.180.118.83:8080/ReportingServer/service', 'html5_viewer');
        this.viewer.openFile('master-detail_single.mrd', '/rwait /rv printOpt[간동고등학교/20160801141916/10.200.90.149/김태훈] title [JSON 마스터-디테일 단건] /rdata [{  "Main": [    {     "금년도": "2022",     "학교": "간동고등학교",     "학번": "11"    }  ],  "Sub1": [    {      "학생개인번호": "P001",      "이름": "김태훈",      "주민번호": "123456-1111456",      "주야과정": "N",      "졸업일자": "20220221"    },	{      "학생개인번호": "P002",      "이름": "김eee태s순",      "주민번호": "12345rrr6-2111456",      "주야과정": "Y",      "졸업일자": "20220221"    }  ]}]', {timeout:300});
    },
  };
  </script>