简历上传,pdf简历下载

This commit is contained in:
2026-04-03 17:52:07 +08:00
parent 821a950df2
commit a39835be01
25 changed files with 2076 additions and 301 deletions
+22
View File
@@ -0,0 +1,22 @@
/** html2pdf.js 类型声明 */
declare module 'html2pdf.js' {
interface Html2PdfOptions {
margin?: number | number[]
filename?: string
image?: { type?: string; quality?: number }
html2canvas?: Record<string, unknown>
jsPDF?: { unit?: string; format?: string; orientation?: string }
[key: string]: unknown
}
interface Html2PdfInstance {
set(options: Html2PdfOptions): Html2PdfInstance
from(element: HTMLElement | string): Html2PdfInstance
save(): Promise<void>
toPdf(): Html2PdfInstance
output(type: string): Promise<unknown>
}
function html2pdf(): Html2PdfInstance
export default html2pdf
}