[
"findings" => [
[
"proofsegments" => [
[
"image" => <pathtoimage>,
],
[
"image" => <pathtoanotherimage>,
],
]
],
[
"proofsegments" => [
[
"image" => <pathtoimage>,
],
[
"image" => <pathtoanotherimage>,
],
]
],
],
];
This works fine as long as the image is not adjusted. To prevent the image potentially being wider than the page we use adjust=samewidth to make the image taller as necessary. This produces an unreadable document. The reason for this is twofold.
It should be that the value 6259281 replaces the value of cy attribute in the <a:ext/> tag.
It seems the misplaced alterations always are placed too far to the right. Adjusting pictures works fine when not in a repeating block.
In the function TbsPicAdjust the new height is replacing the old one in $Txt via $Txt = substr_replace($Txt, $new, $beg, $len);
It appears that $beg now has a value that is too large causing the replacement to occur too far to the right. In my specific case subtracting 66 from $b placed the new height at the correct spot, but in another test with a different template document without sub-blocks the height was misplaced by a different amount. I suspect a similar thing is happening in TbsPicExternalPath or TbsPicAdd.