本文介绍了搜索词语的PDF和Android的利用iText提取它的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近下载的iText 5.3.3,我有一点使用它的麻烦。

做了什么班我使用的搜索词,并从PDF中提取它们,并在Android中显示的文字?

我见过的类 PdfTextExtractor ,我想知道在课堂上有一个与 TextExtractionStrategy策略的参数的方法。被他们指的是什么TextExtractionStrategy?

 公共静态字符串getTextFromPage(PdfReader阅读器,
                                 INT的PageNumber,
                                 TextExtractionStrategy策略)
 

解决方案

您可以检查这些链接它,它还会告诉你关于 TextExtractionStrategy (最后一个环节):

http://itextpdf.com/examples/iia.php?id=275
http://itextpdf.com/examples/iia.php?id=277
http://itextpdf.com/examples/iia.php?id=278

I recently downloaded iText 5.3.3 and i'm having a bit of a trouble using it.

What classes do i use to Search Words and Extract them from the PDF and display the text in Android?

I have seen the class PdfTextExtractor, i want to know in the class there is a method with a parameter of TextExtractionStrategy strategy. what TextExtractionStrategy are they referring to?

    public static String getTextFromPage(PdfReader reader,
                                 int pageNumber,
                                 TextExtractionStrategy strategy)
解决方案

You can check these links for it, it also tell you about TextExtractionStrategy (last link):

http://itextpdf.com/examples/iia.php?id=275
http://itextpdf.com/examples/iia.php?id=277
http://itextpdf.com/examples/iia.php?id=278
http://api.itextpdf.com/itext/com/itextpdf/text/pdf/parser/TextExtractionStrategy.html

这篇关于搜索词语的PDF和Android的利用iText提取它的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-16 10:47