taxtank-core 2.0.59 → 2.0.60
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.
|
@@ -20623,7 +20623,7 @@ const FILE_SETTINGS$1 = {
|
|
|
20623
20623
|
scale: 1,
|
|
20624
20624
|
windowWidth: 1200,
|
|
20625
20625
|
windowHeight: 900,
|
|
20626
|
-
foreignObjectRendering:
|
|
20626
|
+
foreignObjectRendering: true,
|
|
20627
20627
|
letterRendering: false,
|
|
20628
20628
|
useCORS: true,
|
|
20629
20629
|
logging: true,
|
|
@@ -20653,8 +20653,7 @@ class PdfFromDomElementService {
|
|
|
20653
20653
|
merge(options, fileSettings);
|
|
20654
20654
|
}
|
|
20655
20655
|
// HTML container in which the exported DOM elements will be placed
|
|
20656
|
-
|
|
20657
|
-
const htmlWrapper = document.getElementById('iframe-pdf-export').contentDocument.getElementById('htmltopdf-export');
|
|
20656
|
+
const htmlWrapper = document.createElement('div');
|
|
20658
20657
|
this.injectExportStyles(htmlWrapper);
|
|
20659
20658
|
elements.forEach((element) => {
|
|
20660
20659
|
htmlWrapper.append(element.cloneNode(true));
|
|
@@ -20664,8 +20663,7 @@ class PdfFromDomElementService {
|
|
|
20664
20663
|
}
|
|
20665
20664
|
download(elements, fileSettings) {
|
|
20666
20665
|
return from(this.init(elements, fileSettings)
|
|
20667
|
-
.save()
|
|
20668
|
-
.then());
|
|
20666
|
+
.save());
|
|
20669
20667
|
}
|
|
20670
20668
|
export(elements, filename = FILE_SETTINGS$1.filename) {
|
|
20671
20669
|
return from(this.init(elements)
|