|
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
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Hi, You would set the title through this property: https://www.essentialobjects.com/doc/eo.pdf.pdfdocinfo.title.htmlYou 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.htmlI 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.aspxThanks
|
|
Rank: Newbie Groups: Member
Joined: 1/27/2023 Posts: 5
|
I will double-check the generated content.
Thank you
|
|
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? PrintscreenPDF fileThe 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.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
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.aspxThanks!
|
|