gpt4 book ai didi

pdf - XSL/XSL-FO : Different formatting of a block depending on its page position on PDF page

转载 作者:行者123 更新时间:2023-12-04 19:42:35 25 4
gpt4 key购买 nike

我是这个邮件列表的新成员,所以请为我的任何不当行为道歉。

FOP 1.1

问题:是否有任何条件可以在 PDF 页面中找到文本 block 的位置

这就是问题所在:

我需要根据标题栏在页面上的位置更改其格式。

  • 如果标题栏出现在页面(垂直)中间的某处,我想在其顶部添加一行。

  • 如果标题栏出现在页面的开头/顶部,则该行不得出现

XSL-FO 有办法做到这一点吗?

最佳答案

来自 http://lists.w3.org/Archives/Public/www-xsl-fo/2015Sep/0002.html :

I used a white background on the fo:region-before and a negative margin on the title to 'push' the 'border-before' of the title under the fo:region-before.

This requires that the FO processor supports negative values of 'margin-top', which is allowed but not required (http://www.w3.org/TR/xsl11/#margin-top). It also requires that the FO processor will 'paint' the fo:region-before after painting the fo:region-body.

关于pdf - XSL/XSL-FO : Different formatting of a block depending on its page position on PDF page,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32785334/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com