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.
画像ストリームから PDF を生成していますが、実際の画像のサイズには常に少しの違いがあり、画像も縮小されます。
私はそれにTCPDFクラスを使用しています
助けてください....
画像ドキュメントを 72 dpi の解像度と A4 のドキュメント サイズ (または tcpdf で設定した任意のサイズ) に設定します。
次に、画像を呼び出す$tcpdf->image('/path/to/image.ext')と、正しいサイズになるはずです。
$tcpdf->image('/path/to/image.ext')
ポイントで考えてください。ピクセルは、tcpdf で生成された pdf スペースではあまり使用されません。