OCPDFGen 可让你从 HTML、NSAttributedStrings 和 NSStrings 直接生成 PDF 文件。使用 DTCoreText 从 HTML 中提取 NSAttributedString。