开发者

FPDI use template issue

开发者 https://www.devze.com 2023-02-15 02:59 出处:网络
Has anyone had any experience with fpdi in creating 开发者_如何学JAVAtemplates to be used on multiple pages.

Has anyone had any experience with fpdi in creating 开发者_如何学JAVAtemplates to be used on multiple pages.

$fpdi->useTemplate($tplidx, 0, 0, 210, 297,true);

The above works great for my template but when using writeHTML and the text goes over one page it only applies the template to the current page. Am I doing something wrong or is their some other way around doing this.

Thanks


Looking at the online documentation, I don't think you can. Each call to useTemplate() adds one instance at the given location, but I don't see a way to specify a particular page.

I recommend getting a decent PDF library. fpdi looks to be designed to convince you to buy Setasign's other products so you can actually accomplish things. Googling "php pdf" turned up several.

0

精彩评论

暂无评论...
验证码 换一张
取 消