Html2Pdf tags - accessabilty lost

Hi, using lateset version of asose.html and aspose.pdf. my html lost the tags, during conversion. so in the documantion , offer to build the elements in C#, this offer very problemativ cause html laready builded

@drormu

Could you please provide more details about the specific HTML tags that are lost during the conversion and any relevant code snippets you are using?

using Aspose.Html;
using Aspose.Pdf;
using Aspose.Html;
using Aspose.Html.Converters;
using Aspose.Html.Saving;



Console.WriteLine("Hello, World!");

string html = File.ReadAllText("test.html");
// Specify the input HTML file path and output PDF file path
string htmlFilePath = "test.html";
string pdfFilePath = "output.pdf";


  using var document = new HTMLDocument("test.html");
var options = new Aspose.Html.Saving.PdfSaveOptions();
Converter.ConvertHTML(document, options, "output.pdf");
<!DOCTYPE html>
<html lang="he" dir="rtl">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>דוגמה לעמוד בעברית</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            line-height: 1.6;
            margin: 20px;
        }

        h1 {
            color: #2a3b8d;
        }

        p {
            color: #333;
        }

        ul {
            list-style-type: square;
        }
    </style>
</head>
<body>
    <!-- Main header -->
    <header>
        <h1 id="main-title" tabindex="0">ברוך הבא לאתר שלנו</h1>
    </header>

    <!-- Main content -->
    <main>
        <p tabindex="0">זהו עמוד פשוט שנכתב בעברית לשם הדגמה.</p>

        <!-- Section with list -->
        <section aria-labelledby="example-list-title">
            <h2 id="example-list-title" tabindex="0">רשימה לדוגמה</h2>
            <ul>
                <li tabindex="0">פריט ראשון</li>
                <li tabindex="0">פריט שני</li>
                <li tabindex="0">פריט שלישי</li>
            </ul>
        </section>

        <!-- Section with form -->
        <section aria-labelledby="form-title">
            <h2 id="form-title" tabindex="0">טופס לדוגמה</h2>
            <form aria-describedby="form-desc">
                <p id="form-desc">מלא את הטופס למטה ושלח את פרטיך.</p>
                <label for="name">שם:</label>
                <input type="text" id="name" name="name" aria-required="true" placeholder="הכנס את שמך">
                <br><br>
                <label for="email">דוא"ל:</label>
                <input type="email" id="email" name="email" aria-required="true" placeholder="הכנס את כתובת הדוא'ל שלך">
                <br><br>
                <button type="submit" aria-label="שלח את הטופס">שלח</button>
            </form>
        </section>
    </main>

    <!-- Footer -->
    <footer>
        <p tabindex="0">© 2025 כל הזכויות שמורות</p>
    </footer>
</body>
</html>

@drormu

Can you please explain what do you mean by lost tags? Do you want to generate ADA Compliant PDF document from the HTML?