mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-11-20 19:18:41 +00:00
#7814 brought this branch's first two commits to main inside step 2, but not the three fixes made here since: the RTF picture budget that counts every placement, rotations baked into the pictures, pictures fitted to the text height, and the pages that lost a picture reported through truncated_pages. They now sit in step 2's Builder: RTF's flow_doc gives it a pictures::Budget, and Word's word_doc doesn't, so Word keeps its own limits (room_for) and turns positioned pictures through their float. The text-height fit is in the shared picture(), so Word's flowing pictures fit too. The truncated_pages doc now says what RTF reports: pictures lost to its own limits or a rotation it couldn't bake. A picture no format can encode is left out of all of them.