We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

İmage Replace error

When the attached document is requested to be displayed as .pdf in the system, the changed photo for is corrupted. Entering long text in the field on the first page will show that the size of the photo on the second page has been improved (see output_replacetext.pdf document). When long text is entered in the fields on the first page, it is seen that the photo area of on the second page is broken. You can use the attached test application for the scenario where the error is encountered.
I attached the original file and corrupted file.
YG13858.zip (820.2 KB)
Test Application

@srmbimser,

Thanks for the sample files and sample code.

We will check and get back to you soon.

@srmbimser,
We have observed this issue and logged it in our database for further investigation. You will be notified here once any update is ready for sharing.

This issue is logged as:
CELLSNET-47851 - Image is corrupted in the output PDF after text replacement with image in Excel file

@srmbimser,
Please remove the line :

pic.Placement = Aspose.Cells.Drawing.PlacementType.FreeFloating;

If the Placement type is PlacementType.FreeFloating, the shape will leave the cell. If it is left-top cell then height of the front rows changes.

We removed this line

pic.Placement = Aspose.Cells.Drawing.PlacementType.FreeFloating;
ALAN50 and ALAN51 fields on the first page are broken after changing

Test app

@srmbimser,
We have observed the issue and logged it with the ticket for further analysis. We will write back here once any update is ready for sharing.

Hi ,
Is there any update for this bug or how can we prevent this bug for this shape.

@srmbimser,

I am afraid, your issue is not resolved yet. We will check if we could provide you an update or ETA on the issue. We will get back to you soon.

@srmbimser
Please post your expected xlsx and pdf files. We will check it soon.

You can find the registration documents here

@srmbimser,

These are your original input Excel and output PDF, is not it? We requested your expected Excel file and expected (output) PDF file to evaluate your issue precisely. You can create your expected Excel file manually and then render to (Save As) PDF. We will check it soon.