我正在尝试在 <View>/<Text>
中呈现 HTML在 <PDFViewer>
中渲染 PDF 时的组件使用模板。
我想在我的 pdf 中呈现下面显示的我的自定义 HTML 标记代码<p><span style="font-size: 24px;">Pre Interview Notes</span></p><p><br></p><p><strong style="font-size: 14px;"><u>This is a test Pre Interview Notes:</u></strong></p><p><br></p><p><em style="font-size: 14px;">The Guest requires a wheel chair for the show</em></p><p><br></p><p><br></p>
环境
最佳答案
可以考虑使用@react-pdf/renderer,这个库是从React-PDF库扩展而来的,访问:https://react-pdf.org/repl?example=breakable-unbreakable为游乐场。希望能帮助到你!
关于reactjs - 使用 react-pdf/render 库在 pdf 文档中渲染自定义 HTML 标记,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61550910/