Someone did a Qt-based renderer for PDF (using Xpdf as the backend), so I know it can be done...
Leonard -----Original Message----- From: Pierre Marchand [mailto:[email protected]] Sent: Friday, January 02, 2009 12:22 PM To: [email protected] Subject: Re: [Podofo-users] podofobrowser experiences Vous (Dominik Seichter) avez écrit : > Well, it works when using the statically linked version of PoDoFo. > > Very nice, especially if you use a simple page like the LineTest page > created by CreationTest! :-) > > Of course it will be a real big amount of work to make this anywhere > complete, though it is helpful that QPainter now almost supports > everything PDF needs. > > Regarding your implemantion, it looks fine for basic needs. Leonard > pointed once out that one needs the concept of Display Lists for more > complicated operations or fast rendering, but as you just delegate to > QPainter and do not have fast rendering as a major goal it seems fine. + my idea, by now, is rather to have a preview with native Qt objects + which are pretty easy to manipulate(with in mind the project to commit in the content stream changes which would be made in the scene). the main difficulty will be text handling I think, because there’s nothing in Qt that can compare to PDF for text. Although once I get some trick to build a QFont based on a font descriptor, things should happen. > For PoDoFoBrowser, I think it would be fine if you would have the > preview side by side with the pages content stream. Since PodofoViewer is a descendant of QGraphicsView, it won’t be a pain to move it around until we get it in the right place, it’s simply done in Designer. Might even be in a separate window, so one could see more than one stream in the same time… > And if you type some PDF code > into the content stream, like "0 0 1 rg 100 100 m 200 200 l" it should > immediately draw a blue line. But this is dreaming :) Oh, I don’t think so, even it seems trivial compared to what i face now when implementing more features :) PS: I join the diff of my current work as I don’t trust my HD! -- Pierre Marchand ------------------------------------------------------------------------------ _______________________________________________ Podofo-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/podofo-users
