简体   繁体   English

突出显示pdf iphone中的字符串

[英]Highlighting a string in a pdf iphone

I'm developing a book app.My client has provided all the contents of pdf . 我正在开发一本书app.My程序。我的客户提供了pdf所有内容。

I have already implemented all the contents of pdf to book. 我已经实现了pdf所有内容来预订。

But he wanted to highlight a text in that pdf. 但是他希望在pdf中突出显示一个文本。

The user would like the text to allow for highlighting (like if you're reading a paper book). 用户希望文本允许突出显示(例如,如果您正在阅读纸质书)。

Is this possible? 这可能吗? Can anyone help me on this, please? 有人可以帮帮我吗?

Thanks in advance. 提前致谢。

Theoretically yes.. depends on a bit hacking and other things, for example fonts used in the PDF. 理论上是的..取决于有点黑客和其他东西,例如PDF中使用的字体。 Have a look at PdfKitten, their demo project can find text in a PDF and highlight it. 看看PdfKitten,他们的演示项目可以在PDF中找到文本并突出显示它。 That should give you a first pointer on how to highlight. 这应该给你一个关于如何突出显示的第一个指针。 If you want to the user to highlight with the touches you would need to be able to transform locations of touches into the PDF to determine where exactly the user touched, but it should be possible. 如果您希望用户突出显示触摸,您需要能够将触摸位置转换为PDF以确定用户触摸的确切位置,但应该可以。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM