Am 31.08.2016 um 09:11 schrieb Yurii Luchkiv:
Hello PDFBox team.

How are you?
I am working on highlighting text in PDFs. I found solution and seems it is
the good one. I add few more issues that our requirements needs.
It is working well when the saved PDF open in Preview tool or Safari (I am
using Mac).
But when open result PDF in Google Chrome or Mozilla it is not working?
Do you have any idea why this could happen?
I really appreciate your response. Thanks in advance.

Posts I used:
https://gist.github.com/joelkuiper/331a399961941989fec8
https://gist.github.com/joelkuiper/9eb52555e02edb653dcf

I looked at the result file ( http://www.filedropper.com/output3 ). There are several possible explanations:

- the CA / ca values of 2 are likely incorrect. From my understanding these should be between 0 and 1. (try it) - the annotations don't have an appearance stream. Some tools (e.g. Adobe) create it themselves, some don't. PDF.js and PDFBox both have trouble with this. What you can do is to open it with Adobe and save it. It is then displayed on PDF.js.

Weird thing:
I tried to display the saved file in PDFBox. Instead of yellow, the mark is purple. After editing the file so that they are 1, the color was OK. (Btw the result is really nice :-) Why isn't this in our code?! )

Tilman


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to