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

React native html to pdf with <embed><embed/> with ios 17.4 #311

Open
yuanyixiaomei opened this issue Apr 16, 2024 · 0 comments
Open

React native html to pdf with <embed><embed/> with ios 17.4 #311

yuanyixiaomei opened this issue Apr 16, 2024 · 0 comments

Comments

@yuanyixiaomei
Copy link

const pdfFile = await RNHTMLtoPDF.convert({
html:
<div class="pageBreak"> // Other ui <embed class="term" type="application/pdf" src="data:application/pdf;base64,YourBase64EncodedPDFHere"/> </div>,
fileName: subjectLine,
pageSize: 'Letter',
padding: 0,
base64: true })
The YourBase64EncodedPDFHere length is 212335.The content inside the embed tag will not be displayed in the final generated PDF. This only happens on real machines, not in simulator. my iphone ios version is 17.4 ,my simulator ios version is 17.0 I wonder if this tag is not compatible with iOS 17

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