Browse Source

2-3 bricoles nettoyées

master
Jérôme Chauveau 4 years ago
parent
commit
335559df2c
2 changed files with 0 additions and 36 deletions
  1. +0
    -14
      src/assets/dedediteur.css
  2. +0
    -22
      src/components/Dedediteur.vue

+ 0
- 14
src/assets/dedediteur.css View File

@@ -89,20 +89,6 @@ p:nth-child(1){
@import '~gutenberg-css' print;

@media print {
/*@import '~gutenberg-css';*/

/*body {*/
/*margin: 0;*/
/*}*/

/*@page {*/
/*margin: 1cm;*/
/*}*/

/*#dedediteur {*/
/*font-size: 14pt;*/
/*color: red;*/
/*}*/

#file_actions, .menubar, .paragraph-menubar *, .bottom-bar * {
display: none;


+ 0
- 22
src/components/Dedediteur.vue View File

@@ -284,28 +284,6 @@

pdfExport(){
window.print();
//link rel="stylesheet" type="text/css" href=
// let cssPrintElt = document.createElement("link");
// cssPrintElt.setAttribute('rel', 'stylesheet');
// cssPrintElt.setAttribute('type', 'text/css');
// cssPrintElt.setAttribute('media','print');
// cssPrintElt.setAttribute('href', './print.css');
// document.head.appendChild(cssPrintElt);
// printJS('dedediteur', 'html')
//printJS({printable:'docs/xx_large_printjs.pdf', type:'pdf', showModal:true})
// var element = document.getElementById('dedediteur');
// var opt = {
// margin: 1,
// filename: 'dedediteur-export.pdf',
// image: { type: 'jpeg', quality: 0.98 },
// html2canvas: { scale: 2 },
// jsPDF: { unit: 'in', format: 'letter', orientation: 'portrait' }
//};


// New Promise-based usage:
// html2pdf().set(opt).from(element).save();

}

}


Loading…
Cancel
Save