taxtank-core 2.0.59 → 2.0.61

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -20612,25 +20612,21 @@ applyPlugin(jsPDF);
20612
20612
  class JsPdf extends jsPDF {
20613
20613
  }
20614
20614
 
20615
- /**
20616
- * Settings for generated PDF file from DOM elements
20617
- */
20618
20615
  const FILE_SETTINGS$1 = {
20619
20616
  margin: 10,
20620
20617
  filename: 'export.pdf',
20621
20618
  image: { type: 'jpeg', quality: 0.95 },
20622
20619
  html2canvas: {
20623
- scale: 1,
20624
20620
  windowWidth: 1200,
20625
20621
  windowHeight: 900,
20626
- foreignObjectRendering: false,
20622
+ scale: 1.25,
20623
+ foreignObjectRendering: true,
20627
20624
  letterRendering: false,
20628
20625
  useCORS: true,
20629
- logging: true,
20630
- },
20631
- pagebreak: {
20632
- mode: 'avoid-all'
20626
+ backgroundColor: '#fff',
20627
+ logging: true
20633
20628
  },
20629
+ pagebreak: { mode: 'avoid-all' },
20634
20630
  jsPDF: {
20635
20631
  unit: 'mm',
20636
20632
  format: 'a3',
@@ -20653,8 +20649,7 @@ class PdfFromDomElementService {
20653
20649
  merge(options, fileSettings);
20654
20650
  }
20655
20651
  // HTML container in which the exported DOM elements will be placed
20656
- // const htmlWrapper: HTMLElement = document.createElement('div');
20657
- const htmlWrapper = document.getElementById('iframe-pdf-export').contentDocument.getElementById('htmltopdf-export');
20652
+ const htmlWrapper = document.createElement('div');
20658
20653
  this.injectExportStyles(htmlWrapper);
20659
20654
  elements.forEach((element) => {
20660
20655
  htmlWrapper.append(element.cloneNode(true));
@@ -20664,8 +20659,7 @@ class PdfFromDomElementService {
20664
20659
  }
20665
20660
  download(elements, fileSettings) {
20666
20661
  return from(this.init(elements, fileSettings)
20667
- .save()
20668
- .then());
20662
+ .save());
20669
20663
  }
20670
20664
  export(elements, filename = FILE_SETTINGS$1.filename) {
20671
20665
  return from(this.init(elements)