2009/10/8 Luke Paireepinart <[email protected]>: > > On Thu, Oct 8, 2009 at 11:47 AM, sticksen <[email protected]> wrote: >> >> is it possible to draw PDF files to a screen via pyglet? > > I doubt Pyglet has any builtin functionality for rendering PDFs. However, > I'm sure you can get an application to render a PDF to an image, then just > load it in Pyglet. Is there a reason that wouldn't work?
An alternative could be to convert the PDF to SVG, then use Squirtle to load and draw the SVG in pyglet. This would give you vector graphics instead of a bitmap. Disclaimer: I haven't used Squirtle, and I haven't used any PDF to SVG converters, so I don't know how well this works, but it could be worth looking into. http://www.supereffective.org/pages/Squirtle-SVG-Library -- Mikael Lind http://elemel.se/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pyglet-users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/pyglet-users?hl=en -~----------~----~----~----~------~----~------~--~---
