any way to take a gio canvas and render it to PDF ?
Looking for ways to take the gio canvas and then export it as a PDF.
Because the Canvas is rendering engine "agnostic" then maybe it's possible ?
The reason i ask is because then i can print to a printer with gio
Currently you can build up a canvas and display this inside Gio (or send it to a PDF renderer). Or do you want the reverse, where you draw stuff within Gio (without using this library), and then pipe that into this library to export a PDF. The last case is not possible (but not impossible), but the first case is fairly simply: use Canvas to build up your frame, then pipe that to the Gio renderer to display within Gio, while also piping to the PDF renderer to export a PDF.
I want to build a gio canvas that I display to the user.
then if they click “Print” I want to pipe that to pdf.
The pdf will probably be held in memory but not fully sure yet cause different print preview systems work a bit differently per OS it seems.
the pdf will then be used to interact with a gio native package that enables printing to a printer via the print preview dialogue that is native on each OS.
it’s here : https://github.com/gedw99/gio-print
still under construction :)
Nice work! Looks interesting, let me know if you need any help ;-)
thanks. Will yell when i get to the pipelining aspects if i get stuck.