|
Rank: Newbie Groups: Member
Joined: 3/11/2024 Posts: 3
|
Hello, We use the EO.PDF for .NET NuGet package. We use the ConvertUrl method to convert HTML to a PDF. For options we use
Code: C#
SSLVerificationMode = SSLVerificationMode.None;
AutoBookmark = true;
PageSize = PdfPageSizes.A4;
GenerateTags = true;
It generates the correct tags but when we run the exported PDF in the PAC 2024 WCAG checker, it says that each pages content is not tagged by the following error "Path object not tagged" as shown in the screenshot below. How can I fix this issue? I can not find any documentation on tagging a PDF except the GenerateTags property.. Is there a way to manually tag each page or likewise? Best regard Lars Jørgensen
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Hi, Are you using the latest version? For the latest version most element should be tagged except for list items. See here for more details: https://www.essentialobjects.com/forum/postst12573_PDF-Accessibility-round-2.aspxIf you see other problems beside list items, please send us the HTML file and we will investigate further. You can use contact us page to send us the file. https://www.essentialobjects.com/contactThanks!
|
|
Rank: Newbie Groups: Member
Joined: 3/11/2024 Posts: 3
|
Hi, thanks for the quick answer.
I have the newest version: 24.0.49.
I have send you are private message with the HTML file I wanna convert :)
Best regards
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Hi, We tested the latest build with your test file and we see three problems in the HTML: 1. The picture area (under "Underskrift") DIV has a boxshaodw
Code:
style="box-shadow: 0 2px 4px rgb(0 0 0 / 10%), 0 1px 5px rgb(0 0 0 / 10%) ..."
Tagged on box-shadow is not supported because it is not really a meaningful element by itself (similar to the way bulletin). So the box shadow would need to be removed; 3. The image element has no alt attribute. This needs to be added; 3. The bulletin item "Screenshot 2024-03-11 152550.png" is not supported and would need to be removed/modified; Additionally, you will need to assign a title:
Code: C#
PdfDocument doc = new PdfDocument();
HtmlToPdf.ConvertUrl(url, doc);
doc.Title = "doc title";
doc.Save(result.pdf);
After these changes the PDF file should pass the PDF/UA verification. Please let us know if you still have any questions. Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 3/11/2024 Posts: 3
|
Thanks for the answer, I will try the recommendations from you.
When you tested the HTML, you did not encounter the whole page to not be tagged, just like my attached image in the post?
If you didnt, maybe the CSS from which I try to convert results in it. But I don't see how that could affect the whole page to be not tagged, because each page in the PDF is marked as not tagged just like the attached image. Do you have any idea why this is happening?
Best regards!
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Hi,
No. We did not encounter the whole page is not tagged. I agree with you that may have to do with your CSS. Some CSS attribute will certainly creates tag issues (like the box-shadow we mentioned). So you can try to comment out your CSS block by block to find out what triggered the issue and modify it accordingly.
Thanks!
|
|