I have PDFium building and rendering pages on iOS devices.
The patches (below) are tiny due to macOS and iOS having identical APIs which PDFium is using. These minor changes support building for both macOS and iOS:
a) #include <Carbon/Carbon.h> is deprecated in macOS and not available in iOS. This outdated include has been removed in one header and replaced with #include <CoreGraphics/CoreGraphics.h> and #include <CoreFoundation/CFString.h> in another which pull in the definitions for the APIs PDFium is using.
b) BUILD.gn has been changed in two places from if (is_mac) to if (is_mac || is_ios) to pull in the platform specific files for iOS.
Finally, one hack to help the build along is to create a pdfium/testing/gtest_ios directory and populate it with sample Default.png and unittest-Info.plist files and then use the following for
args.gn:
is_debug = false # Debugging features
pdf_use_skia = false # Set true to enable experimental skia backend
pdf_use_skia_paths = false # Set true to enable experimental skia backend (paths only)
pdf_enable_xfa = false # Set false to remove XFA support (implies JS support)
pdf_enable_v8 = false # Set false to remove Javascript support
pdf_is_standalone = true # Set for a non-embedded build
is_component_build = false # Disable component build (must be false)
clang_use_chrome_plugins = false # Currently must be false
use_sysroot = false # Currently must be false on Linux