Although the iOS platform provides a convenient PDF rendering interface, the support for simplified Chinese fonts is incomplete and garbled. Even though there are some improvements in IOS 5.0, there are still garbled issues. Mupdf is an open-source pdf reader with relatively high rendering efficiency and good support for simplified Chinese fonts. Official Website: Workshop. Simulator i386 rules: CC =/developer/platforms/iphonesimulator. platform/developer/usr/bin/gcc-4.2AR =/developer/platforms/iphonesimulator. platform/developer/usr/bin/arcpp =/developer/platforms/iphonesimulator. platform/developer/usr/bin/cppcflags + =-arch i386-M32-pipe-mdynamic-no-pic-STD = c99-wno-trigraphs-fpascal-strings-FASM-Blocks -O0-wreturn-type-wunused-variable-fmessage-length = 0-fvisibility = hidden-mmacosx-version-min = 10.5-I/developer/platforms/iphonesimulator. platform/developer/sdks/iphonesimulator4.2.sdk/usr/include/
-Isysroot/developer/platforms/iphonesimulator. platform/developer/sdks/iphonesimulator4.2.sdkldflags + =-arch i386-M32-isysroot/developer/platforms/iphonesimulator. platform/developer/sdks/iphonesimulator4.2.sdk-wl,-dead_strip-mmacosx-version-min = 10.5 crosscompile = yesnox11 = Yes real machine armv6 rule: CC =/developer/platforms/iphoneos. platform/developer/usr/bin/gcc-4.2AR =/developer/platforms/iphoneos. platform/developer/usr/bin/arcpp =/developer/platforms/iphoneos. platform/developer/usr/bin/cppcflags + =-arch armv6-pipe-mdynamic-no-pic-STD = gnu99-wno-trigraphs-fpascal-strings-O2-wreturn-type -wunused-variable-fmessage-length = 0-fvisibility = hidden-miphoneos-version-min = 4.2-I/developer/platforms/iphoneos. platform/developer/sdks/iphoneos4.2.sdk/usr/include/libxml2
-Isysroot/developer/platforms/iphoneos. platform/developer/sdks/iphoneos4.2.sdkldflags + =-arch armv6-isysroot/developer/platforms/iphoneos. platform/developer/sdks/iphoneos4.2.sdk-miphoneos-version-min = 4.2 crosscompile = yesnox11 = Yes real machine armv7 rules: CC =/developer/platforms/iphoneos. platform/developer/usr/bin/gcc-4.2AR =/developer/platforms/iphoneos. platform/developer/usr/bin/arcpp =/developer/platforms/iphoneos. platform/developer/usr/bin/cppcflags + =-arch armv7-pipe-mdynamic-no-pic-STD = gnu99-wno-trigraphs-fpascal-strings-O2-wreturn-type -wunused-variable-fmessage-length = 0-fvisibility = hidden-miphoneos-version-min = 4.2-I/developer/platforms/iphoneos. platform/developer/sdks/iphoneos4.2.sdk/usr/include/libxml2
-Isysroot/developer/platforms/iphoneos. platform/developer/sdks/iphoneos4.2.sdkldflags + =-arch armv7-isysroot/developer/platforms/iphoneos. platform/developer/sdks/iphoneos4.2.sdk-miphoneos-version-min = 4.2 crosscompile = yesnox11 = Yes run the make libs command to generate * in the directory *. library. Some problems encountered during the process: after the library file is generated, the related interface is called in the project, and the following error occurs: LD: symbol (s) not found. After troubleshooting, a small error has been made: mupdf is compiled using the C compiler, but the project is compiled using C ++. Therefore, you need to add extern "C" {# include <Fitz. h> # include <mupdf. h >} when compiling the library file of the real machine version, the following error occurs: 'asm 'undeclared (first use in this function) has been checked. The compilation parameter settings are incorrect, replace-STD = c99 with-STD = gnu99. For details, see: What's the difference between gnu99 and c99 (clang )?
Http://stackoverflow.com/questions/5313536/whats-the-difference-between-gnu99-and-c99-clang
Finally there is garbled code: