Width and X position of scaled MultiCells
I noticed an odd behavior of MultiCells in transformations (especially scaling). It doesn't occur in Cells, but I suppose it might occur as well in other elements that are modified to fit the page dimensions.
Within a down-scaled part of the document, positions such as (230, 50) are still visible on a standard A4 page, because the dimensions get scaled down according to the transformation. However, TCPDF seems to force elements into the 210mm width of an A4 page, without scaling this page dimension or the margins. I modified example_013 from the documentation to illustrate my case, the code can be seen here. The resulting PDF is
example_013.pdf
Tested with TCPDF 6.2.11, 6.2.26 and master branch at 9fde7bb (6.3.2).
Has anyone else encountered a similar behaviour with TCPDF and has an idea how to solve this? I have debugged this for some time now and suspect that it has something to do with the position and width calculations inside MultiCell, but I'm not sure how exactly this can be fixed.
Thank you for reporting this. TCPDF 6 is now a legacy project and is officially deprecated, so no further fixes or features will be merged into this repository. As part of this transition, we are closing older issues. Please migrate to tc-lib-pdf and, if the same problem still occurs there, open a new issue with updated reproduction steps. For more context, see the pinned announcement: Thank You - and the Future of TCPDF.