Display and manipulate PDF documents in your applications using PDFKit.

Posts under PDFKit tag

200 Posts

Post

Replies

Boosts

Views

Activity

Notes App with pdf
I have a problem with the Notes app on ios17. When I open a pdf file that I created from scanning a document with my iPhone 14, I can't select any text from the pdf. This makes it impossible to copy and paste anything from my pdf. Is anyone else having this issue?
2
0
709
Sep ’23
macOS 14.0 Sonoma: Pages and Keynote Do Not Export Equations Correctly to PDF
I have a 52-page document authored in Pages that contains many equations, most of them pertaining to matrix algebra with many subscripts. Using Pages v13.2 on macOS 14.0 Sonoma (23A344), the exported PDF version of the document does not render the equations correctly. In particular, equations containing a vertical bar "|" are rendered without the vertical bar in the PDF document. For example, an equation for a probability expression of "P(x|y)" gets exported to PDF as "P(x y)". In particular, the Pages "blahtex" form for a discrete-time system equation is \mathbf{x}_{k+1} = \mathbf{\Phi}_{k+1|k} \mathbf{x}_k + \mathbf{u}_k + \mathbf{\Gamma}_{k+1|k} \mathbf{w}_k In Pages, this gets correctly rendered as whereas, in the exported PDF document, it gets incorrectly rendered as Also, using \vert or \mid to generate the "|" in the equation does not help; the PDF export is still missing the "|" symbol. If I save the document in Microsoft Word format and then export to PDF, the equations are rendered correctly. Reverting to Pages v13.1 from Time Machine does not fix the issue; the exported PDF is still wrong. It should be noted that when I used Pages v13.1 in Ventura, exported PDF equations rendered correctly. There may be other formulations that are broken that I have not yet encountered. In addition, my equations in Keynote suffer from the same problem when I export them to PDF. I know that macOS Sonoma removed EPS support, but it looks like other things got broken with this change. I don't want to convert all of my Pages documents to Microsoft Word, but unless this gets fixed, Pages has become useless to me for technical documentation. I'm an engineer with a lot of documents, so this has pretty much brought my workflow to a halt. I've submitted a bug report to Apple (FB13208972), but I am interested if anyone else is experiencing this problem.
1
1
1.2k
Sep ’23
PDFKit Crash Problem
Recently, our app crash monitor detect a lot of PDFKit crash problem at iOS 15.3: MACH_Exception EXC_BREAKPOINT EXC_ARM_BREAKPOINT fault_address:0x00000001809a52d8 Thread 67 name: PDFKit.PDFTilePool.workQueue 0 CoreFoundation _CFRetain (in CoreFoundation) 1 CoreGraphics _CGColorRetain (in CoreGraphics) 2 PDFKit -[PDFPage _drawWithBox:inContext:withRotation:isThumbnail:withAnnotations:withBookmark:withDelegate:] (in PDFKit) 3 PDFKit -[PDFPage drawWithBox:inContext:isThumbnail:] (in PDFKit) 4 PDFKit -[PDFView drawPage:toContext:] (in PDFKit) 5 PDFKit -[PDFTilePool _renderTileForRequest:] (in PDFKit) 6 libdispatch.dylib __dispatch_call_block_and_release (in libdispatch.dylib) 7 libdispatch.dylib __dispatch_client_callout (in libdispatch.dylib) 8 libdispatch.dylib __dispatch_lane_serial_drain (in libdispatch.dylib) 9 libdispatch.dylib __dispatch_lane_invoke (in libdispatch.dylib) 10 libdispatch.dylib __dispatch_workloop_worker_thread (in libdispatch.dylib) 11 libsystem_pthread.dylib __pthread_wqthread (in libsystem_pthread.dylib) 12 libsystem_pthread.dylib _start_wqthread (in libsystem_pthread.dylib) It crash at the thread: PDFKit.PDFTilePool.workQueue Anyone got the same problem? Is there any solutions for this problem?
6
3
2.6k
Sep ’23
Generate a PDF from HTML template using WKWebview
Hello, We have functionality in an existing app, have to generate a pdf and it should be printable in the A4. The PDF is almost 8 to 10 pages I have applied below solution: Loading the HTML template on the WKwebview and doing a few operations on the content and converting it into a pdf. Converting the HTML into a string Replacing a few data with dynamic content Issue: The solutions worked fine in the previous OS(14.5,15.5,16.1), it is not working on the latest os 16.6 The Table background CSS is not Rendering. I have tried both Inline and external CSS loading but still facing the same issue. Approch1: func createPDF(formmatter: UIViewPrintFormatter, filename: String) -> String { let attributedString = NSAttributedString(string: "This is a test", attributes: [NSAttributedString.Key.foregroundColor: UIColor.red]) let printFormatter = UISimpleTextPrintFormatter(attributedText: attributedString) let render = UIPrintPageRenderer() render.addPrintFormatter(printFormatter, startingAtPageAt: 0) // 2. Assign print formatter to UIPrintPageRenderer //let render = UIPrintPageRenderer() render.addPrintFormatter(formmatter, startingAtPageAt: 0) // 3. Assign paperRect and printableRect let page = CGRect(x: 0, y: 0, width: 595.2, height: 841.8) // A4, 72 dpi let printable = page.insetBy(dx: 20, dy: 20) //let printable = page.inset(by: UIEdgeInsets(top: 10, left: 10, bottom: 10, right: 10)); render.setValue(NSValue(cgRect: page), forKey: "paperRect") render.setValue(NSValue(cgRect: printable), forKey: "printableRect") // 4. Create PDF context and draw let pdfData = NSMutableData() UIGraphicsBeginPDFContextToData(pdfData, CGRect.zero, nil) for i in 1...render.numberOfPages { UIGraphicsBeginPDFPage(); let bounds = UIGraphicsGetPDFContextBounds() render.drawPage(at: i - 1, in: bounds) } UIGraphicsEndPDFContext(); // 5. Save PDF file var dst = self.getDestinationPath(1) if dst.contains("file://") { dst = dst.replacingOccurrences(of: "file://", with: "") } //let path = "\(NSTemporaryDirectory())\(filename).pdf" pdfData.write(toFile: dst, atomically: true) print("open \(dst)") return dst } } Approach2: But the pdf is Generating in a single page not multiple and it's not printable using the below solution. func createPDFMethod(webView: WKWebView, title:String="samplepdf"){ let pdfConfiguration = WKPDFConfiguration() /// Using `webView.scrollView.frame` allows us to capture the // entire page, not just the visible portion pdfConfiguration.rect = CGRect(x: 0, y: 0, width: webView.scrollView.contentSize.width, height: webView.scrollView.contentSize.height) webView.createPDF(configuration: pdfConfiguration) { result in switch result { case .success(let data): // Creates a path to the downloads directory DispatchQueue.main.async { let resourceDocPath = (FileManager.default.urls(for: .documentDirectory, in: .userDomainMask)).last! as URL let pdfNameFromUrl = "\(title).pdf" let actualPath = resourceDocPath.appendingPathComponent(pdfNameFromUrl) do { try data.write(to: actualPath, options: .atomic) print("pdf successfully saved!") } catch { print("Pdf could not be saved") } } case .failure(let failure): print(failure.localizedDescription) } } } It seems the issue is with UIGraphics or WKwebview formaters. could you please help me to resolve this issue?
2
1
2.3k
Sep ’23
PDFKit page render issue
Hi there, I am currently facing an issue with PDFKit page rendering. In one of my application, I have to open annoted PDF for reading and when user tap on particular annotation, I have to jump certain number of pages in same PDF to open the new desired page. Example: User is on page 2 and when user tap on menu button, I need to navigate directly on page number 8. With above scenario, my application takes a while to load page number 8 and User can see white screen before loading PDF page. When I checked console log, I can see following as an error. F.I: App requires to use usePageViewController for pagination. I am using as per following: _pdfView = [[PDFView alloc] initWithFrame:[UIScreen mainScreen].bounds]; [view addSubview:self.pdfView]; self.pdfView.delegate = self; [self.pdfView setAutoScales:true]; [self.pdfView setDisplayDirection:kPDFDisplayDirectionHorizontal]; [self.pdfView usePageViewController:true withViewOptions:nil]; [self.pdfView setBackgroundColor:UIColor.whiteColor]; Warning: Unable to complete drawing page index 24 on time as a request to forceUpdateActivePageIndex:withMaxDuration: 0.02 I hope if someone can help me on that Thanks.
0
0
953
Sep ’23
Crash in PDF Kit
Crashed: com.apple.main-thread 0 CoreFoundation 0x7c59c CFArrayGetCount + 8 1 CorePDF 0x28c1c CGPDFTaggedNodeEnumerateChildren + 52 2 CorePDF 0x28b70 CGPDFTaggedNodeGetBounds + 244 3 PDFKit 0x6400 (Missing UUID 4dedb563f2df3dceae5066d6b4718b9f) 4 UIAccessibility 0x818e0 ___axuiElementForNotificationData_block_invoke + 56
2
1
1.5k
Aug ’23
WKWebView doesn't show edit menu for pdf documents.
I've noticed that edit menu with Copy, Look Up, Translate options doesn't appear when I select some text in pdf file loaded in WKWebView. This issue is reproducible on the latest iOS 16 and 17 beta versions. Additionally, these two WKUIDelegate methods are called for all types of documents except PDFs. func webView(_ webView: WKWebView, willPresentEditMenuWithAnimator animator: UIEditMenuInteractionAnimating) func webView(_ webView: WKWebView, willDismissEditMenuWithAnimator animator: UIEditMenuInteractionAnimating) Is this a bug or is there a new WebKit/PDFKit API I could use to enable this menu? Feedback ID: FB12759407
0
0
877
Aug ’23
How to get this example to work?
Hello there, I am trying to follow along with the video and copy the example shown here in SwiftUI. I am given the error Cannot assign value of type 'UIView' to type 'PKCanvasView?' on this line: resultView = overlayView It is totally possible that I am botching the whole thing up but I would appreciate it if someone looked over my code. Thanks. code: // ContentView.swift import SwiftUI import PDFKit import PencilKit import Foundation import UIKit struct PDFUIView: View { let pdfDoc: PDFDocument let pdfView: PDFView init() { let url = Bundle.main.url(forResource: "example", withExtension: "pdf")! pdfDoc = PDFDocument(url: url)! pdfView = PDFView() } var body: some View { VStack { PDFKitView(showing: pdfDoc, pdfView: pdfView) } .padding() } } #Preview { PDFUIView() } struct PDFKitView: UIViewRepresentable { let pdfDocument: PDFDocument let pdfView: PDFView init(showing pdfDoc: PDFDocument, pdfView:PDFView) { self.pdfDocument = pdfDoc self.pdfView = pdfView } func makeUIView(context: Context) -> PDFView { pdfView.usePageViewController(true) pdfView.autoScales = true pdfView.pageOverlayViewProvider = context.coordinator pdfView.displayMode = .singlePageContinuous pdfView.isUserInteractionEnabled = true pdfView.document = pdfDocument pdfView.delegate = context.coordinator return pdfView } func updateUIView(_ pdfView: PDFView, context: Context) { pdfView.document = pdfDocument } func makeCoordinator() -> Coordinator { Coordinator() } } class Coordinator: NSObject, PDFPageOverlayViewProvider, PDFViewDelegate { var pageToViewMapping = [PDFPage: UIView]() func pdfView(_ view: PDFView, overlayViewFor page: PDFPage) -> UIView? { var resultView: PKCanvasView? = nil if let overlayView = pageToViewMapping[page] { resultView = overlayView } else { var canvasView = PKCanvasView(frame: .zero) canvasView.drawingPolicy = .anyInput canvasView.tool = PKInkingTool(.pen, color: .systemCyan, width: 20) canvasView.backgroundColor = UIColor.clear pageToViewMapping[page] = canvasView resultView = canvasView } let page = page as! MyPDFPage if let drawing = page.drawing { resultView?.drawing = drawing } return resultView } func pdfView(_ pdfView: PDFView, willDisplayOverlayView overlayView: UIView, for page: PDFPage) { guard let overlayView = overlayView as? PKCanvasView else { return } guard let canvasView = pageToViewMapping[page] else { return } let page = page as! MyPDFPage page.drawing = overlayView.drawing pageToViewMapping.removeValue(forKey: page) } class MyPDFAnnotation: PDFAnnotation { override func draw(with box: PDFDisplayBox, in context: CGContext) { UIGraphicsPushContext(context) context.saveGState() let page = self.page as! MyPDFPage if let drawing = page.drawing { let image = drawing.image(from: drawing.bounds, scale: 1) image.draw(in: drawing.bounds) } context.restoreGState() UIGraphicsPopContext() } } class MyPDFPage: PDFPage { var drawing: PKDrawing? } }
1
0
1.5k
Jul ’23
How to use PDFPageOverlayViewProvider?
I'm trying to use PDFPageOverlayViewProvider by copying the code provided in the "What's new in PDFKit" WWDC22 session here: https://developer.apple.com/videos/play/wwdc2022/10089/ I've copied the method implementations and set my pdfView's pageOverlayViewProvider property to the view where I implemented the protocol. However, when I try to run my app, the pdfView(_ view: PDFView, overlayViewFor page: PDFPage) method is never getting called. Has anyone been able to get this working successfully?
5
1
4k
Jul ’23
wwdc2022-10089 issue
Hi, I'm trying to use PencilKit over PDFKit as described in https://developer.apple.com/videos/play/wwdc2022/10089/. The thing is I open my custom UIDocument and initialize all its content to feed PDFView. Everything seems to work, I Input sketches in the canvas, PDFPageOverlayViewProvider's overlayView(for:) generates canvas correctly (it seems) but when editing finishes : willEndDisplayingOverlayView never gets called, and when I save the UIDocument (I use document.close(completionHandler:)) contents(forType:) never sees my custom PDFPages and I get no content for sketches. Does anyone of you have an idea of the lifecycle we should follow to get the methods called ? Sincerely yours
2
0
1.2k
Jul ’23
Codes are not working at this video.
https://developer.apple.com/videos/play/wwdc2022/10089/ I am trying to run codes about PDFPageOverlayViewProvider, but the codes are not working. I cannot see what I wrote or annotate. Anyone know how can I solve and make this code working?  func pdfView(_ view: PDFView, overlayViewFor page: PDFPage) -> UIView? {         var resultView: PKCanvasView? = nil         if let overlayView = pageToViewMapping[page] {             resultView = (overlayView as! PKCanvasView)         } else {             let canvasView = PKCanvasView(frame: .zero)             canvasView.drawingPolicy = .anyInput             canvasView.tool = PKInkingTool(.pen, color: .yellow, width: 20)             canvasView.backgroundColor = .clear             pageToViewMapping[page] = canvasView             resultView = canvasView         }         let page = page as! WatermarkPage         if let drawing = page.drawing {             resultView?.drawing = drawing         }         return resultView     }          func pdfView(_ pdfView: PDFView, willEndDisplayingOverlayView overlayView: UIView, for page: PDFPage) {         let overlayView = overlayView as! PKCanvasView         let page = page as! WatermarkPage         page.drawing = overlayView.drawing         pageToViewMapping.removeValue(forKey: page)     }
2
0
1.3k
Jul ’23
QLPreviewController is not saving file for Large Size PDF
I am using QLPreviewController with SwiftUI using UIViewControllerRepresentable. If I try to delete or insert pages of large size PDF, QLPreviewController is not calling delegate methods (didUpdateContentsOf, didSaveEditedCopyOf). struct QuickLookController: UIViewControllerRepresentable { @Environment(\.dismiss) var dismiss weak var delegate: QLPreviewControllerDelegate? weak var dataSource: QLPreviewControllerDataSource? func makeUIViewController(context: Context) -> UINavigationController { let controller = context.coordinator.controller controller.delegate = delegate controller.dataSource = dataSource controller.navigationItem.rightBarButtonItem = context.coordinator.dismissButton return UINavigationController(rootViewController: controller) } func updateUIViewController(_ viewController: UINavigationController, context: UIViewControllerRepresentableContext<QuickLookController>) { } func makeCoordinator() -> Self.Coordinator { .init(parent: self) } @MainActor class Coordinator: NSObject { var parent: QuickLookController init(parent: QuickLookController) { self.parent = parent } lazy var controller: QLPreviewController = { let controller = QLPreviewController() return controller }() lazy var dismissButton: UIBarButtonItem = { let button = UIBarButtonItem( title: NSLocalizedString("Done", comment: ""), style: .plain, target: self, action: #selector(rightButtonTapped(_:)) ) button.tag = 2 return button }() @objc func rightButtonTapped(_ sender: Any) { controller.dismiss(animated: true) } } } // MARK: QuickLook extension ViewerModel: QLPreviewControllerDataSource, QLPreviewControllerDelegate { public func numberOfPreviewItems(in controller: QLPreviewController) -> Int { 1 } public func previewController( _ controller: QLPreviewController, previewItemAt index: Int ) -> QLPreviewItem { let title = self.document .documentURL? .lastPathComponent ?? "" let url = PDFManager .directory .appendingPathComponent(title) as NSURL return url as QLPreviewItem } public func previewControllerDidDismiss(_ controller: QLPreviewController) { } public func previewControllerWillDismiss(_ controller: QLPreviewController) { } ✔️ It's same even if I set it to updateContents public func previewController(_ controller: QLPreviewController, editingModeFor previewItem: QLPreviewItem) -> QLPreviewItemEditingMode { .createCopy } ✔️ Not called with Large Size PDF public func previewController(_ controller: QLPreviewController, didUpdateContentsOf previewItem: QLPreviewItem) { } ✔️ Not called with Large Size PDF public func previewController(_ controller: QLPreviewController, didSaveEditedCopyOf previewItem: QLPreviewItem, at modifiedContentsURL: URL) { } }
0
0
1.2k
Jul ’23
how do I print the contents of the PdfView?
XCode - Swift private var mPdfView = PDFView() private var mDocumentData: Data? mDocumentData = MakePdfDocument() mPdfView.document = PDFDocument(data: mDocumentData!) let printInfo = UIPrintInfo(dictionary: nil) printInfo.outputType = UIPrintInfo.OutputType.general printInfo.jobName = “JobName” let printController = UIPrintInteractionController.shared printController.printInfo = printInfo printController.printingItem = mPdfView printController.showsNumberOfCopies = true printController.present(animated: true, completionHandler: nil) **When print is executed, only the blank screen is output, not the generated PDF. How can I print the generated PDF content?**
2
0
1.6k
Jul ’23
PDFKit crashing randomly with error "[UIPageViewController queuingScrollView:didEndManualScroll:toRevealView:direction:animated:didFinish:didComplete:]"
We are using PDFKit to load the online PDF. It works fine for most of the cases. however sometimes app crashes with following error. "*** Assertion failure in -[UIPageViewController queuingScrollView:didEndManualScroll:toRevealView:direction:animated:didFinish:didComplete:], /SourceCache/UIKit/UIKit-3318.0.1/UIPageViewController.m:1875 2014-09-29 11:34:00.770 Wowcher[193:9460] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'No view controller managing visible view <UIView: 0x1783fa80; frame = (0 0; 320 416); autoresize = W+RM+H+BM; layer = <CALayer: 0x17898540>>'" we are not using UIPageViewController explicitly anywhere. Therefore not able to fix this issue. Any solution ?
0
1
816
Jul ’23
How to create custom edit menu and remove the default edit menu which is shown in pdfView for iOS 16
I am not getting any action callback on the default Highlight edit menu, when selecting the text and pressing the Highlight edit menu, where do we get the callback of this edit menu? Also I am trying to remove this default edit menu and trying to add a set of new edit menus but some of the default edit menu is not getting removed. So how can we achieve this Do we need to use UIEditMenuIntraction to add a new edit menu since in iOS 16 UIMenuController is deprecated, if yes then how to implement it on the text selection in pdfview. For iOS 16 I have tried to override the default edit menus using UIMenuBuilder and added a few new edit menus as a sibling, but unable to remove the default edit menu ex-(`Highlight'). - (void)buildMenuWithBuilder:(id<UIMenuBuilder>)builder{ if (@available(iOS 16.0, *)) { [builder removeMenuForIdentifier:UIMenuLookup]; [builder removeMenuForIdentifier:UIMenuReplace]; [builder removeMenuForIdentifier:UIMenuShare]; [builder removeMenuForIdentifier:UIMenuFormat]; // Add new .textStyle action UIAction *testMenuItem = [UIAction actionWithTitle:@"Test" image:nil identifier:nil handler:^(UIAction *action){ NSLog(@"action callback"); }]; [builder replaceChildrenOfMenuForIdentifier:UIMenuStandardEdit fromChildrenBlock:^NSArray<UIMenuElement *> * _Nonnull(NSArray<UIMenuElement *> * _Nonnull existingChildren) { NSMutableArray *children = [NSMutableArray arrayWithArray:existingChildren]; [children addObject:testMenuItem]; return children; }]; } [super buildMenuWithBuilder:builder]; } Also tried canPerformAction method to get the action callback of default Highlight edit menus and tried to the removed default edit menus by returning No but no luck. - (BOOL)canPerformAction:(SEL)action withSender:(id)sender { BOOL can = [super canPerformAction:action withSender:sender]; return NO; }
2
1
1.7k
Jul ’23
App crash with *** CFRelease() called with NULL *** when PDFTileSurface releaseSurface is called
We noticed a small number of crashes in iOS15/16 when user are viewing out EPaper with is a PDFView. From the stack trace, this is happening when releaseSurface is called in PDFTileSurface, and an error occurs due to CFRelease() called with NULL. Is there any way we can avoid this crash from our application? 0 CoreFoundation 0x198594 CFRelease.cold.1 + 16 1 CoreFoundation 0x7b83c CFRetain + 206 2 PDFKit 0x3051c -[PDFTileSurface releaseSurface] + 48 3 PDFKit 0x31668 -[PDFTilePool releasePDFTileSurface:] + 172 4 PDFKit 0x34638 -[PDFPageLayerTile dealloc] + 92 5 CoreFoundation 0x6ec40 -[__NSArrayI_Transfer dealloc] + 80 6 libobjc.A.dylib 0x19a4 AutoreleasePoolPage::releaseUntil(objc_object**) + 192 7 libobjc.A.dylib 0x4dac objc_autoreleasePoolPop + 252 8 UIKitCore 0x4f5ac -[UIScrollView setContentOffset:] + 1164 9 UIKitCore 0xb587c -[UIScrollView _smoothScrollSyncWithUpdateTime:] + 2156 10 UIKitCore 0xb4fd0 -[UIScrollView _smoothScrollWithUpdateTime:] + 240 11 UIKitCore 0x360fd8 -[UIScrollView _smoothScrollDisplayLink:] + 476 12 QuartzCore 0x27614 CA::Display::DisplayLink::dispatch_items(unsigned long long, unsigned long long, unsigned long long) + 832 13 QuartzCore 0x38698 display_timer_callback(__CFMachPort*, void*, long, void*) + 368 14 CoreFoundation 0x76c34 __CFMachPortPerform + 172 15 CoreFoundation 0x91f04 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 56 16 CoreFoundation 0x93a30 __CFRunLoopDoSource1 + 512 17 CoreFoundation 0x7758c __CFRunLoopRun + 2324 18 CoreFoundation 0x7bb58 CFRunLoopRunSpecific + 584 19 GraphicsServices 0x1984 GSEventRunModal + 160 20 UIKitCore 0x375628 -[UIApplication _run] + 868 21 UIKitCore 0x3752a0 UIApplicationMain + 312```
2
2
1.5k
Jun ’23
PDFKit Annotations Accessibility
I noticed that the PDFAnnotations added to a PDFPageView are not taking the accessibility properties as part of the data that later is being reported by the Accessibility Inspector. And also it seems this class: PDFNodeAccessibilityElement is not exposed from PDFKit. Anyone knows a way to override the Accessibility information for a PDF Annotation? Another issue I saw is that when you remove the PDF Annotation from the page, the Accessibility Inspector still shows it as if the annotation stayed there. Tried multiple ways to find a way to force the Accessibilty nodes to refresh, but sill haven't found a way for doing it. Would be great to hear if anyone had to deal with this kind of issues before
1
0
1.1k
Jun ’23
Notes App with pdf
I have a problem with the Notes app on ios17. When I open a pdf file that I created from scanning a document with my iPhone 14, I can't select any text from the pdf. This makes it impossible to copy and paste anything from my pdf. Is anyone else having this issue?
Replies
2
Boosts
0
Views
709
Activity
Sep ’23
macOS 14.0 Sonoma: Pages and Keynote Do Not Export Equations Correctly to PDF
I have a 52-page document authored in Pages that contains many equations, most of them pertaining to matrix algebra with many subscripts. Using Pages v13.2 on macOS 14.0 Sonoma (23A344), the exported PDF version of the document does not render the equations correctly. In particular, equations containing a vertical bar "|" are rendered without the vertical bar in the PDF document. For example, an equation for a probability expression of "P(x|y)" gets exported to PDF as "P(x y)". In particular, the Pages "blahtex" form for a discrete-time system equation is \mathbf{x}_{k+1} = \mathbf{\Phi}_{k+1|k} \mathbf{x}_k + \mathbf{u}_k + \mathbf{\Gamma}_{k+1|k} \mathbf{w}_k In Pages, this gets correctly rendered as whereas, in the exported PDF document, it gets incorrectly rendered as Also, using \vert or \mid to generate the "|" in the equation does not help; the PDF export is still missing the "|" symbol. If I save the document in Microsoft Word format and then export to PDF, the equations are rendered correctly. Reverting to Pages v13.1 from Time Machine does not fix the issue; the exported PDF is still wrong. It should be noted that when I used Pages v13.1 in Ventura, exported PDF equations rendered correctly. There may be other formulations that are broken that I have not yet encountered. In addition, my equations in Keynote suffer from the same problem when I export them to PDF. I know that macOS Sonoma removed EPS support, but it looks like other things got broken with this change. I don't want to convert all of my Pages documents to Microsoft Word, but unless this gets fixed, Pages has become useless to me for technical documentation. I'm an engineer with a lot of documents, so this has pretty much brought my workflow to a halt. I've submitted a bug report to Apple (FB13208972), but I am interested if anyone else is experiencing this problem.
Replies
1
Boosts
1
Views
1.2k
Activity
Sep ’23
PDFKit Crash Problem
Recently, our app crash monitor detect a lot of PDFKit crash problem at iOS 15.3: MACH_Exception EXC_BREAKPOINT EXC_ARM_BREAKPOINT fault_address:0x00000001809a52d8 Thread 67 name: PDFKit.PDFTilePool.workQueue 0 CoreFoundation _CFRetain (in CoreFoundation) 1 CoreGraphics _CGColorRetain (in CoreGraphics) 2 PDFKit -[PDFPage _drawWithBox:inContext:withRotation:isThumbnail:withAnnotations:withBookmark:withDelegate:] (in PDFKit) 3 PDFKit -[PDFPage drawWithBox:inContext:isThumbnail:] (in PDFKit) 4 PDFKit -[PDFView drawPage:toContext:] (in PDFKit) 5 PDFKit -[PDFTilePool _renderTileForRequest:] (in PDFKit) 6 libdispatch.dylib __dispatch_call_block_and_release (in libdispatch.dylib) 7 libdispatch.dylib __dispatch_client_callout (in libdispatch.dylib) 8 libdispatch.dylib __dispatch_lane_serial_drain (in libdispatch.dylib) 9 libdispatch.dylib __dispatch_lane_invoke (in libdispatch.dylib) 10 libdispatch.dylib __dispatch_workloop_worker_thread (in libdispatch.dylib) 11 libsystem_pthread.dylib __pthread_wqthread (in libsystem_pthread.dylib) 12 libsystem_pthread.dylib _start_wqthread (in libsystem_pthread.dylib) It crash at the thread: PDFKit.PDFTilePool.workQueue Anyone got the same problem? Is there any solutions for this problem?
Replies
6
Boosts
3
Views
2.6k
Activity
Sep ’23
Generate a PDF from HTML template using WKWebview
Hello, We have functionality in an existing app, have to generate a pdf and it should be printable in the A4. The PDF is almost 8 to 10 pages I have applied below solution: Loading the HTML template on the WKwebview and doing a few operations on the content and converting it into a pdf. Converting the HTML into a string Replacing a few data with dynamic content Issue: The solutions worked fine in the previous OS(14.5,15.5,16.1), it is not working on the latest os 16.6 The Table background CSS is not Rendering. I have tried both Inline and external CSS loading but still facing the same issue. Approch1: func createPDF(formmatter: UIViewPrintFormatter, filename: String) -> String { let attributedString = NSAttributedString(string: "This is a test", attributes: [NSAttributedString.Key.foregroundColor: UIColor.red]) let printFormatter = UISimpleTextPrintFormatter(attributedText: attributedString) let render = UIPrintPageRenderer() render.addPrintFormatter(printFormatter, startingAtPageAt: 0) // 2. Assign print formatter to UIPrintPageRenderer //let render = UIPrintPageRenderer() render.addPrintFormatter(formmatter, startingAtPageAt: 0) // 3. Assign paperRect and printableRect let page = CGRect(x: 0, y: 0, width: 595.2, height: 841.8) // A4, 72 dpi let printable = page.insetBy(dx: 20, dy: 20) //let printable = page.inset(by: UIEdgeInsets(top: 10, left: 10, bottom: 10, right: 10)); render.setValue(NSValue(cgRect: page), forKey: "paperRect") render.setValue(NSValue(cgRect: printable), forKey: "printableRect") // 4. Create PDF context and draw let pdfData = NSMutableData() UIGraphicsBeginPDFContextToData(pdfData, CGRect.zero, nil) for i in 1...render.numberOfPages { UIGraphicsBeginPDFPage(); let bounds = UIGraphicsGetPDFContextBounds() render.drawPage(at: i - 1, in: bounds) } UIGraphicsEndPDFContext(); // 5. Save PDF file var dst = self.getDestinationPath(1) if dst.contains("file://") { dst = dst.replacingOccurrences(of: "file://", with: "") } //let path = "\(NSTemporaryDirectory())\(filename).pdf" pdfData.write(toFile: dst, atomically: true) print("open \(dst)") return dst } } Approach2: But the pdf is Generating in a single page not multiple and it's not printable using the below solution. func createPDFMethod(webView: WKWebView, title:String="samplepdf"){ let pdfConfiguration = WKPDFConfiguration() /// Using `webView.scrollView.frame` allows us to capture the // entire page, not just the visible portion pdfConfiguration.rect = CGRect(x: 0, y: 0, width: webView.scrollView.contentSize.width, height: webView.scrollView.contentSize.height) webView.createPDF(configuration: pdfConfiguration) { result in switch result { case .success(let data): // Creates a path to the downloads directory DispatchQueue.main.async { let resourceDocPath = (FileManager.default.urls(for: .documentDirectory, in: .userDomainMask)).last! as URL let pdfNameFromUrl = "\(title).pdf" let actualPath = resourceDocPath.appendingPathComponent(pdfNameFromUrl) do { try data.write(to: actualPath, options: .atomic) print("pdf successfully saved!") } catch { print("Pdf could not be saved") } } case .failure(let failure): print(failure.localizedDescription) } } } It seems the issue is with UIGraphics or WKwebview formaters. could you please help me to resolve this issue?
Replies
2
Boosts
1
Views
2.3k
Activity
Sep ’23
PDFKit page render issue
Hi there, I am currently facing an issue with PDFKit page rendering. In one of my application, I have to open annoted PDF for reading and when user tap on particular annotation, I have to jump certain number of pages in same PDF to open the new desired page. Example: User is on page 2 and when user tap on menu button, I need to navigate directly on page number 8. With above scenario, my application takes a while to load page number 8 and User can see white screen before loading PDF page. When I checked console log, I can see following as an error. F.I: App requires to use usePageViewController for pagination. I am using as per following: _pdfView = [[PDFView alloc] initWithFrame:[UIScreen mainScreen].bounds]; [view addSubview:self.pdfView]; self.pdfView.delegate = self; [self.pdfView setAutoScales:true]; [self.pdfView setDisplayDirection:kPDFDisplayDirectionHorizontal]; [self.pdfView usePageViewController:true withViewOptions:nil]; [self.pdfView setBackgroundColor:UIColor.whiteColor]; Warning: Unable to complete drawing page index 24 on time as a request to forceUpdateActivePageIndex:withMaxDuration: 0.02 I hope if someone can help me on that Thanks.
Replies
0
Boosts
0
Views
953
Activity
Sep ’23
Crash in PDF Kit
Crashed: com.apple.main-thread 0 CoreFoundation 0x7c59c CFArrayGetCount + 8 1 CorePDF 0x28c1c CGPDFTaggedNodeEnumerateChildren + 52 2 CorePDF 0x28b70 CGPDFTaggedNodeGetBounds + 244 3 PDFKit 0x6400 (Missing UUID 4dedb563f2df3dceae5066d6b4718b9f) 4 UIAccessibility 0x818e0 ___axuiElementForNotificationData_block_invoke + 56
Replies
2
Boosts
1
Views
1.5k
Activity
Aug ’23
PDFKit - PDFPage.characterBounds(at:) returns wrong character bounds with iOS 17 beta 5
PDFKit's PDFPage.characterBounds(at: Int) is returning incorrect coordinates with iOS 17 beta 5 / Xcode 15 beta 6. Worked fine iOS 16 and earlier. It breaks critical functionality that my app relies on. I have filed feedback (FB12918701).
Replies
0
Boosts
0
Views
1k
Activity
Aug ’23
WKWebView doesn't show edit menu for pdf documents.
I've noticed that edit menu with Copy, Look Up, Translate options doesn't appear when I select some text in pdf file loaded in WKWebView. This issue is reproducible on the latest iOS 16 and 17 beta versions. Additionally, these two WKUIDelegate methods are called for all types of documents except PDFs. func webView(_ webView: WKWebView, willPresentEditMenuWithAnimator animator: UIEditMenuInteractionAnimating) func webView(_ webView: WKWebView, willDismissEditMenuWithAnimator animator: UIEditMenuInteractionAnimating) Is this a bug or is there a new WebKit/PDFKit API I could use to enable this menu? Feedback ID: FB12759407
Replies
0
Boosts
0
Views
877
Activity
Aug ’23
How to get this example to work?
Hello there, I am trying to follow along with the video and copy the example shown here in SwiftUI. I am given the error Cannot assign value of type 'UIView' to type 'PKCanvasView?' on this line: resultView = overlayView It is totally possible that I am botching the whole thing up but I would appreciate it if someone looked over my code. Thanks. code: // ContentView.swift import SwiftUI import PDFKit import PencilKit import Foundation import UIKit struct PDFUIView: View { let pdfDoc: PDFDocument let pdfView: PDFView init() { let url = Bundle.main.url(forResource: "example", withExtension: "pdf")! pdfDoc = PDFDocument(url: url)! pdfView = PDFView() } var body: some View { VStack { PDFKitView(showing: pdfDoc, pdfView: pdfView) } .padding() } } #Preview { PDFUIView() } struct PDFKitView: UIViewRepresentable { let pdfDocument: PDFDocument let pdfView: PDFView init(showing pdfDoc: PDFDocument, pdfView:PDFView) { self.pdfDocument = pdfDoc self.pdfView = pdfView } func makeUIView(context: Context) -> PDFView { pdfView.usePageViewController(true) pdfView.autoScales = true pdfView.pageOverlayViewProvider = context.coordinator pdfView.displayMode = .singlePageContinuous pdfView.isUserInteractionEnabled = true pdfView.document = pdfDocument pdfView.delegate = context.coordinator return pdfView } func updateUIView(_ pdfView: PDFView, context: Context) { pdfView.document = pdfDocument } func makeCoordinator() -> Coordinator { Coordinator() } } class Coordinator: NSObject, PDFPageOverlayViewProvider, PDFViewDelegate { var pageToViewMapping = [PDFPage: UIView]() func pdfView(_ view: PDFView, overlayViewFor page: PDFPage) -> UIView? { var resultView: PKCanvasView? = nil if let overlayView = pageToViewMapping[page] { resultView = overlayView } else { var canvasView = PKCanvasView(frame: .zero) canvasView.drawingPolicy = .anyInput canvasView.tool = PKInkingTool(.pen, color: .systemCyan, width: 20) canvasView.backgroundColor = UIColor.clear pageToViewMapping[page] = canvasView resultView = canvasView } let page = page as! MyPDFPage if let drawing = page.drawing { resultView?.drawing = drawing } return resultView } func pdfView(_ pdfView: PDFView, willDisplayOverlayView overlayView: UIView, for page: PDFPage) { guard let overlayView = overlayView as? PKCanvasView else { return } guard let canvasView = pageToViewMapping[page] else { return } let page = page as! MyPDFPage page.drawing = overlayView.drawing pageToViewMapping.removeValue(forKey: page) } class MyPDFAnnotation: PDFAnnotation { override func draw(with box: PDFDisplayBox, in context: CGContext) { UIGraphicsPushContext(context) context.saveGState() let page = self.page as! MyPDFPage if let drawing = page.drawing { let image = drawing.image(from: drawing.bounds, scale: 1) image.draw(in: drawing.bounds) } context.restoreGState() UIGraphicsPopContext() } } class MyPDFPage: PDFPage { var drawing: PKDrawing? } }
Replies
1
Boosts
0
Views
1.5k
Activity
Jul ’23
How to use PDFPageOverlayViewProvider?
I'm trying to use PDFPageOverlayViewProvider by copying the code provided in the "What's new in PDFKit" WWDC22 session here: https://developer.apple.com/videos/play/wwdc2022/10089/ I've copied the method implementations and set my pdfView's pageOverlayViewProvider property to the view where I implemented the protocol. However, when I try to run my app, the pdfView(_ view: PDFView, overlayViewFor page: PDFPage) method is never getting called. Has anyone been able to get this working successfully?
Replies
5
Boosts
1
Views
4k
Activity
Jul ’23
wwdc2022-10089 issue
Hi, I'm trying to use PencilKit over PDFKit as described in https://developer.apple.com/videos/play/wwdc2022/10089/. The thing is I open my custom UIDocument and initialize all its content to feed PDFView. Everything seems to work, I Input sketches in the canvas, PDFPageOverlayViewProvider's overlayView(for:) generates canvas correctly (it seems) but when editing finishes : willEndDisplayingOverlayView never gets called, and when I save the UIDocument (I use document.close(completionHandler:)) contents(forType:) never sees my custom PDFPages and I get no content for sketches. Does anyone of you have an idea of the lifecycle we should follow to get the methods called ? Sincerely yours
Replies
2
Boosts
0
Views
1.2k
Activity
Jul ’23
Codes are not working at this video.
https://developer.apple.com/videos/play/wwdc2022/10089/ I am trying to run codes about PDFPageOverlayViewProvider, but the codes are not working. I cannot see what I wrote or annotate. Anyone know how can I solve and make this code working?  func pdfView(_ view: PDFView, overlayViewFor page: PDFPage) -> UIView? {         var resultView: PKCanvasView? = nil         if let overlayView = pageToViewMapping[page] {             resultView = (overlayView as! PKCanvasView)         } else {             let canvasView = PKCanvasView(frame: .zero)             canvasView.drawingPolicy = .anyInput             canvasView.tool = PKInkingTool(.pen, color: .yellow, width: 20)             canvasView.backgroundColor = .clear             pageToViewMapping[page] = canvasView             resultView = canvasView         }         let page = page as! WatermarkPage         if let drawing = page.drawing {             resultView?.drawing = drawing         }         return resultView     }          func pdfView(_ pdfView: PDFView, willEndDisplayingOverlayView overlayView: UIView, for page: PDFPage) {         let overlayView = overlayView as! PKCanvasView         let page = page as! WatermarkPage         page.drawing = overlayView.drawing         pageToViewMapping.removeValue(forKey: page)     }
Replies
2
Boosts
0
Views
1.3k
Activity
Jul ’23
QLPreviewController is not saving file for Large Size PDF
I am using QLPreviewController with SwiftUI using UIViewControllerRepresentable. If I try to delete or insert pages of large size PDF, QLPreviewController is not calling delegate methods (didUpdateContentsOf, didSaveEditedCopyOf). struct QuickLookController: UIViewControllerRepresentable { @Environment(\.dismiss) var dismiss weak var delegate: QLPreviewControllerDelegate? weak var dataSource: QLPreviewControllerDataSource? func makeUIViewController(context: Context) -> UINavigationController { let controller = context.coordinator.controller controller.delegate = delegate controller.dataSource = dataSource controller.navigationItem.rightBarButtonItem = context.coordinator.dismissButton return UINavigationController(rootViewController: controller) } func updateUIViewController(_ viewController: UINavigationController, context: UIViewControllerRepresentableContext<QuickLookController>) { } func makeCoordinator() -> Self.Coordinator { .init(parent: self) } @MainActor class Coordinator: NSObject { var parent: QuickLookController init(parent: QuickLookController) { self.parent = parent } lazy var controller: QLPreviewController = { let controller = QLPreviewController() return controller }() lazy var dismissButton: UIBarButtonItem = { let button = UIBarButtonItem( title: NSLocalizedString("Done", comment: ""), style: .plain, target: self, action: #selector(rightButtonTapped(_:)) ) button.tag = 2 return button }() @objc func rightButtonTapped(_ sender: Any) { controller.dismiss(animated: true) } } } // MARK: QuickLook extension ViewerModel: QLPreviewControllerDataSource, QLPreviewControllerDelegate { public func numberOfPreviewItems(in controller: QLPreviewController) -> Int { 1 } public func previewController( _ controller: QLPreviewController, previewItemAt index: Int ) -> QLPreviewItem { let title = self.document .documentURL? .lastPathComponent ?? "" let url = PDFManager .directory .appendingPathComponent(title) as NSURL return url as QLPreviewItem } public func previewControllerDidDismiss(_ controller: QLPreviewController) { } public func previewControllerWillDismiss(_ controller: QLPreviewController) { } ✔️ It's same even if I set it to updateContents public func previewController(_ controller: QLPreviewController, editingModeFor previewItem: QLPreviewItem) -> QLPreviewItemEditingMode { .createCopy } ✔️ Not called with Large Size PDF public func previewController(_ controller: QLPreviewController, didUpdateContentsOf previewItem: QLPreviewItem) { } ✔️ Not called with Large Size PDF public func previewController(_ controller: QLPreviewController, didSaveEditedCopyOf previewItem: QLPreviewItem, at modifiedContentsURL: URL) { } }
Replies
0
Boosts
0
Views
1.2k
Activity
Jul ’23
Cannot get rid of "Highlight" context menu item in PDFView
Hello. There is a "Highlight" context menu option that shows up when a user right-clicks some selected text in a PDF. There is no way to get rid of this menu item and clicking it does nothing. How do I get rid of it? I tried overriding buildMenu(with builder: UIMenuBuilder) to remove it but that doesn't work. Help!
Replies
5
Boosts
3
Views
2k
Activity
Jul ’23
how do I print the contents of the PdfView?
XCode - Swift private var mPdfView = PDFView() private var mDocumentData: Data? mDocumentData = MakePdfDocument() mPdfView.document = PDFDocument(data: mDocumentData!) let printInfo = UIPrintInfo(dictionary: nil) printInfo.outputType = UIPrintInfo.OutputType.general printInfo.jobName = “JobName” let printController = UIPrintInteractionController.shared printController.printInfo = printInfo printController.printingItem = mPdfView printController.showsNumberOfCopies = true printController.present(animated: true, completionHandler: nil) **When print is executed, only the blank screen is output, not the generated PDF. How can I print the generated PDF content?**
Replies
2
Boosts
0
Views
1.6k
Activity
Jul ’23
PDFKit crashing randomly with error "[UIPageViewController queuingScrollView:didEndManualScroll:toRevealView:direction:animated:didFinish:didComplete:]"
We are using PDFKit to load the online PDF. It works fine for most of the cases. however sometimes app crashes with following error. "*** Assertion failure in -[UIPageViewController queuingScrollView:didEndManualScroll:toRevealView:direction:animated:didFinish:didComplete:], /SourceCache/UIKit/UIKit-3318.0.1/UIPageViewController.m:1875 2014-09-29 11:34:00.770 Wowcher[193:9460] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'No view controller managing visible view <UIView: 0x1783fa80; frame = (0 0; 320 416); autoresize = W+RM+H+BM; layer = <CALayer: 0x17898540>>'" we are not using UIPageViewController explicitly anywhere. Therefore not able to fix this issue. Any solution ?
Replies
0
Boosts
1
Views
816
Activity
Jul ’23
How to create custom edit menu and remove the default edit menu which is shown in pdfView for iOS 16
I am not getting any action callback on the default Highlight edit menu, when selecting the text and pressing the Highlight edit menu, where do we get the callback of this edit menu? Also I am trying to remove this default edit menu and trying to add a set of new edit menus but some of the default edit menu is not getting removed. So how can we achieve this Do we need to use UIEditMenuIntraction to add a new edit menu since in iOS 16 UIMenuController is deprecated, if yes then how to implement it on the text selection in pdfview. For iOS 16 I have tried to override the default edit menus using UIMenuBuilder and added a few new edit menus as a sibling, but unable to remove the default edit menu ex-(`Highlight'). - (void)buildMenuWithBuilder:(id<UIMenuBuilder>)builder{ if (@available(iOS 16.0, *)) { [builder removeMenuForIdentifier:UIMenuLookup]; [builder removeMenuForIdentifier:UIMenuReplace]; [builder removeMenuForIdentifier:UIMenuShare]; [builder removeMenuForIdentifier:UIMenuFormat]; // Add new .textStyle action UIAction *testMenuItem = [UIAction actionWithTitle:@"Test" image:nil identifier:nil handler:^(UIAction *action){ NSLog(@"action callback"); }]; [builder replaceChildrenOfMenuForIdentifier:UIMenuStandardEdit fromChildrenBlock:^NSArray<UIMenuElement *> * _Nonnull(NSArray<UIMenuElement *> * _Nonnull existingChildren) { NSMutableArray *children = [NSMutableArray arrayWithArray:existingChildren]; [children addObject:testMenuItem]; return children; }]; } [super buildMenuWithBuilder:builder]; } Also tried canPerformAction method to get the action callback of default Highlight edit menus and tried to the removed default edit menus by returning No but no luck. - (BOOL)canPerformAction:(SEL)action withSender:(id)sender { BOOL can = [super canPerformAction:action withSender:sender]; return NO; }
Replies
2
Boosts
1
Views
1.7k
Activity
Jul ’23
create PDF/A-3 with XML
Hi all, I create PDF from my app, but I would like to know if it's possible to create PDF/A-3 with PDFKIT and integrate XML into ?
Replies
0
Boosts
0
Views
849
Activity
Jun ’23
App crash with *** CFRelease() called with NULL *** when PDFTileSurface releaseSurface is called
We noticed a small number of crashes in iOS15/16 when user are viewing out EPaper with is a PDFView. From the stack trace, this is happening when releaseSurface is called in PDFTileSurface, and an error occurs due to CFRelease() called with NULL. Is there any way we can avoid this crash from our application? 0 CoreFoundation 0x198594 CFRelease.cold.1 + 16 1 CoreFoundation 0x7b83c CFRetain + 206 2 PDFKit 0x3051c -[PDFTileSurface releaseSurface] + 48 3 PDFKit 0x31668 -[PDFTilePool releasePDFTileSurface:] + 172 4 PDFKit 0x34638 -[PDFPageLayerTile dealloc] + 92 5 CoreFoundation 0x6ec40 -[__NSArrayI_Transfer dealloc] + 80 6 libobjc.A.dylib 0x19a4 AutoreleasePoolPage::releaseUntil(objc_object**) + 192 7 libobjc.A.dylib 0x4dac objc_autoreleasePoolPop + 252 8 UIKitCore 0x4f5ac -[UIScrollView setContentOffset:] + 1164 9 UIKitCore 0xb587c -[UIScrollView _smoothScrollSyncWithUpdateTime:] + 2156 10 UIKitCore 0xb4fd0 -[UIScrollView _smoothScrollWithUpdateTime:] + 240 11 UIKitCore 0x360fd8 -[UIScrollView _smoothScrollDisplayLink:] + 476 12 QuartzCore 0x27614 CA::Display::DisplayLink::dispatch_items(unsigned long long, unsigned long long, unsigned long long) + 832 13 QuartzCore 0x38698 display_timer_callback(__CFMachPort*, void*, long, void*) + 368 14 CoreFoundation 0x76c34 __CFMachPortPerform + 172 15 CoreFoundation 0x91f04 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 56 16 CoreFoundation 0x93a30 __CFRunLoopDoSource1 + 512 17 CoreFoundation 0x7758c __CFRunLoopRun + 2324 18 CoreFoundation 0x7bb58 CFRunLoopRunSpecific + 584 19 GraphicsServices 0x1984 GSEventRunModal + 160 20 UIKitCore 0x375628 -[UIApplication _run] + 868 21 UIKitCore 0x3752a0 UIApplicationMain + 312```
Replies
2
Boosts
2
Views
1.5k
Activity
Jun ’23
PDFKit Annotations Accessibility
I noticed that the PDFAnnotations added to a PDFPageView are not taking the accessibility properties as part of the data that later is being reported by the Accessibility Inspector. And also it seems this class: PDFNodeAccessibilityElement is not exposed from PDFKit. Anyone knows a way to override the Accessibility information for a PDF Annotation? Another issue I saw is that when you remove the PDF Annotation from the page, the Accessibility Inspector still shows it as if the annotation stayed there. Tried multiple ways to find a way to force the Accessibilty nodes to refresh, but sill haven't found a way for doing it. Would be great to hear if anyone had to deal with this kind of issues before
Replies
1
Boosts
0
Views
1.1k
Activity
Jun ’23