如何隐藏在Android上的PDF特定的词? [英] How can I hide particular words in a PDF on Android?

查看:179
本文介绍了如何隐藏在Android上的PDF特定的词?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想实现一个Android应用程序中阅读PDF文件。我想隐藏它特定的单词。

I am trying to implement reading a PDF within an Android app. I want to hide particular words from it.

我已经下载一个PDF阅读器库。它打开正常,但我不知道是否有可能隐藏的话该文件中

I have downloaded a PDF viewer library. It opens properly but am not sure whether it is possible to hide words in that document.

是否有任何可用的库,可以做到这一点?

Is there any library available that can do this?

请帮帮我!

先谢谢了。

推荐答案

可能是你正在使用muPDF图书馆,认真muPDF或其他库这使得PDF使用图像呈现数据,他们是不是在文本格式,所以你想要的修改将是pretty很难做到这一点。

May be you are using muPDF Library and seriously muPDF or other libraries which renders PDF uses Images for rendering data they are not in text format so the modifications you want will be pretty hard to do so.

您可以使用iText库对于这一点,iText库可以从PDF中提取文本,然后你显示文本,只要你想。

You may use iText Library for this, itext Library can extract the text from PDF and then you show the text as you want.

这篇关于如何隐藏在Android上的PDF特定的词?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆