0

この行で 1 つのエラーが発生しました。これを何と言っていいのかわかりませんでした。また、私はqoppa.jarの1つのライブラリを使用しています。この問題を解決する方法は誰でも私を助けることができます

    m_LoadedDoc = new PDFDocument(new FilePDFSource((String) path[0]), PDFViewer.this);




    java.lang.ExceptionInInitializerError
    at com.qoppa.android.pdfProcess.PDFDocument$1.b(Unknown Source)
    at com.qoppa.android.pdfViewer.e.p.b(Unknown Source)
    at com.qoppa.android.pdfProcess.PDFDocument.b(Unknown Source)
    at com.qoppa.android.pdfProcess.PDFDocument.<init>(Unknown Source)
    at com.qoppa.android.pdfProcess.PDFDocument.<init>(Unknown Source)
    at com.pdfplugin.PDFViewer$LoadDocument.doInBackground(PDFViewer.java:469)
4

1 に答える 1

0

ドキュメントを読む前に呼び出す必要がある魔法の行があります。

// Magic: Register asset manager for font loading.
StandardFontTF.mAssetMgr = getContext().getAssets();

// Now you can read the document.
PDFDocument doc = new PDFDocument(new FilePDFSource(path), PDFViewer.this);

サンプル プロジェクトの ディレクトリassets/fontsとディレクトリを含める必要がある場合もあります。assets/cmaps

于 2013-11-07T15:29:47.590 に答える