2013-03-21 3 views
2

mupdf와 같은 상업적 용도로 적합하지 않은 많은 라이브러리가 있음을 알고 있습니다. 우리 회사는 벤처 기업이며 많은 지출을 할 입장이 아닙니다. 저는 일하고 있습니다. 누구든지 단일 PDF를 렌더링하는 데 사용할 좋은 오픈 소스 라이브러리를 제안 할 수 있습니까? 아니면 유료 버전 중 하나를 선호 할 수 있습니까? 미리 감사드립니다.android에서보기에 PDF를 렌더링하는 가장 좋은 방법

+1

나는 좋은 무료 콘텐츠를 보지 못했습니다. 내가 보아온 알맞은 돈은 Raede, Qoppa, PdfTron이다. 그것은 가장 최악의 경우이며, 가장 비싼 것에서 가장 적은 것입니다. Qoppa는 제가 사용했던 제품으로, 가격과 성능면에서 최고의 장소입니다. –

+0

코멘트 주셔서 감사합니다. 한번 시도해 보도록하겠습니다. – coderock

답변

0

Google 문서 도구로 webview를 사용할 수 있습니다.

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 
xmlns:tools="http://schemas.android.com/tools" 
android:layout_width="fill_parent" 
android:layout_height="fill_parent" 
> 

<WebView 
android:id="@+id/wv" 
android:layout_width="fill_parent" 
android:layout_height="fill_parent"/> 

WebView wv= (WebView) findViewById(R.id.wv); 
wv.setVerticalScrollBarEnabled(true); 
wv.setHorizontalScrollBarEnabled(true); 
wv.getSettings().setBuiltInZoomControls(true); 
wv.getSettings().setJavaScriptEnabled(true); 
wv.setWebViewClient(new WebViewClient()); 
wv.loadUrl("https://docs.google.com/file/d/0B8ZDVNCvRWK8c3YzQVFaWjg1bEU/edit")//pdf uploaded to google docs. Some cases requires users to login and requires permission of the owner of the doc. 

당신이 의도를 사용할 수 있습니다

. 휴대 전화에는 pdf 리더 애플리케이션이 있어야합니다.

File file = new File("/sdcard/example.pdf"); 
      if (file.exists()) { 
       Uri path = Uri.fromFile(file); 
       Intent intent = new Intent(Intent.ACTION_VIEW); 
       intent.setDataAndType(path, "application/pdf"); 
       intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); 

       try { 
        startActivity(intent); 
       } 
       catch (ActivityNotFoundException e) { 
        Toast.makeText(OpenPdf.this, 
         "No Application Available to View PDF", 
         Toast.LENGTH_SHORT).show(); 
       } 

http://code.google.com/p/apv/source/checkout. APV PDF 뷰어

http://code.google.com/p/apdfviewer/. APDF 뷰어.

+0

난 내 응용 프로그램에 PDF 리더를 포함하고 싶습니다 그리고 나는 꽤 빨리 읽을 수있을 때 다운로드 및 memory.So에 보관이 좋은 생각이라고 생각합니다. – coderock

관련 문제