EvoHtmlToPdf – 自动生成的目录表中项目与编号之间的间隔

huangapple go评论93阅读模式
英文:

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")

结果看起来相当不错。但是,项目和编号之间有一个间隙,这让我们的客户感到不满...

EvoHtmlToPdf – 自动生成的目录表中项目与编号之间的间隔

有办法缩小这个间隙吗?

(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...

EvoHtmlToPdf – 自动生成的目录表中项目与编号之间的间隔

Is there a way to close the gap?

(EVO HTML to PDF version 9.0)

答案1

得分: 0

EvoHtmlToPdfs目录确实是一个“真正的”HTML表格:

EvoHtmlToPdf – 自动生成的目录表中项目与编号之间的间隔

使用CSS,您可以隐藏倒数第三列:

converter.TableOfContentsOptions.GlobalStyle = 
    "td:nth-last-child(3){
        display: none;
    }";
英文:

EvoHtmlToPdfs table of contents is indeed a "real" HTML table:

EvoHtmlToPdf – 自动生成的目录表中项目与编号之间的间隔

Using CSS, you can hide the 3rd-last column:

    converter.TableOfContentsOptions.GlobalStyle = 
			"""
				td:nth-last-child(3){
					display:None;
				}
			"""

huangapple
  • 本文由 发表于 2023年2月18日 00:29:51
  • 转载请务必保留本文链接:https://go.coder-hub.com/75486888.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定