danomatic / react-pdf-html

Render HTML in react-pdf
MIT License
167 stars 40 forks source link

Excluding "iframe" because it has no renderer #76

Closed AmrAhmedA closed 7 months ago

AmrAhmedA commented 8 months ago

I wanted to load an Iframe in pdf. I only can see testing iframe text in the streamed pdf. I can see Excluding "iframe" because it has no renderer logged in the console

const html = `
  <html>
  <body>
  <iframe src="https://www.google.co.uk/images/branding/googlelogo/2x/googlelogo_light_color_272x92dp.png"></iframe>
  <h1>testing iframe</h1>
  </body>
  </html>
`
  const document = (
    <Document>
      <Page size="A4">
        <Html>{html}</Html>
      </Page>
    </Document>
  )

Is there is way I can load iframe using your library?

AmrAhmedA commented 8 months ago

It seems that your package doesn't support iframe yet, the console.warn is from this line Also it doesn't seem to be included in the tags.ts file