A Macintosh or iOS object that encapsulates the functionality of PDFKit and which can be dropped into an interface using Xcode's Interface Builder.
Questions tagged [pdfview]
179 questions
42
votes
5 answers
Viewing PDF in Windows forms using C#
Is there any way to view PDF files in a Winforms tool? I've seen solutions such as converting the pdf file into images and showing them in an picture box. However, I am asking whether i can view the file as PDF. Is there any tool from adobe or from…

Majd
- 1,358
- 3
- 15
- 29
18
votes
9 answers
PDFview scrolls to bottom of the page in single page document
I am creating a PDFViewer application.
I have set the autoScale Property of the PDFViewer to true, so that it the view expands to the width of the screen.
Works fine with large PDF documents.
But when the document is a single page document, the page…

Adwait
- 290
- 2
- 11
14
votes
3 answers
Create PDF with multiple pages
I need to implement a functionality of creating pdf with multiple pages of a text.
class PDFCreator {
func prepareData() -> Data {
//1
let pdfMetaData = [
kCGPDFContextCreator: "PDF Creator",
kCGPDFContextAuthor: "Pratik…

Pratik Sodha
- 3,679
- 2
- 19
- 38
13
votes
5 answers
pdfView pinch zooming out
I am trying to move my project that was using a webview to display some pdf to a pdfView to take advantage of the latest PDFKit features.
in the webview when pinching to zoom out the document was always scaling to fill the screen. basically you…

Julien7377
- 475
- 4
- 15
10
votes
0 answers
Swift PDFView issue: .notdef: no mapping
I get odd error messages with PDFView from PDFKit.
In some instance I get
non-isolated groups aren't supported.
Mutating glyph 1 (code 32) in ULBEWJ+MinionPro-Regular.
In another instance I get the message:
.notdef: no mapping.
In most PDF's I…

TinaDitte
- 136
- 6
9
votes
5 answers
iOS PDFKit not filling UIView
I'm using PDFKit to display simple PDF's. When I display them on the screen inside a UIView, I've used the code below.
Aims:
- Start off with the content to fill the view - want to fill whole screen width wise
override func viewDidLoad() {
…

Nicholas Farmer
- 773
- 7
- 32
9
votes
6 answers
How can selection be disabled in PDFView?
Displaying a PDFDocument in a PDFView allows the user to select parts of the document and perform actions e.g. "copy" with the selection.
How can selection be disabled in a PDFView while preserving the possibility for the user to zoom in and out and…

christopher.online
- 2,614
- 3
- 28
- 52
8
votes
4 answers
How to render whole pdf document using pdf.js library?
I tried rendering PDF document using pdf.js library. I know only basics in javascript and I am new to promises, so at first I followed advice on this page: Render .pdf to single Canvas using pdf.js and ImageData (2. answer). But as a result, I…
user3913960
7
votes
2 answers
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 entire first page is visible, zoomed to fit the…

Mitch Cohen
- 1,551
- 3
- 15
- 29
7
votes
2 answers
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 PDFViewDelegate but there's no suitable function to…

heyfrank
- 5,291
- 3
- 32
- 46
5
votes
0 answers
Struggling to implement PDFView in SwiftUI
I am trying to display a PDF in a SwiftUI view.
When trying to implement other solutions here, I get the error Missing arguments for parameters 'PDFName', 'DisplayName' in call
Errors image
I assume that the way you use PDFView() has changed with…

AlexMcC_0102
- 53
- 3
5
votes
1 answer
java.io.FileNotFoundException: open failed: EACCES (Permission denied) on the real Android device
My goal is to download a file from an API server (pdf file in this case) and then I want to load that pdf and show it on the UI. I am using flutter_pdfview and I am following this tutorial how to implement it . Firstly, permissions: In my…

kmtz
- 484
- 4
- 14
5
votes
1 answer
Disable zooming on PDFView (iOS)
How can I disable zooming on PDFView?
I've already tried the solution here, but it didn't work. I can still zoom in and zoom out.
Here's my PDFView:
let pdfView: PDFView = {
let pdfView = PDFVIew()
let urlPath =…

ataravati
- 8,891
- 9
- 57
- 89
5
votes
4 answers
How to disable zoom in and zoom out in pdfView?
I want to have just what I receive after
pdfView.autoScales = true
without the possibility to change the scale.
After the help of @carmine we have:
import UIKit
import PDFKit
class ViewController: UIViewController {
@IBOutlet weak var pdfView:…

Degtiarev Aleksei
- 415
- 5
- 12
5
votes
4 answers
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, overlay a white UIView to hide the shadows, or…

Mitch Cohen
- 1,551
- 3
- 15
- 29