gpt4 book ai didi

安卓pdf阅读器

转载 作者:塔克拉玛干 更新时间:2023-11-03 00:51:04 24 4
gpt4 key购买 nike

我想使用 Android pdf 库 http://andpdf.sourceforge.net/ ,但我有同样的错误。日志:

 ST='file 'no file selected' not found'
ST='reading page 1, zoom:1.0'

我的类(class):

public class Reader extends PdfViewerActivity {

public int getPreviousPageImageResource() { return R.drawable.left_arrow; }
public int getNextPageImageResource() { return R.drawable.right_arrow; }
public int getZoomInImageResource() { return R.drawable.zoom_in; }
public int getZoomOutImageResource() { return R.drawable.zoom_out; }
public int getPdfPasswordLayoutResource() { return R.layout.pdf_file_password; }
public int getPdfPageNumberResource() { return R.layout.dialog_pagenumber; }
public int getPdfPasswordEditField() { return R.id.etPassword; }
public int getPdfPasswordOkButton() { return R.id.btOK; }
public int getPdfPasswordExitButton() { return R.id.btExit; }
public int getPdfPageNumberEditField() { return R.id.pagenum_edit; }
}

public class StartScreen extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
Intent intent = new Intent(this, Reader.class);
intent.putExtra(PdfViewerActivity.EXTRA_PDFFILENAME, "/sdcard/test.pdf");
startActivity(intent);
}
}

最佳答案

这里有一些 Google Code 有一些不错的源代码,可以在 android 中阅读 pdf。

Link1

Link2

an awesome example

Link 4

Link 5

关于安卓pdf阅读器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13344304/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com