<template>
    <div class="hc-page-box">
        <HcCard title="测试">
            <div id="pdfView" class="h-full" />
        </HcCard>
    </div>
</template>

<script setup>
import { onMounted } from 'vue'
import logoName from '~src/assets/logo/name.png'
import HcPdfSign from '~src/plugins/HcPdfSign'

onMounted(()=> {
    const pdf = 'https://bladex-chongqing-info.oss-cn-hangzhou.aliyuncs.com//upload/20230908/2878b0b7a59c1ce9b5779381a1fb82ef.pdf'

    //创建PDF签章控件以及相关功能
    HcPdfSign.createPdf('pdfView', pdf, logoName, (data) => {
        console.log(data)
    })
})
</script>
