From: Michal H. <ms...@gm...> - 2010-05-05 07:17:53
|
Hi, On Tue, May 04, 2010 at 10:21:33PM +0200, Jozef Misutka wrote: > when adding/replacing text in a pdfoperator which uses font with unicode > mapping we do not map characters back to the original encoding. > > example: > > text operator with > "!@#" which is according to unicode mapping displayed as "123" > but if we add/replace with character 'c' > "!@#c" we do NOT get what expected! the CharCode 'c' (=0x63) will be > mapped to something unpredictable. > > 2michal: can you add a function which will return the number used by this > font to map it to c so we can use it in the rewrite function? This is on my long term TODO list. When I did the operators cleanup back in September last year this didn't get in due to the lack of time. https://sourceforge.net/mailarchive/message.php?msg_id=20080908220716.057622337%40gmail.com I have committed the patchset with this: https://sourceforge.net/mailarchive/message.php?msg_name=20081029151610.GD5425%40dhcp35.suse.cz Unfortunately, I cannot tell when I get to this. I am afraid that this will enforce some changes to the xpdf code because currently it is enc->char oriented. > > > thx, > jozef > > ------------------------------------------------------------------------------ > _______________________________________________ > Pdfedit-devel mailing list > Pdf...@li... > https://lists.sourceforge.net/lists/listinfo/pdfedit-devel -- Michal Hocko |