Compactação final do relatorio para folha A4 e Correcao do PDF (DarkMode text)
This commit is contained in:
@@ -19,6 +19,7 @@ export const exportAsPdf = async (elementId: string, fileName: string, action: '
|
||||
const isDark = document.documentElement.classList.contains('dark');
|
||||
if (isDark) {
|
||||
document.documentElement.classList.remove('dark');
|
||||
await new Promise(resolve => setTimeout(resolve, 100)); // Allow CSS to recompute
|
||||
}
|
||||
|
||||
const pdf = new jsPDF({
|
||||
|
||||
Reference in New Issue
Block a user