英文:
EvoHtmlToPdf - gap between item and number in auto generated table of content
问题
我正在尝试通过EVO HTML to Pdf自动生成的目录表格中的项目和编号之间创建线条。我的当前方法是使用CSS和TableOfContentsOptions:
converter.TableOfContentsOptions.SetItemStyle(1, "border-bottom:1px solid #000000")
和
converter.TableOfContentsOptions.SetPageNumberStyle(1, "border-bottom:1px solid #000000")
结果看起来相当不错。但是,项目和编号之间有一个间隙,这让我们的客户感到不满...
有办法缩小这个间隙吗?
(EVO HTML to PDF版本9.0)
英文:
I am trying to create lines between items and numbers in a table of contents generated automatically by EVO HTML to Pdf. My current approach is via CSS and the TableOfContentsOptions:
converter.TableOfContentsOptions.SetItemStyle(1, "border-bottom:1px solid #000000)
and
converter.TableOfContentsOptions.SetPageNumberStyle(1, "border-bottom:1px solid #000000)
The result looks pretty good. However, there is a gap between item and number which unfortunately bothers our customers...
Is there a way to close the gap?
(EVO HTML to PDF version 9.0)
答案1
得分: 0
EvoHtmlToPdfs目录确实是一个“真正的”HTML表格:
使用CSS,您可以隐藏倒数第三列:
converter.TableOfContentsOptions.GlobalStyle =
"td:nth-last-child(3){
display: none;
}";
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。




评论