mpdf / mpdf.github.io

mPDF documentation
https://mpdf.github.io
Other
508 stars 160 forks source link

Save OutputBinaryData with javascript #192

Closed papazetis closed 1 year ago

papazetis commented 1 year ago

I am using OutputBinaryData to get the PDF string and I want to save it as a pdf file using javascript.

%PDF-1.4
#########
%EOF

I tried all the possible solutions using https://github.com/eligrey/FileSaver.js/

I get an empty doc with some weird symbols on title image

Any idea how to do that?