Questions tagged [androidpdfviewer]

Android Pdf Viewer Library created by @barteksc available on GitHub.

Library for displaying PDF documents on Android, with animations, gestures, zoom and double tap support. It is based on PdfiumAndroid for decoding PDF files. Works on API 11 (Android 3.0) and higher. Licensed under Apache License 2.0.

82 questions
9
votes
1 answer

Adding Text/Annotations into existing PDF file and View/Rendering the output in android

I am working on a pdf editor. I have made my changes on pdf files with OpenPDF core that is based on iText And I am viewing the Pdf file with AndroidPdfViewer My problems are: Adding new annotations like text or tags or icons into an existing pdf…
Hamid Reza
  • 624
  • 7
  • 23
9
votes
1 answer

PDF opens and closes immediately

In my application I am downloading pdf to Download folder and I am trying to open using below code. String FileName="CardsDecks"; File imagePath = new File(this.getFilesDir(), "Download"); File newFile = new File(imagePath, FileName+ ".pdf"); Uri…
Ajinkya kadam
  • 542
  • 1
  • 6
  • 16
8
votes
4 answers

Android create and print pdf from layout view

I am trying to create PDF file from xml layout view. I have a listview in that layout, adding items and setting height based on child. PDF is creating but not filling the whole page. What I have tried is, PdfDocument.PageInfo pageInfo = new…
Exigente05
  • 2,161
  • 3
  • 22
  • 42
5
votes
4 answers

barteksc/AndroidPdfViewer massive APK Size

We included this AndroidPdfViewer library to support viewing of PDF reports in the app. It lead to massive increase in APK size from 4.7Mb to 20.1Mb . Is there a way to reduce this size. Let me know where and what to tinker around to help or solve…
appbootup
  • 9,537
  • 3
  • 33
  • 65
4
votes
1 answer

Error:(16, 0) Could not find method android() for arguments

i got that error 16,0 in pdf viewer when i try to open it in android studio https://github.com/barteksc/AndroidPdfViewer buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle:2.2.3' classpath…
Heri
  • 61
  • 6
4
votes
1 answer

PDF page navigation issue

As per the SO recommendations, I am using following library to render PDF file. https://github.com/barteksc/AndroidPdfViewer This pdf contains link to redirect to pages. First page is like index. It has list of link to navigate to a particular page…
Rohan Patel
  • 1,758
  • 2
  • 21
  • 38
3
votes
1 answer

How to view pdf in android browser?

friends, any one guide me how can i view pdf file in android browser? or any other useful way? any help would be appreciated.
UMAR-MOBITSOLUTIONS
  • 77,236
  • 95
  • 209
  • 278
2
votes
0 answers

Read PDF File in Assets folder through PdfRenderer without creating tempfile

I have a pdf file in Assets folder and would like to open it up. I need to create a File as below in order to set as a ParcelFileDescriptor to pass to the PdfRenderer. private val pdfRenderer by lazy { val file = File(cacheDir,…
Elye
  • 53,639
  • 54
  • 212
  • 474
2
votes
2 answers

kotlin androidpdfviewer lib doesn't seem to load

I am working with android pdfviewer lib to open and read a pdf, found at : https://github.com/barteksc/AndroidPdfViewer But i got an error when i try to launch the pdf : E/zygote64: No implementation found for long…
XCarb
  • 735
  • 10
  • 31
2
votes
2 answers

Android PDF viewer crashes when app is minified

I am using https://github.com/barteksc/AndroidPdfViewer for displaying pdf in my app. But when I build app with minify and shrink resource true, my app crashes when app starts to display pdf viewer. Error I get 2020-01-13 17:05:55.589 10984-10984/?…
RateM
  • 241
  • 1
  • 4
  • 15
2
votes
0 answers

Android Pdf Viewer Library : PDF is not loading using URL

Using URL, I am trying to load pdf through AndroidViewLibrary. But throwing error "java.io.FileNotFoundException: No content provider: https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf" Below is my code. override fun…
Hardik Patel
  • 91
  • 1
  • 4
2
votes
1 answer

barteksc/AndroidPDFViewer hyperlinks not working

I'm using androidPDFViewer and it works fine, however the hyperlinks in the pdf files are not clickable. How can I fix this? pdfView = (PDFView) findViewById(R.id.pdfView); pdfView.fromAsset("magazine"+ magazine…
2
votes
0 answers

How to make programmatically added annotation sub-view scrollable over keyboard

I want to use annotation on my PDF view. For loading PDF, I have used AndroidPdfViewer library Now I have added view programmatically over it. ScrollView - If I use scrollview which is having edit text, as soon as my keyboard opens, my custom added…
pratik03
  • 651
  • 2
  • 7
  • 23
2
votes
1 answer

How to Split the PDF in Android?

I am working with pdfviewer in Android. That PDF will download full documents which contains 100 pages. Now I need to download single page wise and show it. Currenty I am using DjvuDroidCodecLibrary. So can anybody help me?
user651475
  • 51
  • 1
  • 4
1
vote
1 answer

Android: Trying to compile native code, getting UnsatisfiedLinkError: No implementation found

I am trying to fork AndroidPdfViewer to replace its underlying library from PdfiumAndroid to android-pdfium. My problem is, when I load AndroidPdfViewer and PdfiumAndroid in Android Studio, I can't get the project to work, even before changing…
1
2 3 4 5 6