Can I render a PDF file using Skia?

4,491 views
Skip to first unread message

Arko Nasipuri

unread,
Jun 27, 2018, 4:11:22 AM6/27/18
to skia-discuss
I know that Skia has a PDF backend and I can use it to render something *to* a PDF file.

But I want to do the opposite: I have a PDF file and I want to rasterize it onto an SkCanvas.
Does Skia support this? I was not able to find any Skia API that does this.

If Skia does not support this directly, is there any other open-source library that parses a PDF file and then rasterizes it using Skia?
How does chromium render PDF files?

Cary Clark

unread,
Jun 27, 2018, 8:13:13 AM6/27/18
to skia-d...@googlegroups.com
Chrome uses pdfium. It in turn is built on antigrain, which is no longer maintained. 
pdfium has a code path that uses Skia to draw, but the feature set required by PDF is not a good match for Skia's capabilities; that code is not complete.


--
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.
Reply all
Reply to author
Forward
0 new messages