From 1aac226000cbf36e5a61f75134bdf94986576a1c Mon Sep 17 00:00:00 2001 From: Annigpannig Date: Wed, 18 Aug 2021 14:29:24 +0200 Subject: [PATCH] Update vue-html2pdf.vue Add pdfContentHeight as prop with 1132px as default to guard A4 proportions. A pdf in landscape gets messed up when a console tab is opened on the side, this way the user can specify the exact dimensions of the wrapper. --- src/vue-html2pdf.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/vue-html2pdf.vue b/src/vue-html2pdf.vue index d46c8f7..f0ea0e2 100644 --- a/src/vue-html2pdf.vue +++ b/src/vue-html2pdf.vue @@ -9,7 +9,7 @@ >
@@ -82,6 +82,10 @@ export default { pdfContentWidth: { default: '800px' }, + + pdfContentHeight: { + default: '1132px' + }, htmlToPdfOptions: { type: Object