PDFsharp & MigraDoc Foundation
http://forum.pdfsharp.de/

PDFSharp - Creating PDF Tags
http://forum.pdfsharp.de/viewtopic.php?f=2&t=1170
Page 1 of 1

Author:  kschuler [ Wed May 05, 2010 8:26 pm ]
Post subject:  PDFSharp - Creating PDF Tags

I have a .Net program that uses Crystal Reports to generate reports and then convert them into PDF documents. I then use PDFSharp to merge and add security to these PDFs. (Because Crystal doesn't add any bells or whistles to the PDF during conversion from a Crystal Report) My company recently ran checks for section 508 compiance on our documents, and the PDFs in my program didn't pass.

The two main issues discovered in the check were:
- This document is not tagged; the reading order of the contents may be incorrect
- None of the images in this document that need alternate text have it

While playing around with PDFSharp I found that PDFDocument object has a Tag property. However I'm unable to find any documentation on what that is or how to set it. Does anyone know if I can use PDFSharp to add tags and/or alternate text to an image. If so, is there a link or sample that you could provide to help me in the right direction?

Any advice would be greatly appreciated.

Could some one please point me to any documentation for the PDFDocument object's Tag property?

Author:  Mattpil29 [ Mon Jan 24, 2011 11:49 am ]
Post subject:  Re: PDFSharp - Creating PDF Tags

Hi, I also would like any pointers in this area. We have a secure PDF created from a BMP that we would like to add tags to such that screeen readers are capable of extracting some meaningful information.

Can anyone point me to the correct API pages for PDFsharp/MigraDoc.

As a last resort is their another open source api that can tag PDFS?

Many thanks, Matthew

Author:  Mattpil29 [ Mon Jan 24, 2011 1:41 pm ]
Post subject:  Re: PDFSharp - Creating PDF Tags

All,

I've continued to look into this and have come to the impression it isn't directly possible!

However I wonder if any gurus can indicate if its possible to use PdfSharp.Pdf.Advanced.PdfInternals.AddObject (example) to add an entry to the structure element dictionary with a key of "Alt" or "AltText" (see spec 1.7 page 860). This may just be enough to add tags!

Any examples/hints are most welcome,

Matthew

Author:  kschuler [ Mon Jan 24, 2011 4:25 pm ]
Post subject:  Re: PDFSharp - Creating PDF Tags

Hey Mattpil29,
I was begining to think I was the only one encountering issues with tagging. (Or being required to use it.) I'd posted this issue on a couple other forums but didn't get much of a response. Please let me know if you get any more info on this in the future, and I'll do the same.

Thanks!

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/