core/models/pdf: basic toc support