From: Michal H. <ms...@gm...> - 2009-08-11 07:12:48
|
On Mon, Aug 10, 2009 at 11:51:51PM +0000, Jozef Misutka wrote: > Update of /cvsroot/pdfedit/pdfedit/src/kernel > In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv6344 > > Modified Files: > cpage.h cpagecontents.cc cpagecontents.h > Log Message: > > -- new helper function to add text (michal is also mentioning its importance) Thx! > -- todo #1 - > sane font specification Color and size would be good as well. What about something like struct FontSpec { std::string *fondId; ??? *fontColor; ??? *backgroundColor; // other attributes }; Only non-NULL will be used. Some helper functions for proper initialization: initFontFromName(const std::string &name, bool addIfNotPresent); initColorFromRGB()... > add to beginning because not correct pdf files can corrupt x,y position Wouldn't this mean that the text would be under other objects (images, text, ...) > pdf operator reimpl because now working with them is pain in the ass > > [...] > Index: cpagecontents.h > =================================================================== > RCS file: /cvsroot/pdfedit/pdfedit/src/kernel/cpagecontents.h,v > retrieving revision 1.6 > retrieving revision 1.7 > diff -u -d -r1.6 -r1.7 > --- cpagecontents.h 6 Apr 2009 15:24:59 -0000 1.6 > +++ cpagecontents.h 10 Aug 2009 23:51:49 -0000 1.7 > @@ -180,6 +180,12 @@ > void replaceText (const std::string& what, const std::string& with); > > /** > + * Replaces text in the whole page. > + */ Typo? > + void addText (const std::string& what, > + const libs::Point& where); > + > + /** > * Get text source of a page. > */ > template<typename WordEngine, -- Michal Hocko |