Questions tagged [ios-pdfkit]

This tag should only be used for questions related to PDFKit which is available for iOS as of iOS 11.0 and macOS as of 10.4.

PDFKit is a framework for iOS and macOS. Display and manipulate PDF documents in your applications.

131 questions
0
votes
1 answer

Terminating app due to uncaught exception 'CALayerInvalidGeometry', reason: 'CALayer position contains NaN: [nan nan]'

The problem started with the XCode 10.2.x as I guess While it was working fine with the XCode 10.1 The crash point is "pdfView.frame = self.view.frame" from below code: import UIKit import PDFKit class ViewController: UIViewController { var…
Ashvin
  • 8,227
  • 3
  • 36
  • 53
0
votes
1 answer

How should be defined the options dictionary for PDFView usePageViewController withViewOptions:

How should be defined a dictionary of options for a pageViewController for a PDFView from PDFKit? I am interested particulari with this flag UIPageViewController.NavigationOrientation.horizontal let pdfv = PDFView.init(frame:…
Blazej SLEBODA
  • 8,936
  • 7
  • 53
  • 93
0
votes
1 answer

Objective C - Create PDF (Mac OSX / Cocoa)

I'm following this guide to create PDF but I don't understand what I have to code on myDrawnContent function :…
0
votes
2 answers

Swift PDFDocument return nil for files and urls

I want to show a PDF file using PDFView in an iOS app. I have added a file called merlin.pdf to my project directory. I have also checked that merlin.pdf is included in the Copy Bundle Resources in Build Phases. But still, PDFDocument returns nil.…
Vicarious
  • 131
  • 18
0
votes
1 answer

Apple PDFKit - issue with PDFs with validation scripts.

I have a set of PDF files which have a few validations embedded into it using JavaScript. Validations like a date or time format, total getting calculated from various fields etc. I have tested these PDF and they work good on Mac Chrome browser, on…
hirenhcm
  • 93
  • 1
  • 10
0
votes
1 answer

pdfOutline of PDFKit in Objective-C

i try badly to extend (im a beginner with Objective-C) a pdf-viewer with PDF-included Outlines. The viewer is based on Apples PDFKit. (https://developer.apple.com/documentation/pdfkit/pdfoutline) Thats what i have done so far: PDFPage *page =…
Marq
  • 49
  • 1
  • 8
-1
votes
0 answers

PDF Kit search text in hindi languge

i am using pdf kit to load pdf file. my pdf file is is hidni languge i need to implimet feature that user can search using hindi text. i have tried the findString method but it only works fine with enlgish only.not getting result when search using…
tushar_b
  • 9
  • 3
-1
votes
0 answers

Why does PDFKit render certain PDFs with pages missing or out of order, and how can I work around this?

I am working on a Swift-based macOS app that retrieves and presents PDFs from certain publicly available sources, including the Library of Congress. I use PDFKit and PDFView to work with the PDFs. For certain PDFs from the Library of Congress,…
-1
votes
2 answers

PDFKit and PDFDocument Annotations not visible in Adobe Acrobat

After I remove/add the annotations I save the file to disk (is this even necessary to properly save the annotations?). I then have the document in a UIActivityViewController inside a UIActivityItemProvider. The annotations are viewable in the print…
twodayslate
  • 2,803
  • 3
  • 27
  • 43
-1
votes
2 answers

Swift PDFKit autoscale zooms to wrong page

I'm trying to display a pdf on an iOS device (ipad) using PDFkit. For some reason, swift displays the second page when the display opens. I figure out part of the problem is the preview.autoscale. When I set this to false, the pdf is not full…
-2
votes
0 answers

Why is extracting texts from pdf with apple PDFKit not working for some pdfs?

I am using apple PDFKit to extract texts from PDF in a SwiftUI project. It is working well for most of the pdfs. But for some pdfs it is not returning any texts. I am getting empty string. I am using following codes: if let pdf = PDFDocument(url:…
Tanvirgeek
  • 540
  • 1
  • 9
  • 17
1 2 3
8
9