Repository files navigation Index Page (index.jsx or /) is the jsPDF approach
DownloadPDF.jsx component does the converison of the Proposal.jsx component into the PDF file: proposal.pdf.
toDataURL() function in the Proposal.jsx converts Image to the base64.
Only inline styles are applied to the resultant PDF file. Because of that I have used !important in the .logo class in /styles/proposal.css file.
For some reason, the Image size is bigger when converting to the PDF, that's why <img> has inline style with height and width.
Web API Page (web-api.jsx or /web-api)
Implementation of the Web API print() method, using the component Proposal.jsx.
md-to-pdf (md-to-pdf.jsx or /md-to-pdf)
If images: put to the templates folder as having problems with accessing /image directory.
Make sure to run yarn run make:pdf if working locally. There's a pre-commit hook that runs the script on git commit.
About
Save current webpage in pdf format
Resources
License
Stars
Watchers
Forks
You can’t perform that action at this time.