Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

generarPDF(row: any) { const div = document.getElementById('content'); const options = { background: 'white', scale: 2, dpi: 300, useCORS: true, // pdf clarity }; // Check if the element is not null before using it if (div) { // Get the total height of the scrollable content const totalHeight = div.scrollHeight; // Set the height of the container to capture the entire content div.style.height = totalHeight + 'px'; // Scroll to the specified position window.scrollTo({ top: -window.scrollY, left: 0, behavior: 'smooth' // You can change this to 'auto' for instant scrolling }); // Wait for scrolling to complete // Adjust the timeout as needed } else { console.error('Element with the specified ID not found.'); } } #3136

Open
ragavanramadass opened this issue Dec 28, 2023 · 0 comments

Comments

@ragavanramadass
Copy link

I have generaratePDF function but I have 9 sheet to downloading file
but first sheet only dates show remining sheets are came in empty
so please give the correct solutions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant