PdfPig icon indicating copy to clipboard operation
PdfPig copied to clipboard

Hightlight

Open ricardocduarte opened this issue 5 years ago • 6 comments
trafficstars

Do we have any way to highlight texts ?

ricardocduarte avatar Aug 08 '20 21:08 ricardocduarte

Hi @ricardocduarte, unfortunately PdfPig does not support this at the moment. In a PDF highlighting is a type of annotation. There is an issue outstanding to implement support for annotations https://github.com/UglyToad/PdfPig/issues/159. In the meantime you may be able to achieve what you need with PdfSharpCore https://github.com/ststeiger/PdfSharpCore.

At some point PdfPig will be updated to support editing existing documents #27 but I don't have any time to work on new features at the moment, sorry.

EliotJones avatar Aug 09 '20 11:08 EliotJones

I actually need an alternative for PyMuPDF and this is perfect. Only thing that's missing is the annotation part. I'd be more than happy to contribute to it. I got it cloned and reading through it right now. But if you point me to something like trello and actually plan out what needs to be done, I can invest a day or so everyweek for it.

SimantoR avatar Sep 11 '20 23:09 SimantoR

Hi @SimantoR thanks for your interest. I don't currently have anything like a roadmap but I'll try to put something together this coming weekend and we can go from there?

EliotJones avatar Sep 14 '20 13:09 EliotJones

Sounds great. Also do let me know if there are code styles to follow and if they come with the repository

SimantoR avatar Sep 21 '20 05:09 SimantoR

@EliotJones Any update on it? I might be able to provide 2 (including me) developers to the effort from my company.

SimantoR avatar Oct 10 '20 18:10 SimantoR

Hi @SimantoR, sorry for not getting back to you, life has been hectic. In order to work out what the best way to approach this I wanted to check; is your use-case to add highlights to existing documents or only for highlights in new documents created with PdfDocumentBuilder? In the case of new documents it's a fairly small project but if it's for existing documents then it may be considerably more work, because PdfPig doesn't currently have support for editing existing documents. I may be moving country this coming weekend so my availability is limited for a bit longer, but I think once we know what the scope of the project should be we can create a GitHub project to track issues under. Thanks for your patience :)

EliotJones avatar Oct 13 '20 08:10 EliotJones