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

Free Support Forum - aspose.com

Convert HTML to PDF using C# and Aspose.PDF for .NET | Italic style gets applied to whole page

Hello,

We are trying to convert HTML to PDF. We applied italic style to one paragraph only but when we got the converted PDF we found that whole page contains the italic style. We checked the HTML page but it looks proper.

Attaching demo application here. You can find HTML file and converted PDF file within the demo.
Aspose Demo App.zip (1007.7 KB)

Regards,
Synoptek

@siriussynoptek

We tested the scenario using Aspose.PDF for .NET 21.5 and did not notice any issue at our end. Could you please try using the latest version and let us know in case issue still persists.
test.pdf (152.8 KB)

image.png (136.4 KB)
Check the the HTML file here, We applied the italic style to first paragraph only.
image.png (130.0 KB)
Check the PDF here, Italic style gets applied to whole page.

We tried the with the latest version as well, still we’re facing issue. Kindly check the above SS.

Regards,
Synoptek

@siriussynoptek

We used the same code snippet which you have shared with us. However, we were unable to notice any issue as you can see in the shared PDF output. Could you please share the sample PDF with us that has been generated at your end using the latest version of the API?

Please find attached PDF. test.pdf (144.3 KB)

Regards,
Synoptek

@siriussynoptek

We are again testing the scenario and will be sharing our feedback with you soon.

@siriussynoptek

We were able to reproduce the issue in our environment while testing the scenario with 21.6 version of the API. We have logged it as PDFNET-50086 in our issue tracking system for investigation. We will look into its details and keep you posted with the status of its rectification. Please be patient and spare us some time.

We are sorry for the inconvenience.

PS: Earlier, we tested the scenario in a console application by taking the code from your application and we could not notice the issue.

Can you please look into this on priority? As we are facing issue on production.

Regards,
Synoptek

@siriussynoptek

The issue was logged under free support model where we resolve issue on first come first serve basis. However, your ticket is currently under the phase of investigation and as soon as its analysis is complete, we will be able to share further updates with you about its rectification. We highly appreciate your patience and comprehension in this regard.

We apologize for the inconvenience.

Hello,

Any updates on this?

Regards,
Synoptek

@siriussynoptek

The earlier logged ticket is currently under the phase of investigation and as soon as it is done, we will be able to share some updates with you regarding its fix or ETA. Please spare us some time.

We are sorry for the inconvenience.