Commit 2396603b by Kim Jinsung

Foxitライブラリ差し替え(Ver6.0-> Ver.9.0)

parent 99bc37b0
...@@ -15,6 +15,7 @@ import com.foxit.sdk.common.fxcrt.RectF; ...@@ -15,6 +15,7 @@ import com.foxit.sdk.common.fxcrt.RectF;
import com.foxit.sdk.common.fxcrt.RectFArray; import com.foxit.sdk.common.fxcrt.RectFArray;
import com.foxit.sdk.pdf.PDFDoc; import com.foxit.sdk.pdf.PDFDoc;
import com.foxit.sdk.pdf.PDFPage; import com.foxit.sdk.pdf.PDFPage;
import com.foxit.sdk.pdf.TextPage;
import com.foxit.sdk.pdf.TextSearch; import com.foxit.sdk.pdf.TextSearch;
import java.util.ArrayList; import java.util.ArrayList;
...@@ -40,8 +41,8 @@ public class FoxitPdfCore { ...@@ -40,8 +41,8 @@ public class FoxitPdfCore {
private static int initErrCode = Constants.e_ErrSuccess; private static int initErrCode = Constants.e_ErrSuccess;
private static String sn = "nuSqGjKW5sNcvbr0waEwA4AkknAm89dnc0IotgiDBrFMIEj8lZL2Vw=="; private static String sn = "sA/GtgkqEVC8DF1pZxMjg1zAsUMXRtOwVneujMETAMrGBtssoE0f+g==";
private static String key = "ezJvj93HtBp39Js1IV0+hIVMn8rGV3voKx6cpoHGePP9qnxzhL01h+6eci/YaEKQbTsM6V7ink8XwjLytd9+TcQT6YHm0K1fNquW/0FiyvS+pOeZRXyk6eWf9kgTLtiKOZ/4ZCUVYpjBmRrZfI2DRdD8GwHu3PHwVRWnWKTuJYrPWEc4u+plAbOrHhzRMMBwn/Ur6Ka9ycwFgCjgpElRGAWPvjt3DSisls0UNJn3fLtb+j0aDhYdwtttJJpUbxkr7Y59gPtVgooNEgZABD0Gf+U/zxRK591hueouzxnt6I+SCznXrv2hQVjjPhau8u1Z1/kQaITGgxFy+7SuGDK/OhZOxOOTIwwHFVlKkxLGLhfMJj/7ofp4Msx9G0yv5BHl+w45y+2qTFVAdY37cwl90EbBSH1BddVByMVMK35b0/89Y9CnJV+NxFF1T27dWs+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0HECx+o01/fXx7sPxrougpKm5muCnCrBI0DYbs9Vw/pL0MvA6/R9YtjuuYdK684F33crOJMRS/jQ1R00oMhzejuuGCEJyySVK0Ouj0mKf52bzglFioe1SGlQWmyVh6jRbopjgHg0Duy8eL2xznqKBSU8vfnPOq0eBl0JixxNR/B8waEMiKQcHZDKgeCk7ylyv6D/HwSUCJZ1rSzSv+40E6EKumdaSY/KIG3dleHrXwzHQckKxyM6/tWd5OvenoTtUvKTBFvv8DrwW1R47Es/uPf67ntFVO8TvhezkYyQrGpCJ0tjzMzHsodPnFPNBoBJiJWGKCmtc2C2m4yU+A3DP14uS+BmpHOAIAP3sdcY5R/cKFoAg7pOtD52ygeOKRSQk/79CZ4WOS01fnoD7h9VTMQCXELzn6lAwDlFS0fFn3F+6/PmLNMJIJB6raTD+eecItoTqN8dts+yhhFtoFa4PeZsR0CI/3E3j5lZeQ9m4501HZBti0Y7YOWyNKTkkhUdTpBmvSRRMTJksmSH9wlKPhzSTAgHSZRawGKjAZHtSh7bWTK9b7fyTTqrzIiei9v0GmiwNtRKKTLiP+YWOHkq85IzT8lJG3HUkdIXLxKwDF6mr25CqcjEfOSSx6XcTfBAoN1dEcQHlAxMusVVW2Q/KvTN74tkH3g5cMIl/SkOh+tUSsaj22//fvxMB1gsmymCgwSobRX8zJ4TgO8J8enD9IjkFfu/zMyGaAN6HgW3GbvJgHNCAj9zHdqpZ173Nj/R/Lc/GBnJVpMWc23Nj9froMAEYs254TzvEQD1FeMnNXRQWL7SPVQ64rqJGeYOFkr8kjQonB5CPtD7DGjVKWLh56LLuuUpetB25jClGNe3RDBPJP20ukB6S/FQIoApihfONIy0bUoNJgWi5Awjlsq4Q3cPEqvlLPrTNYhxY";
static { static {
System.loadLibrary("rdk"); System.loadLibrary("rdk");
...@@ -213,13 +214,8 @@ public class FoxitPdfCore { ...@@ -213,13 +214,8 @@ public class FoxitPdfCore {
List<RectF> rectFList = new ArrayList<>(); List<RectF> rectFList = new ArrayList<>();
TextSearch textSearch = null; TextSearch textSearch = null;
try { try {
textSearch = new TextSearch(mPDFDoc, null); textSearch = new TextSearch(mPDFDoc, null, TextPage.e_ParseTextNormal);
PDFPage pdfPage = mPDFDoc.getPage(page); PDFPage pdfPage = mPDFDoc.getPage(page);
if (textSearch == null) {
Logger.e(TAG, "create text search error");
return null;
}
if (!textSearch.setPattern(searchText)) { if (!textSearch.setPattern(searchText)) {
Logger.e(TAG, "set keywords error"); Logger.e(TAG, "set keywords error");
textSearch.delete(); textSearch.delete();
......
No preview for this file type
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment