ReactPDF
约 1 分钟阅读
标签:React
- diegomura/react-pdfGitHubdiegomura/react-pdfdiegomura/react-pdf · Create PDF files using React · yogo+pdfkit · react-reconciler, scheduler · 参考 · https://react-pdf-repl.vercel.app/笔记:ReactPDF
- Create PDF files using React
- yogo+pdfkit
- react-reconciler, scheduler
- 参考
- react-pdf-repl.vercel.app
- aanckar/react-pdf-tailwindGitHubaanckar/react-pdf-tailwind
- table layout
- diegomura/react-pdf#2343GitHub Issuediegomura/react-pdf#2343
- ag-media/react-pdf-tableGitHubag-media/react-pdf-table
- page wrapping may happen in unexpected ways:
export const PDFViewer = ({ title, style, className, children, innerRef, showToolbar = true, ...props }) => {
const [instance, updateInstance] = usePDF();
useEffect(() => updateInstance(children), [children]);
const src = instance.url ? `${instance.url}#toolbar=${showToolbar ? 1 : 0}` : null;
return <iframe src={src} title={title} ref={innerRef} style={style} className={className} {...props} />;
};FAQ
The "windows-1252" encoding is not supported
- fontkit
new TextDecoder('ascii');RangeError [ERR_ENCODING_NOT_SUPPORTED]: The "windows-1252" encoding is not supportedfix
apk add icu-data-full关联信息
反向链接、本文链接的其他页面和外部资料。
反向链接
- PDF笔记 · React PDF
analyzer/debugger · hyzyla/pdf-debugger · 显示 pdfjs 的解析结果 · https://github.com/itext/i7j-rups (java -jar /Downloads/itext-rups-7.2.5.jar)
参考资料
GitHub4 条
- aanckar/react-pdf-tailwindgithub.com/aanckar/react-pdf-tailwind
- ag-media/react-pdf-tablegithub.com/ag-media/react-pdf-table
- diegomura/react-pdfgithub.com/diegomura/react-pdf
- diegomura/react-pdf#2343github.com/diegomura/react-pdf/issues/2343
其他外链1 条
- react-pdf-repl.vercel.appreact-pdf-repl.vercel.app/