Tutorial on paged.js
The repo (https://github.com/ashok-khanna/pdf) contains all the necessary code and is intended for others to reuse in their projects. Some of it isn’t straightforward, despite the guide looking easy - I had to figure out how CSS selectors and counters work for example, how MathJax interacted with Paged.Js.
I think the confusion comes from it being labeled as a “guide”, in fact it’s a full set of code to give the required functionality for high quality PDFs from HTML, using paged.js, the guide is just the self documentation as I figured I might as well use documentation for the sample output. Otherwise, I’d be genuinely curious on what constitutes Show HN vs normal posts?
I think the repo description and the way the output is confusing / unclear - the primary goal is very much meant to be a code base for people to reuse as I’ve noticed for many programmers, the design side can be a bit more elusive.
Separately, would it be possible to add beautiful back to the title - it’s not really about producing PDFs from html as browsers can already do that, and there are many other tools. The main aim is to have the functionality to produce very high quality typeset PDFs from HTML, which until now, I only felt PrinceXML did well and that’s a paid solution. Maybe we could say the title is “High quality PDFs from HTML using Paged.JS”? I know there has been a separate discussion on another thread on the overuse of the word beautiful in describing code - my view is that it has its place when it relates to output / UI.
Thanks for reading, and no issues otherwise (no need to reply).
Paginate the HTML Output of R Markdown with CSS for Print
I use pagedown all the time.
Less time debugging, more time building. Scout APM allows you to find and fix performance issues with no hassle. Now with error monitoring and external services monitoring, Scout is a developer's best friend when it comes to application development.
Create PDF documents using web technologies
A few years ago I started an alternative to PrinceXML called ReLaXed.js , it's always been sufficient for my reports but it may lack some pagination/layout features that Paged.js may have as they seem to have given this much more thoughts (still wrapping my head around whether paged.js could be "plugged into" Relaxed).
Write your (under)graduate thesis with Markdeep and typeset it right in your browser.
On top of it and the in-browser Markdown renderer Markdeep, I've built a tool for typesetting undergraduate theses: https://github.com/doersino/markdeep-thesis/
And, coincidentally, I've written a blog post about controlling the settings in Chrome's "Print" dialogue with CSS just a few days ago (other browsers don't support many of the relevant features): https://excessivelyadequate.com/posts/print.html
Universal markup converter
Beautiful and accessible math in all browsers
Hi, Adam here from Pagedjs. Pagedjs is MIT. Mathjax is Apache 2.0 and isn't part of our work :) Wonderful as it is...we can't claim credit for it! (We Love MathJax - https://github.com/MathJax/MathJax)
OPS - Build and Run Open Source Unikernels. Quickly and easily build and deploy open source unikernels in tens of seconds. Deploy in any language to any cloud.
HTML/CSS/JS in, PDF out, via Chrome
I built, use, and maintain https://github.com/danielwestendorf/breezy-pdf-lite which uses Chrome to convert html to PDF’s as a web service. Maybe someone here will find it useful!
Convert AsciiDoc documents to PDF using web technologies
Asciidoctor has a web PDF tool that just went alpha a little bit ago, uses the same stack as the OP's thingie.
The content handoff goes like this: Asciidoc (using defined roles) generates HTML5 (Pagedjs polyfills page areas / pagination stuff), CSS styles stuff, and Puppeteer runs a headless Chromium for the pdf render. It's straight from CSS GCPM W3C spec, a flavor of CSS Paged Media, drafts that have been percolating since frickin' 2006 but have never seen browser implementation.
The awesome document factory
Yeah, in the Python world there's WeasyPrint for PDF out in the wild as well. It's quite slick, but it's a harder sell because of Python, which corporate types seem to think is bad hacker central.
Web Extension for Firefox/Chrome/MS Edge and CLI tool to save a faithful copy of an entire web page in a single HTML file
Regarding a library of HTML documents: https://github.com/gildas-lormeau/SingleFile#install
Chrome extension that allows easy extraction of CSS and HTML from selected element.
Somehow related: I find Snappy Snippet extension (for Chrome) very interesting. It's supposed to let you make a "live" screenshot of a DOM element. Unfortunately, I've not tried it much as I only rely on Firefox in day to day browsing.
[iOS] [Alphaputt] [$1.99–> Free] [Miniature golf game with 26 different levels (A to Z), upto 4 players can play on the same device (pass-and-play multiplayer), no IAPs]
1 project | reddit.com/r/AppHookup | 8 Oct 2021
Can y'all still access the chrome web store from your UT email accounts?
1 project | reddit.com/r/UTAustin | 28 Sep 2021
Is there a way to publish a PDF report in a Jenkins job?
1 project | reddit.com/r/jenkinsci | 16 Sep 2021
Memez - Chrome Extension
1 project | reddit.com/r/ProgrammerHumor | 14 Sep 2021
Is Jasper still the best Report Engine?
2 projects | reddit.com/r/java | 2 Jul 2021