An in-browser PDF generator built with WebSharper and the WebSharper.JsPDF bindings: compose a document and watch jsPDF render it live — then download it.
- A title and body editor whose PDF preview is regenerated on every keystroke.
- Automatic line wrapping with
SplitTextToSizeand page breaks when the text overflows the page. - A Download PDF button that saves the document with
Save.
src/Client.fsbuilds aJsPDFdocument from the current inputs, exposes it as ablob:URL for the previewiframe, and revokes the previous URL.src/wwwroot/index.htmlholds the page header, and jsPDF is bundled from npm by esbuild.
dotnet run --project src
Then open http://localhost:5896.
dotnet build src/JsPDF.fsproj -c Release
Every push to master builds in Release and publishes src/wwwroot to the
gh-pages branch via .github/workflows/deploy.yml.
