[reportlab-users] How to highlight text in PDF file
Tim Roberts
timr at probo.com
Mon Jun 23 13:22:59 EDT 2014
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, timr at probo.com
Providenza & Boekelheide, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://two.pairlist.net/pipermail/reportlab-users/attachments/20140623/91d25424/attachment-0001.html>
More information about the reportlab-users
mailing list