Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
它们是一种我可以在多次调用 addPage 后返回上一页的方式,因为当我调用 write 时,它会将其添加到我需要它在第一页上写入的当前页面。我浏览了它的文档,似乎找不到任何东西?
顺便说一句,我正在用 php 创建我的 pdf
谢谢
使用以下代码解决了这个问题,
$numPages = $fpdi2->getNumPages(); for($int=1;$int < $numPages + 1; $int++){ $fpdi2->setPage($int ); // do your code here with that page }
你必须改变你的程序逻辑。