Re: How to highlight text in PDF file
Tim Roberts <[email protected]>
| Newsgroups | gmane.comp.python.reportlab.user |
|---|---|
| Organization | Providenza & Boekelheide, Inc. |
| Message-ID | <[email protected]> |
Dang Quang Vinh wrote: > > Dear all, > > > > With ReportLab, how can I highlight a text like the following image: > You do it by hand. You compute the height and width of the string (which you can do with stringWidth and the font size or leading), then draw a yellow rectangle, of that size, then draw the text on top of it. > I think it is a basic feature of PDF reader application nowadays. > That's true. I do hope you understand that ReportLab is not a PDF reader, nor is it used for creating PDF reader applications. It is used to create PDF files. -- Tim Roberts, [email protected] Providenza & Boekelheide, Inc.