182 questions
0
votes
1
answer
100
views
Android: how test PDFView in Roboelectric?
I used PDFView to display PDF files, which was a success. But I don't know how to test this method in unit tests.
com.github.barteksc.pdfviewer.PDFView pdfview = mainView.findViewById(R.id.pdfview);
...
0
votes
1
answer
301
views
android print from pdfview
I have an app is working with PDFView. Today I added buttons for print by send data to printer directly. Do you have any solution, how to print data from PDFView just click on button. Note: Below ...
1
vote
1
answer
662
views
not getting highlight option in "menu" in pdfview in ios swift
I am getting only these 3 options every time
while my whole code is working any help will be appreciated.
let selections = pdfView.currentSelection?.selectionsByLine()
guard (selections?....
7
votes
2
answers
4k
views
PDFKit: PDFView doesn't resize when device rotated
I have an iPad app displaying a PDFView. The app is rotatable to any orientation. The PDFView is full-screen and single-page. The PDF displays as expected when launched in either orientation; the ...
9
votes
2
answers
4k
views
How to know when user swipes to next page in PDFView of PDFKit?
In my iOS-App I'm using a PDFView with pdfView.usePageViewController(true, withViewOptions: nil).
I want to hide the PDFThumbnailView when the user swipes to another page.
I already looked inside ...
5
votes
4
answers
2k
views
How to eliminate PDFView "page shadow"?
When an iOS PDFView is added to a UIView, the PDFView's page area adds a shadow-like border. Is there a way to eliminate the shadow?
I know a few messy ways to do this: Extend the bounds off-screen, ...
0
votes
1
answer
717
views
Configuring keyboard settings within PDFView form fields
I'm working on an app which loads PDF files from a server and displays those PDF files within a PDFView. The files contain form fields in which the user is to type. That's works fine. The PDF files ...
-1
votes
1
answer
204
views
How to open Last Viewed PDF from my App using Shared Preferences in Android?
I made an Android app that has a lot of pdf serially in a listview. Now I want to give a feature to the user that the user can view his/her last viewed PDF with a Floating Action Button. This FAB will ...
3
votes
3
answers
2k
views
How to create a single page vertical scrolling PDFView in Swift
I am trying to make a vertical scrolling PDFView using the following code:
pdfView = PDFView(frame: view.frame)
pdfView.backgroundColor = UIColor.white
var documentName: String = "test"
if let ...
0
votes
1
answer
1k
views
Cannot view PDF in PDFView IOS downloaded using Alamofire - SWIFT
I am trying to download a pdf file from the server and display it in PDFView in ios. I believe that I have successfully downloaded (file size is 1.1Mb) it and stored it in the DocumentsDirectory. ...
2
votes
0
answers
467
views
pdfView react native ios cant zoom
In react native,installed react-native-pdf and react-native-fetch-blob.The PDF can view.The problem is while zooming (double tap or pinch), the iOS screen move to left top corner part and showing the ...
2
votes
4
answers
4k
views
PDFView doesn't highlight search results
I'm trying out PDFView and want to highlight searched words.
I was following this little tutorial right here (see search paragraph).
I am getting matches for my PDF but when I set pdfView....
1
vote
1
answer
2k
views
Swift PDFKit pagination not working properly
I'm working on a PDF Viewer using new PDFKit in ios11. I have a long 90 page pdf document as my test document. Everything seems to be working fine re loading, viewing, scrolling, and navigating the ...
1
vote
2
answers
2k
views
Pdfview horizontal/vertical scrolling showing 2 pages in one view
I have set pdfview scrolling direction as horizontal/vertical to scroll the pdf horizontally/vertically. But it appears in both cases there are always two pages appear in one view(1st page acquires 80%...
0
votes
1
answer
318
views
Subclassing 'PDFView' in swift - cannot find interface declaration
I am trying to make a subclass of PDFKit's PDFView in my macOS application, which has legacy objective-c code as part of the project.
My swift class looks like this:
import Foundation
import Quartz
...
0
votes
2
answers
2k
views
How to create horizontal scrolling PDF view using PDFKit iOS 11
Couldn't create horizontal scrolling PDF view in ios 10.
Is this possible in iOS 11 ? Using PDFKit - PDFView ?
2
votes
1
answer
2k
views
Change background color and text color of a PDFView in Android Studio
It is my first question in here, so please tell me if you need more context.
I am using a PDFView in my app by compiling this : compile 'com.github.barteksc:android-pdf-viewer:2.6.1'.
I am capable ...
1
vote
1
answer
823
views
PDF not shown correctly
In my app I use a window with a single PDF view for showing some information. When the window is shown first the display is fine:
But when showing it once again the PDF inside is shifted:
The code for ...
2
votes
1
answer
1k
views
How to animate zooming in Android
I'm developing an Android application, I used this library
barteksc:android-pdf-viewer:2.3.0
I have to implement a simple animation, this is the code that I have implemented:
private void ...
2
votes
0
answers
149
views
Moved annotation in PDFView but it moves to the opposite direction
I have written the code to move the annotation while dragging the mouse, however the result shows me the annotation moved to the opposite direction of my mouse move trace. It moves with center at the ...
1
vote
1
answer
1k
views
How to draw text on PDFKit's PDFView's background
I Want to write a text message, typically "Drag & Drop a PDF here" on PDFView's "background" view. By background view I mean the matte gray view displayed when no PDF document is set.
Based on ...
2
votes
1
answer
1k
views
Displaying pdf files using the PDFKit interface
I am working on a Mac OS 10.12, and have an application to display pdf files using the PDFKit interface.
But I encountered the following issues
Set pdf document to PDFView, in original OS,e.g. OS10....
1
vote
1
answer
2k
views
Android-Pdf View Library
After importing this library: https://github.com/JoanZapata/android-pdfview ,
I got this error:
Error:The SDK Build Tools revision (19.0.3) is too low for project
':android-pdfview-sample'. ...
0
votes
0
answers
366
views
buildPdfDocument null pointer exception
The code that creates a pdf file works fine when the filestorePath is hardcode.
As soon as I replace the hardcoded filestorePath with a value fetched from a database, I get a NullPointerException when ...
0
votes
1
answer
762
views
Could not find class com.joanzapata.pdfview.PDFView
I want open PDF in android using pdfview.
https://github.com/JoanZapata/android-pdfview
This is my Layout code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://...