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

Hi everyone, PDF content is blank after download in IOS #687

Open
LMkhitaryan opened this issue Mar 20, 2024 · 0 comments
Open

Hi everyone, PDF content is blank after download in IOS #687

LMkhitaryan opened this issue Mar 20, 2024 · 0 comments

Comments

@LMkhitaryan
Copy link

LMkhitaryan commented Mar 20, 2024

Here my config..
var content = document.querySelector('#RCH-pdf');
var opt = {
margin: [-10, 0, 5, 0],
filename: 'Summary Report.pdf',
jsPDF: { unit: 'mm', format: 'a4', orientation: 'portrait' },
pagebreak: { before: ['.audit-block', '.new-items-list', '.block-ops:nth-child(3)', '.block-fs:nth-child(3)', '.block-fs:nth-child(8)', '.block-ops:nth-child(8)', '.block-fs:nth-child(13)', '.block-ops:nth-child(13)', '.block-fs:nth-child(18)', '.block-ops:nth-child(18)', '.block-fs:nth-child(23)', '.block-ops:nth-child(23)', '.block-fs:nth-child(28)', '.block-ops:nth-child(28)', '.block-fs:nth-child(32)', '.block-ops:nth-child(32)', '.block-fs:nth-child(37)', '.block-ops:nth-child(37)', '.block-fs:nth-child(42)', '.block-ops:nth-child(42)', '.block-fs:nth-child(47)', '.block-ops:nth-child(47)', '.block-fs:nth-child(52)', '.block-ops:nth-child(52)', '.block-fs:nth-child(57)', '.block-ops:nth-child(57)', '.block-fs:nth-child(62)', '.block-ops:nth-child(62)', '.block-fs:nth-child(67)', '.block-ops:nth-child(67)'] }
}

html2pdf().from(content).set(opt).save();
@LMkhitaryan LMkhitaryan changed the title Hi everyone, PDF content does not show after download in MAC Hi everyone, PDF content is blank after download in IOS Mar 25, 2024
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