

PDFXViewPageChanged.īuild & run your project, your app is now using PDFXKit with PSPDFKit under the

PDFViewPageChanged should be renamed to. PDFKit notification constant, fix those by adding an X to the prefix, i.e. Build & run your project, it should produce build errors for every use of a.PDFThumbnailView to PDFXView and PDFXThumbnailView Open each xib and replace all custom classes set to PDFView and PDFThumbnailView to PDFXView and PDFXThumbnailView. Open each storyboard and replace all custom classes set to PDFView and
Apple pdfkit tutorial update#
If you are using storyboards or xibs, update all custom classes: Search & replace #import with #import.Search & replace import PDFKit with import PDFXKit.Bring up the search & replace panel (Menu Find -> Find and Replace in Project.).Update all source files to import PDFXKit instead of the PDFKitįramework using Xcode’s project-wide search & replace: Now we need to perform a couple of small changes in order to make your project use Switch to PDFXKitįirst, register the PSPDFKit license for your project as described in

You should now be able to build & run your app. May also want to set up your test targets accordingly. Perform steps (1) and (2) from the above Getting Started guide, SectionĪnd add PDFXKit to your app similar to how you did it with PSPDFKit above. The PSPDFKit.xcframework, PSPDFKitUI.xcframework, and PDFXKit.xcframework to your project:įollow the Getting Started instructions for PSPDFKit. You should now have the PDFXFKit.xcframework in the Build folder.
Apple pdfkit tutorial manual#
Note: manual setup is only for experts, we assume you know what you areĭoing. Next you’ll have to adapt your project to use PDFXKit asĭescribed in Section Switch to PDFXKit. Afterwards you should be able to build & run your project target :YourAppName do pod 'PDFXKit', :git =>, :branch => "master" end # Replace `YourAppName` with your app’s target name. We assume you are familiar with CocoaPods, otherwiseįirst, you’ll have to add PDFXKit as a dependency to your Podfile: Select “Up to Next Major Version” follow the instructions to finish the setup.

Apple pdfkit tutorial pdf#
PSPDFKit on the other hand goes much further offering you a cross-platformĭrop-in solution with many additional UI components, advanced PDF features,Īnd first class support directly from the developers. IntroductionĪpple’s PDFKit provides a great starting point if you need to integrate PDF Note: PSPDFKit is a commercial product and requiresĪ paid license for production use. Leading PSPDFKit framework under the hood. PDFXKit is a drop-in replacement for Apple’s
