md-editor-extension icon indicating copy to clipboard operation
md-editor-extension copied to clipboard

When I try to download it as a pdf, the words get mixed up and become unreadable.

Open EmrullahKutlar opened this issue 9 months ago • 1 comments

When I try to download it as a pdf, the words get mixed up and become unreadable.

Image Image

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",

EmrullahKutlar avatar Apr 15 '25 12:04 EmrullahKutlar

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!

imzbf avatar Apr 16 '25 05:04 imzbf

Try using version v4.0.0, which replaces html2pdf with window.print.

imzbf avatar Sep 26 '25 08:09 imzbf