mirror of https://github.com/apache/superset.git
fix: Exclude header controls from dashboard PDF export (#27068)
This commit is contained in:
parent
f59498fcb9
commit
005cee023b
|
@ -27,6 +27,7 @@ declare module 'dom-to-pdf' {
|
|||
filename: string;
|
||||
image: Image;
|
||||
html2canvas: object;
|
||||
excludeClassNames?: string[];
|
||||
}
|
||||
|
||||
const domToPdf = (
|
||||
|
|
|
@ -61,6 +61,7 @@ export default function downloadAsPdf(
|
|||
filename: `${generateFileStem(description)}.pdf`,
|
||||
image: { type: 'jpeg', quality: 1 },
|
||||
html2canvas: { scale: 2 },
|
||||
excludeClassNames: ['header-controls'],
|
||||
};
|
||||
return domToPdf(elementToPrint, options)
|
||||
.then(() => {
|
||||
|
|
Loading…
Reference in New Issue