Free Support Forum - aspose.com

Html img tag style attribute border is ignored if converted to pdf or docx

Hi,

we are facing an issue with the conversion of html to pdf and docx.
The html to convert looks like this <p style="text-align: left;"><img src="C:\PAth\To\Image\image.PNG" alt="parameter-illegal-error.PNG" width="500" style=" border: solid 1px; margin: 0px;" height="270" /></p> but the resulting pdf or docx files only have borderless images.

Regards,
Johannes W.

@orgavision,

Thanks for your inquiry. Please ZIP and attach your input image, output PDF, and code example here for testing. We will investigate the issue and provide you more information on it.

Thank you for your fast reply.

Input image, output pdf and code example are all inside the test.zip.

test.zip (25.7 KB)

@orgavision,

Thanks for sharing the detail. We have tested the scenario and have managed to reproduce the same issue at our side. For the sake of correction, we have logged this problem in our issue tracking system as WORDSNET-16930. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

The issues you have found earlier (filed as WORDSNET-16930) have been fixed in this Aspose.Words for .NET 18.8 update and this Aspose.Words for Java 18.8 update.