0
在WebViewer文件夾中使用Android示例我在Android Studio中有一個應用程序,該應用程序在我的設備上運行並按預期方式顯示xod文件。但是我試圖改變線路:PDFTron Android示例PDF
String documentPath = getFilesDir().getPath() + "/GettingStarted.xod";
InputStream in = getAssets().open("xod/GettingStarted.xod");
到
String documentPath = getFilesDir().getPath() + "/sample.pdf";
InputStream in = getAssets().open("xod/sample.pdf");
而且也改變了的endsWith(「黃嘌呤氧化酶‘)到的endsWith(’PDF」),但我只得到灰色的屏幕。爲了這個工作文件必須是.xod?由於它適用於xod文件,但不適用於pdf文件。
謝謝你的時間。
我剛剛還把android:pathPattern =「。* \\。xod」換成了android:pathPattern =「。* \\。pdf」,我現在得到下面的錯誤 - 「Uncaught Error:Error loading file:錯誤:簽名錯誤!「源文件指向CoreControls.js。只是認爲id提到這個更新,因爲它可能有助於解決它 –