When I try to download it as a pdf, the words get mixed up and become unreadable.
When I try to download it as a pdf, the words get mixed up and become unreadable.
First image is preview, second image is pdf which I download with "ExportPDF from "@vavt/v3-extension". How can I fix this problem?
Part of the code:
<MdEditor v-model="newContent" :footers="[]" language="en-US" :toolbarsExclude="toolbarsExclude" :toolbars="toolbars" :codeFoldable="false" > <template #defToolbars> <ExportPDF :modelValue="newContent" :title="title" :modalTitle="title + ' PDF'" :fileName="title" ref="exportPdf" @onStart="loading = true" @on-success="loading = false" @on-error="loading = false" /> <!-- --> </template> </MdEditor>
Procedure version
"vue": "^3.5.13", "md-editor-v3": "^5.2.1", "@vavt/v3-extension": "^3.0.0",
Both html2pdf and html3pdf are at a standstill for updating, so this kind of problem will have to wait until a suitable replacement library is found!
Try using version v4.0.0, which replaces html2pdf with window.print.