Welcome Guest Search | Active Topics | Sign In | Register

ConvertUrl with tagged elements results in whole page not being tagged Options
Lars Jørgensen
Posted: Monday, March 11, 2024 10:31:19 AM
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
eo_support
Posted: Monday, March 11, 2024 2:01:41 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,083
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.aspx

If 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/contact

Thanks!
Lars Jørgensen
Posted: Tuesday, March 12, 2024 4:12:05 AM
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

eo_support
Posted: Wednesday, March 13, 2024 2:47:16 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,083
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!


Lars Jørgensen
Posted: Thursday, March 14, 2024 7:38:20 AM
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!
eo_support
Posted: Thursday, March 14, 2024 10:19:13 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,083
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!





You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.