admin管理员组文章数量:1356945
I use PrinceXml
for years. I'm trying now to generate thumb indexes. Like old dictionaries used to have where you can see by the side of the book which pages belong to "A", and which to "B" etc.
I can't find any info online to do this.
I tried something hacky, but its not working:
@page {
@right {
content: string(position);
width: 2em;
height: 2em;
background-color: black;
color: white;
font-size: 12pt;
text-align: center;
border-radius: 0 0 0 100%;
position: absolute;
right: 0;
top: string(position);
margin-top:string(position)
}
}
The content is showing correctly "1cm" or "2cm", whatever I put into the position "string". but when used for margin
or margin-top
it seems to be ignored.
Any other ideas?
I'm also open to use other free/cheap html to pdf converters. But Prince is pretty good till now and I don't use it that often.
Thanks in advance.
本文标签: marginHow to add thumb indexesStack Overflow
版权声明:本文标题:margin - How to add thumb indexes? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1743951762a2567421.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论