I created the HTMl file with the tags and generated the pdf using pdfHTML add-on in iText7,C#. But when I checked the pdf accessibility using PAC tool, it returns warning saying, "Possibly inappropriate use of P Structure element". H1 tag is applied to pdf with the <p> tag. It means,<p> tag is in inside the <h1> tag. How can I add title using H1 tag without PAC tool errors?
Thanks.
<html>
<body>
<h1>Title</h1>
</body>
</html>
C# code:
IList<IElement> elements = HtmlConverter.ConvertToElements(htmlString,converterProperties);
foreach(IElement element in elements){
doc.Add((IBlockElement)element);
}