Questions tagged [apple-pdfkit]

Questions related to the Apple PDFKit framework.

Questions related to the Apple PDFKit framework (https://developer.apple.com/documentation/pdfkit).

57 questions
0
votes
0 answers

Remove edges and scroll from PDFView

I want to display a PDF in my macOS app using PDFKit. Therefore I've added a simple PDFView in IB. I want each slide of the PDF to be displayed separately and non intractable, just like an image. The only thing that should be possible is to walk…
Codey
  • 1,131
  • 2
  • 15
  • 34
0
votes
0 answers

PDF view not scrolling

Im am trying to learn swift and I am stuck trying to display pdf file from local url. I have set contentView which has pdfView on it. all is okay but the pdf is not scrollable. I would be happy if someone could help me. This is my code: private func…
user12723399
  • 127
  • 1
  • 1
  • 5
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

Getting EXC_BAD_ACCESS exception when accessing non null variable

As you can see in the linked image, I am getting: EXC_BAD_ACCESS (code=1, address=0x0) when accessing outline.numberOfChildren but lldb shows that outline is not nil and that outline.numberOfChildren is 0 (which is exactly what it should be in…
rareyna
  • 141
  • 9
0
votes
1 answer

How to specify letter format in Apple's PDFKit?

I have to create or append new pages to a PDFKit document using Swift 4. The document format needs to be German DIN A4 (letter format). I thought that the PDFDocumentAttribute could specify this, but they did not. Is there any proper way to specify…
Tobonaut
  • 2,245
  • 2
  • 26
  • 39
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
2 answers

How to send PDF data to a printer programmatically?

In MacOS, I'm using python to write PDF Service Workflows, and after processing the incoming PDF (manipulating it with PyObjC Quartz APIs), I want to send it back to the print queue and get it printed without any user effort. Is it possible to send…
benwiggy
  • 1,440
  • 17
  • 35
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

How to enable selection of continous text in PDFView so that I can add annotations?

Currently I have rendered an sample pdf file on PDFView using PDFDocument. pdfView.autoScales = true pdfView.displayDirection = .horizontal pdfView.displayMode = .singlePage pdfView.usePageViewController(true, withViewOptions:…
-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,…
-3
votes
1 answer

How to Decrypt a PDF using PDFKit in Swift?

I have a password protected PDF file and I need to Decrypt it using PDFKit or some other way, When I use unlock with password, it is unlocked but it is still encrypted could anyone help me with this code: func handlePDF(url: URL, password: String) {…
Dinesh
  • 167
  • 2
  • 11
1 2 3
4