PdfReportKit
- 授权协议: Apache
- 开发语言: Objective-C
- 操作系统: iOS
- 软件首页: https://github.com/as-cii/PdfReportKit
- 软件文档: https://github.com/as-cii/PdfReportKit
软件介绍
PdfReportKit 是一个小的工具包,用于通过 HTML 模板来创建 PDF 报表,每个页面都支持头、底部和其他内容。
示例模板:
{{#documentHeader}}
Whatever you want
{{/documentHeader}}
使用代码:
NSError * error; NSString * templatePath = [[NSBundle mainBundle] pathForResource:@"foo" ofType:@"mustache"]; [[PRKGenerator sharedGenerator] createReportWithName:@"foo" templateURLString:templatePath itemsPerPage:20 totalItems:articles.count pageOrientation:PRKLandscapePage dataSource:self delegate:self error:&error];
