[jira] [Comment Edited] (PDFBOX-2337) Add an example for highlighting text based on a string
[ https://issues.apache.org/jira/browse/PDFBOX-2337?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14167755#comment-14167755 ] John Hewson edited comment on PDFBOX-2337 at 10/10/14 11:15 PM: I see that demand for this feature goes all the way back to PDFBOX-21. Does this issue replace the need for PDFBOX-1767 also? was (Author: jahewson): I see that demand for this feature goes all the way back to PDFBOX-21. > Add an example for highlighting text based on a string > --- > > Key: PDFBOX-2337 > URL: https://issues.apache.org/jira/browse/PDFBOX-2337 > Project: PDFBox > Issue Type: New Feature > Components: Utilities >Affects Versions: 1.8.7, 2.0.0 >Reporter: Joël Kuiper > Fix For: 1.8.7 > > > An often heard request is to be able to highlight a certain text within a PDF > programmatically, similar to the highlight functionality in Acrobat or > Preview.app. > The actual implementation of this functionality is trickier than it appears, > since it requires the calculation of bouding boxes from TextPositions. > A example class may help people with implementing this (common) > functionality. > (see for example this discussion > https://mail-archives.apache.org/mod_mbox/pdfbox-users/201409.mbox/%3CC8340BB9-E299-4A76-A50B-6155504A0D5B%40joelkuiper.eu%3E) > -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Comment Edited] (PDFBOX-2337) Add an example for highlighting text based on a string
[ https://issues.apache.org/jira/browse/PDFBOX-2337?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14129931#comment-14129931 ] Joël Kuiper edited comment on PDFBOX-2337 at 9/11/14 11:56 AM: --- I'll change the License header and code style (assuming the Eclipse settings in the repo are still up to date), also I'd be happy to sign a CLA if needed. I could port the functionality to 2.0, however I need (a modified version) of this code in production which still runs 1.8 … so I'll probably only do that after a public release of 2.0 (even a pre-release would be fine, as long as it is in Maven) was (Author: joelkuiper): I'll change the License header and code style (assuming the Eclipse settings in the repo are still up to date), also I'd be happy to sign a CLA if needed. I could port the functionality to 2.0, however I need (a modified version) of this code in production which still runs 1.8 … so I'll probably only do that after a public release of 2.0 (even a pre-release would be fine, as long as it in Maven) > Add an example for highlighting text based on a string > --- > > Key: PDFBOX-2337 > URL: https://issues.apache.org/jira/browse/PDFBOX-2337 > Project: PDFBox > Issue Type: New Feature > Components: Utilities >Reporter: Joël Kuiper > > An often heard request is to be able to highlight a certain text within a PDF > programmatically, similar to the highlight functionality in Acrobat or > Preview.app. > The actual implementation of this functionality is trickier than it appears, > since it requires the calculation of bouding boxes from TextPositions. > A example class may help people with implementing this (common) > functionality. > (see for example this discussion > https://mail-archives.apache.org/mod_mbox/pdfbox-users/201409.mbox/%3CC8340BB9-E299-4A76-A50B-6155504A0D5B%40joelkuiper.eu%3E) > -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Comment Edited] (PDFBOX-2337) Add an example for highlighting text based on a string
[ https://issues.apache.org/jira/browse/PDFBOX-2337?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14128342#comment-14128342 ] Joël Kuiper edited comment on PDFBOX-2337 at 9/10/14 11:16 AM: --- Here is a working implementation https://gist.github.com/joelkuiper/331a399961941989fec8 It may still require some refactoring but calling the file with will highlight the pattern in yellow was (Author: joelkuiper): Here is a working implementation https://gist.githubusercontent.com/joelkuiper/331a399961941989fec8/raw/9bc1a13eca6577c70c3a309214424cd6b0f2d3e6/TextHighlight It may still require some refactoring but calling the file with will highlight the pattern in yellow > Add an example for highlighting text based on a string > --- > > Key: PDFBOX-2337 > URL: https://issues.apache.org/jira/browse/PDFBOX-2337 > Project: PDFBox > Issue Type: Wish > Components: Documentation, Utilities >Reporter: Joël Kuiper >Priority: Minor > Labels: example, examples > > An often heard request is to be able to highlight a certain text within a PDF > programmatically, similar to the highlight functionality in Acrobat or > Preview.app. > The actual implementation of this functionality is trickier than it appears, > since it requires the calculation of bouding boxes from TextPositions. > A example class may help people with implementing this (common) > functionality. > (see for example this discussion > https://mail-archives.apache.org/mod_mbox/pdfbox-users/201409.mbox/%3CC8340BB9-E299-4A76-A50B-6155504A0D5B%40joelkuiper.eu%3E) > -- This message was sent by Atlassian JIRA (v6.3.4#6332)