pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From prashant mangate <prashant.mang...@gmail.com>
Subject How to draw annotation rectangle in PDF
Date Thu, 20 Jan 2011 07:11:42 GMT
Hi,


I want to draw the rectangle on a existing PDF as a highlighter.

Existing PDF contains the table. and I want to highlight its cell by using
following code. But it display over the cell. It should looks like
transperent. (i.e highlighter)

contentStream.setNonStrokingColor(Color.pink);
contentStream.addRect(startX, startY+startY, width, height);
contentStream.fillRect(1.0f, 1.0f, 1.0f, 1.0f);



-- 
Thanks & regards
Prashant Mangate  (プロシャント・マングテ)
Software Engineer

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message