Forum How do I...?

Custom list markers with PDF/UA?

davidbalch
Hi,

I'm using Prince 12.5.1, and trying to use custom list markers, e.g. 1.1, 1.2, etc.
ol.contentslist li::marker {
    content: attr(data-unit-number);
}


...but, when using
--pdf-profile="PDF/UA-1"
, this triggers an error:
ordered list does not have ListNumbering attribute


This happens even when setting list-style: decimal;

(Test case attached.)

How do I get PDF/UA working whilst using custom list markers?

Cheers,
Dave.
  1. list-numbering-custom.html1.5 kB
wangp
Currently Prince will only set the ListNumbering attribute if the custom list marker content consists of a single counter() function.

It seems reasonable to infer ListNumbering Decimal for simple integers. Also, our reading of the PDF/UA-1 requirements regarding ListNumber may have been too strict; we will investigate.
davidbalch
Cool, thanks.