[poppler] Text search and Highlight using SplashOutputDev

Albert Astals Cid aacid at kde.org
Tue Aug 23 04:20:54 PDT 2011


A Dimarts, 23 d'agost de 2011, Mohit Tanwar vàreu escriure:
> Hello,

Hi
 
> Is it possible to highlight the text whose co-ordinates have been obtained
> by textOutputDev?
> I want to convert the pdf to image with the splash output dev.
> SplashBitmap = splashoutputdev->takeBitmap() // this bitmap should have
> search texted highlighted.
> and then i can convert the bitmap to jpeg.
> 
> Can you please suggest how to do it.

I don't think you can do that, but you can just load the bitmap into a image 
and then paint over it at a later stage with the coordinates given by 
textoutputdev.

Albert

> 
> Thanks & Regards
> Mohit


More information about the poppler mailing list