"use strict";const l=require("./html2canvas.esm-BA_v9SIU.cjs"),m=require("./jspdf.es.min-DLYY9DTT.cjs");function u({domElement:f,fileName:c}){if(f){const t={height:851.89,width:595.28},e=new m.E("","pt","a4");let h,d,g,n,a;return l.default(f).then(s=>{h=s.width,d=s.height;let i=d;const o=h/t.width*t.height;let p=0;if(g=t.width,n=582.28/h*d,a=s.toDataURL("image/png",1),i<o)e.addImage(a,"PNG",33,24,g*.9,n*.9,"","FAST");else for(;i>0;)e.addImage(a,"PNG",33,p,g*.9,n*.9,"","FAST"),i-=o,p-=t.height-24,i>0&&e.addPage();e.save(`${c}.pdf`)})}}exports.pdf=u;
