Mercurial > gemma
diff client/src/components/Pdftool.vue @ 3790:60977e18e227 yworks-svg2pdf
client: improve pdf generation getTextHeight()
* Remove second appearance of getTextHeight() in PdfTool.vue.
* Rectify getTextHeight() by adding a comment about what it
does and correcting the calulcation to output millimeter.
author | Bernhard Reiter <bernhard@intevation.de> |
---|---|
date | Wed, 03 Jul 2019 16:53:06 +0200 |
parents | a2da2328bb86 |
children | e8a950cf6c02 |
line wrap: on
line diff
--- a/client/src/components/Pdftool.vue Wed Jul 03 16:44:45 2019 +0200 +++ b/client/src/components/Pdftool.vue Wed Jul 03 16:53:06 2019 +0200 @@ -829,13 +829,6 @@ textOptions ); } - }, - getTextHeight(numberOfLines) { - return ( - numberOfLines * - ((this.pdf.doc.getFontSize() * 25.4) / parseInt(this.form.resolution)) * - 1.15 // see https://github.com/yWorks/jsPDF/blob/master/jspdf.js#L207 - ); } }, mounted() {