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.
write を呼び出すと、最初のページに書き込む必要がある現在のページに追加されるため、 addPage を複数回呼び出した後に前のページに戻ることができる方法です。私はそのドキュメントを調べましたが、何も見つからないようですか?
ちなみに私はphpでpdfを作成しています
ありがとう
これは、次のコードを使用して解決されました。
$numPages = $fpdi2->getNumPages(); for($int=1;$int < $numPages + 1; $int++){ $fpdi2->setPage($int ); // do your code here with that page }
プログラムロジックを変更する必要があります。