PDF Simulator
react-pdf-simulator
Install
yarn add react-pdf-simulator
Demo
Usage
For a simple table:
; ; const index = { return <PDFsimulator> <h1>¡¡Hola Mundo!!</h1> <h2>Coloca todo tu codigo HTML o JSX aquí</h2> </PDFsimulator> ; }; ;
Or customize buttons:
place buttons:
;;;const renderCloudDownload = <CloudDownload />;const renderErrorIcon = <ErrorIcon/>;const fun1 = { console;}; const fun2 = { console;};const CustomisationButtons = icon: renderCloudDownload functionButton: fun1 fun2 description: "imprimir" icon: renderErrorIcon functionButton: fun1 description: "cerrar" ;
Or customize view point:
const CustomisationViewpoint = stylesContainerView: backgroundColor: "#528059" width: "120vh" height: "89vh" zoomDefault: zoomNumInit: 08 buttonContent: marginTop: "30vh" /* Edit height button */ || /* Se edita altura de botones */ styleContent: display: "block" fontFamily: "Courier New" textAlign: "justify" overflow: "hidden" marginLeft: "6%" marginRight: "11%" ;
License
The files included in this repository are licensed under the MIT license.
Thanks
Thank you to IAS for providing the infrastructure that allows me to test in real browsers.