Aspose.PDF.Net - Convert vertical aligned HTML-Element to PDF

Hello Support-Team,

I am trying to export the following vertical aligned HTML-Element

<span style='color: #ff0000; white-space: nowrap; -ms-writing-mode: tb-rl; transform: rotate(180deg); background-color: #ffff00; -webkit-writing-mode: vertical-rl;'>123456</span>

to PDF. Unfortunately after the export it is no more vertical aligned Rotate.pdf (76.7 KB).

My C# code is as follows

Aspose.Pdf.Document doc = new Aspose.Pdf.Document();
            Aspose.Pdf.Page page = doc.Pages.Add();

            string html = "<span style='color: #ff0000; white-space: nowrap; -ms-writing-mode: tb-rl; transform: rotate(180deg); background-color: #ffff00; -webkit-writing-mode: vertical-rl;'>123456</span>";
            HtmlFragment htmlFragmentFreitext = new HtmlFragment(html);
            page.Paragraphs.Add(htmlFragmentFreitext);            

            MemoryStream pdfStream = new MemoryStream();
            doc.Save(pdfStream, SaveFormat.Pdf);
            if (pdfStream != null)
            {
                Response.ClearContent();
                Response.ClearHeaders();
                Response.AppendHeader("Content-Length", pdfStream.Length.ToString());
                Response.ContentType = "Application/pdf";
                Response.BinaryWrite(pdfStream.ToArray());
                Response.Flush();
                Response.End();
            }

Thank you for your help.

1 Like

@ThomBa

Thanks for contacting support.

We were able to replicate the issue which you have mentioned. We have logged it as PDFNET-46017 in our issue tracking system for the sake of correction. We will further look into details of the issue and keep you posted with the status of its correction. Please be patient and spare us little time.

We are sorry for the inconvenience.

@asad.ali,

Can you please provide a statusupdate of this issue.

With kind regards.

@ThomBa

We regret to share that your issue is still not resolved due to low priority. As issue was logged under free support model, it will be resolved on first come first serve basis. We will surely inform you as soon as we make some significant progress towards issue resolution. Please spare us little time.

We are sorry for the inconvenience.

Can you please provide a statusupdate of this issue.

With kind regards.

@ThomBa

We are afraid that issue has not been resolved yet as there were other high priority issues. We will surely inform you as soon as we have some certain updates in this regard. Please spare us some time.

We are sorry for the inconvenience.

Can you please provide a statusupdate of this issue. When do you think will it be resolved?

With kind regards

@ThomBa

We are sorry to share that the ticket has not been yet resolved. Nevertheless, we have recorded your concerns and update the ticket priority to escalate it. We will soon inform you once we have some news about its resolution ETA.

We apologize for the delay and the inconvenience.