by bradgessler · 2y ago · 0 comments
It works now, but first you have to download a PDF and print that. Google Docs does this too when you hit "Print".
I've tried hacks like load the PDF in an iframe and use some JavaScript to print that, but then I get footers with the URL of the webpage, which doesn't work for my purposes.
If you work on Chrome/Blink, Safari/Webkit, or Firefox/Mozilla please please please at least get the hacks working!
A CSS standard would be great, but really I'd be happy if I could call a function like `windows.print("/document.pdf")` and have it print the PDF without all the footer/headers stuff.
You will need adobe acrobat (free). This is a very old trick but still works on Windows 10. We use it with the latest edge.
I do wish that the browser had a special direct printing option.
https://groups.google.com/g/comp.text.pdf/c/dHuBMsaovco?pli=...
I would like to have a thermal printer that plugs into the computer via USB and appears as a mass storage device. When you drop an image file (PNG, BMP) into it, it prints it out. A config file would tell the printer what paper stock you have loaded. This way the computer does not need any special drivers, and it would be so stupidly easy to write programs that generate image files to be printed. I think more hardware should take advantage of filesystem operations as a control method.
If someday you ever think about producing a first-party thingybase printer...
Not if you need to support a bunch of different printers.
For me PDF is the way to go, but browsers can't print a PDF via a "Print" button within the HTML, so instead I have to build apps that download the PDF and print it directly through operating system APIs.