Forum Feature requests

CSS-Only Language Definition for PDF Tags

jamespaden
One of my favorite aspects of Prince is that almost everything can be done through CSS—the original HTML does not need to be modified, which is obviously useful when you don't have control over the original HTML.

I was hoping that `-prince-lang` would work for PDF tagging, but it does not appear to do. If you want to define specific language sections in an accessible PDF, it looks like you have to use the HTML `lang` attribute. Example attached.

Obviously a relatively minor thing, but if it's an easy change, maybe worth adding.

Try DocRaptor - PrinceXML web service and official PrinceXML partner

  1. accessible.html0.3 kB
    Inline Accessible Language Definition
mikeday
Yes that would probably make sense, I will add it to the roadmap.
mikeday
We have made this change in the latest build, which allows the -prince-lang property to specify the language for PDF tagging and most everywhere else. :)
jamespaden
Awesome, so fast! Thanks!

Try DocRaptor - PrinceXML web service and official PrinceXML partner