Skia to printer?

903 views
Skip to first unread message

sha...@infograph.com

unread,
Jun 8, 2016, 7:55:29 PM6/8/16
to skia-discuss
Has anyone put thought into printing Skia output?  Like, maybe, a surface that outputs postscript, the way the pdf and svg surfaces do?

A coder could always print out raster bands and have Skia render raster data, but that tends to be intensive use of memory, bandwidth and time.

Tom Hudson

unread,
Jun 8, 2016, 9:19:23 PM6/8/16
to skia-d...@googlegroups.com

We use PDF for printing.

On Jun 8, 2016 7:55 PM, <sha...@infograph.com> wrote:
Has anyone put thought into printing Skia output?  Like, maybe, a surface that outputs postscript, the way the pdf and svg surfaces do?

A coder could always print out raster bands and have Skia render raster data, but that tends to be intensive use of memory, bandwidth and time.

--
You received this message because you are subscribed to the Google Groups "skia-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to skia-discuss...@googlegroups.com.
To post to this group, send email to skia-d...@googlegroups.com.
Visit this group at https://groups.google.com/group/skia-discuss.
For more options, visit https://groups.google.com/d/optout.

sha...@infograph.com

unread,
Jun 8, 2016, 10:19:52 PM6/8/16
to skia-discuss
What platform?

Hal Canary

unread,
Jun 9, 2016, 7:59:25 AM6/9/16
to skia-discuss
Chrome uses Skia→PDF→Pdfium→printer on all platforms.

We looked at writing a PS backend for Skia to talk directly to printers. It's feasible, but we'd also have to write a PCL backend to talk to printers that don't support PS.

If I understand the situation:
  • On MacOS, you can print PDF directly.
  • On most Linux desktops, the CUPS system will do the necessary conversions from PDF.
  • On Windows, Chrome relies on Pdfium to convert to PDF→EPS.  This is less than optimal, and there are several unresolved issues with this process.  Windows (6.0+) accept XPS as print format. Therefore, we have the experimental SkXPS backend.

sha...@infograph.com

unread,
Jun 9, 2016, 11:02:46 AM6/9/16
to skia-discuss
Thanks!  I will look into the SkXPS surface as well as the PDFium library.

wst wst

unread,
Apr 23, 2021, 3:52:34 AM4/23/21
to skia-discuss

We are using SkiaSharp -with XPS printing. The SkiaSharp XPS handling is already great but could use some improvements! We've reported also some issues to the Microsoft team regarding XPS / .NET 5 so might only be getting better!
Op donderdag 9 juni 2016 om 17:02:46 UTC+2 schreef sha...@infograph.com:
Reply all
Reply to author
Forward
0 new messages