|
|
@@ -266,7 +266,7 @@ export class OperationsLearningReportsComponent implements OnInit, OnDestroy {
|
|
|
const worker = html2pdf().set({
|
|
|
margin: [9, 9, 9, 9], filename: `小树陪练-${reportTitles[variant]}-${safeName}.pdf`,
|
|
|
image: { type: 'jpeg', quality: 1 },
|
|
|
- html2canvas: { scale: 1.5, logging: false, useCORS: true, backgroundColor: '#ffffff' },
|
|
|
+ html2canvas: { scale: 1.5, logging: false, useCORS: true, backgroundColor: '#ffffff', windowWidth: 1024, scrollY: 0 },
|
|
|
jsPDF: { unit: 'mm', format: 'a4', orientation: 'portrait' },
|
|
|
pagebreak: { mode: ['css', 'legacy'], avoid: ['.report-summary article', '.word-row', '.review-section', '.worksheet-hint', '.pdf-footer', '.comment-card'] },
|
|
|
}).from(element).toCanvas().get('canvas', (canvas) => {
|