There has been many Questions recently about drawing PDF's.
Yes, you can render PDF's very easily with a UIWebView but this cant give the performance and functionality that you would expect from a good PDF viewer.
You can draw a PDF page to a…
I have a PDF that has pages of different heights that I want to display in a horizontally paged fashion, one page at a time, with no gaps between pages, and the top of each page being aligned with the top of the view. For example:
I would like to…
Can the text (i.e. contents) of a FreeText annotation be changed in PDFKit without deleting an annotation / building a new annotation?
The following snippet does not change an annotation's contents when viewing in a PDFView:
let url =…
I'm trying to add a custom UIMenuItem to my PDFView
Here's what I'm doing in my sample Xcode project
#import
#import
#import "ViewController.h"
@interface ViewController ()
@property(nonatomic) PDFDocument…
I want to create a pdf on macOS with the new WKWebView.pdf(configuration:) which was introduced in macOS 12/iOS 15. It tries to make use of the new async/await functionality (which I most likely have not grasped entirely I am afraid...).
Right now,…
I am developing a PDF app using PDFKit (Swift). I have successfully implemented functionality to add drawing into the PDF file using PDFAnnotation subtype Ink. Now, the next step is to make that PDFAnnotation resizable and movable inside the PDF…
I add pdfdocument to the PDFView . but it is showing margin and also showing in the canter. How to remove this margin . And Is there any way to set pdfdocument to the top-left position.
For a PDFDocument that contains annotations with a widgetFieldType of PDFAnnotationWidgetSubtype.text and PDFAnnotationWidgetSubtype.button is it possible to disable user interaction for those annotations (i.e. clicking on a checkbox does not cause…
I am creating a PDF reader kind of App and for that, I am using PDFKit to show PDF files in that app.
I am able to add PDFView through code and it's working fine.
But is it possible that I can add PDFView through storyboard and then by Outlet I will…
I have been trying to edit an existing pdf file and saving it to device. I have tried saving the edited file to the same location as the unedited one. But the file could not be saved. Instead I got errors like
Attempting to save dictionary with…
In a MacOS app, I was using a classic PDFView with a transparent background with a simple:
pdfViewer.backgroundColor = .clear
All was working like a charm in Mojave but from the Catalina update I really can fix it. Perhaps it is a bug in relation…
I am trying to disable UIMenuItems in PDFKit. I have implemented
override func canPerformAction(_ action: Selector, withSender sender: Any?) -> Bool {
return false
}
But MenuItems Copy and Select All are still active. The main reason I want…
My mission seems simple. Change the text value of an existing annotation and save it under a new file name (even the same file name would be progress). I've successfully changed the annotation (verified by printing to the log immediately after…
I've got a PDF file of a technical drawing that contains one page with bookmarks linking to specific areas of the document.
When I click those bookmarks in Adobe Reader or Foxit Reader, it zooms to this specified area. But in Apple's Preview.app or…
I'm working on a function in my app that lets users export their data into a nicely designed PDF.
I'm using UIGraphicsPDFRenderer for this and I went through Apple's documentation.
I'm having a problem adding a footer like "page x of y". While "x"…