The logic will execute a webservice on one of the document events such as Doc Ready, Form Ready, Layout Ready, server side only. We tried all such events. This web service will load the original image into the field. If the image size is within the border, everything looks fine. But if it is bigger, it will cross the field borders only if the image proportion is set to "height". See sample below.
The snapshot above is taken from the flattened PDF. The PDF is generated, by invoking the LiveCycle ES4 API to flatten the PDF, from Java Program.
Any idea if this is expected behaviour? Is there any special parameter in the Flattening API to respect image proportion setting (fit to width, fit to size...etc)?
It is confirmed that there is something wrong with the rendering engine. If the image size is larger than the image field, and aspect ratio is "original" or "height", and the process is running on the server (flattening the PDF) then the weird effect above will occur. Other settings like "proportional" or "fit" are OK. However, if the image size is smaller, then there is no problem at all.
Message was edited by: Tarek Faham To clarify the scenario where the problem happens.