Foxit Quick PDF Library

Foxit Quick PDF Library and Mac Xcode Projects

Several sample projects are provided with the download files for the Dylib edition of Foxit Quick PDF Library for Mac OS X. We recommend that you start your evaluation of Foxit Quick PDF Library on Mac using these sample projects as they provide a useful guide for how to initialise the library inside an Xcode project and the various necessary settings.

The dylib for Foxit Quick PDF Library has a dependency on the Delphi restributable (libcgunwind.1.0.dylib) and both the .dylib files use @rpath for their install_path. Both dyblib files must use the same path in order for the application to function correctly. The dylib for Foxit Quick PDF Library is 32-bit only and so the XCode project must be set to 32-bit mode.

If you add the Foxit Quick PDF Library dylibs into the “Linked Frameworks and Libraries” section of your Xcode project this will cause the app to try to attach to the dylib statically and as a result generate an error message. You should instead attach the dylibs dynamically.

In the Xcode samples you’ll notice we have a Copy Files section in the Build Phases. This has two entries, copying the dylibs to the Frameworks folder.

Then your code can get the path of the Frameworks folder at runtime to initialize Foxit Quick PDF Library:

    NSBundle* mainBundle = [NSBundle mainBundle];
    NSString* dylibPath = [mainBundle privateFrameworksPath];
    
    dylibPath = [dylibPath stringByAppendingPathComponent:@"libDebenuPDFLibraryDylib0912.dylib"];
    DebenuPDFLibraryDylibClass0912* DQPL = [[[DebenuPDFLibraryDylibClass0912 alloc] initWithDylibFileName:dylibPath]autorelease];

This article refers to a deprecated product. If you are looking for support for Foxit PDF SDK, please click here.

Updated on May 16, 2022

Was this article helpful?
Thanks for your feedback. If you have a comment on how to improve the article, you can write it here: