PdfReportKitPDF 工具包

联合创作 · 2023-09-27

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];

 

浏览 4
点赞
评论
收藏
分享

手机扫一扫分享

编辑
举报
评论
图片
表情
推荐
点赞
评论
收藏
分享

手机扫一扫分享

编辑
举报