[
https://issues.apache.org/jira/browse/PDFBOX-2337?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14128892#comment-14128892
]
John Hewson commented on PDFBOX-2337:
-------------------------------------
First of all, thanks.
It's unlikely that we'll add this to 1.8, because the focus is now on getting
2.0 finished and any new code in 1.8 needs to be present in 2.0 where the
internal APIs have changed. If you could port this code to work with the latest
trunk then we should be able to add it to PDFBox.
A few small thoughts:
- PDGamma should not be used for colors (in 1.8 you wanted PDColorState but in
the trunk it is now PDColor)
- Our coding conventions can be found at
https://pdfbox.apache.org/codingconventions.html
- You'll probably need to sign an [Apache CLA|http://www.apache.org/licenses/]
to contribute this much code, or a CCLA if you did this work under the
direction of an employer.
- The Apache header you've used is for ASF projects, e.g. "Licensed to the
Apache Software Foundation (ASF) under one or more contributor license
agreements." isn't true unless you've signed a CLA and contributed this code to
Apache.
> 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: Utilities
> Reporter: Joël Kuiper
> Priority: Minor
>
> 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)