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…
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…
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…
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…
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…
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:…
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…
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…
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:…
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…
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,…
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) {…