Welcome Guest Search | Active Topics | Sign In | Register

Accessible PDF Options
JamesNandes
Posted: Wednesday, February 15, 2023 6:35:01 PM
Rank: Newbie
Groups: Member

Joined: 1/27/2023
Posts: 5
Hello All,

I am reaching out to you regarding an issue I encountered while running a generated PDF from an HTML through the Adobe Accessibility Checker. After performing the accessibility check, I found several issues that I am unsure if they are possible to fix with EO.PDF.

Specifically, I have the following questions that I would appreciate your expertise on:

How can I set the title of the PDF?
How can I set the language of the PDF?
Why are the page content and footer rendered as images, necessitating alt text? It is worth noting that the text is selectable.
It is worth mentioning that the HTML page has a perfect accessibility score of 100 on Google Chrome Lighthouse.

Thank you for your time and assistance in addressing these questions. I look forward to hearing from you soon.

Best regards
eo_support
Posted: Wednesday, February 15, 2023 7:40:43 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,086
Hi,

You would set the title through this property:

https://www.essentialobjects.com/doc/eo.pdf.pdfdocinfo.title.html

You would use it this way:

Code: C#
doc.Info.Title = "doc title";

You would set language through this property:

https://www.essentialobjects.com/doc/eo.pdf.pdfdocument.language.html

I am not sure what you meant why the page content and footer are rendered as images. Text would normally render as text --- unless you have complex "post process", such as effects/transform on them. If you can send a test HTML file or small test app to us we will be able to tell you more. See here for more information on how to send test project to us:

https://www.essentialobjects.com/forum/test_project.aspx

Thanks
JamesNandes
Posted: Thursday, February 16, 2023 7:39:42 AM
Rank: Newbie
Groups: Member

Joined: 1/27/2023
Posts: 5
I will double-check the generated content.

Thank you
JamesNandes
Posted: Thursday, February 23, 2023 9:36:04 AM
Rank: Newbie
Groups: Member

Joined: 1/27/2023
Posts: 5
Hello,

I have attempted to create a PDF using the most basic HTML code possible. ( calling MVCToPDF.RenderAsPDF )
However, I am still unable to view the tagged content.
Could you please advise me on what I may be doing incorrectly?

Printscreen
PDF file

The EO.PDF version used is 23.1.21.0



HTML used:
Code: HTML/ASPX
<!DOCTYPE html>
<html lang="en">
   <head>
      <meta charset="utf-8" />
      <title>Add a meaningful title here</title>
      <meta name="viewport" content="width=device-width, initial-scale=1.0" />
   </head>
   <body>    Visual content goes here.  </body>
</html>


Thank you.
eo_support
Posted: Thursday, February 23, 2023 9:31:48 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,086
Hi,

We indeed do not see tags in your PDF file. However we are not able to reproduce the problem here. Can you create a small test project and send the test project to us? See here for more details on how to send test project to us:

https://www.essentialobjects.com/forum/test_project.aspx

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.