Может ли строка таблицы переходить в нижний колонтитул, когда на ней есть разрыв страницы?
У меня есть таблица со стрелками SVG, которые указывают на следующий блок вопроса. Проблема в том, что таблица разрывается в середине страницы, а стрелка останавливается в той же точке. Мне нужно, чтобы строка таблицы шла внизу страницы.
Это возможно?
Спасибо
Разрыв строки таблицы в середине страницы
введите описание изображения здесь
<fo:table inline-progression-dimension="auto" table-layout="auto" width="106mm">
<fo:table-column column-width="5%"/>
<fo:table-column column-width="74%"/>
<fo:table-column column-width="16%"/>
<fo:table-column column-width="3%"/>
<fo:table-column column-width="2%"/>
<fo:table-footer>
<fo:table-row keep-with-previous.within-page="always">
<fo:table-cell/>
<fo:table-cell/>
<fo:table-cell/>
<fo:table-cell>
<fo:block left="2.25mm" position="relative" top="-0.7mm">
<fo:retrieve-table-marker retrieve-class-name="continuedSecondArrow" retrieve-position-within-table="last-ending-within-page"/>
</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block left="1.21mm" position="relative" top="-0.7mm">
<fo:retrieve-table-marker retrieve-class-name="continuedArrow" retrieve-position-within-table="last-ending-within-page"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-footer>
<fo:table-body>
<fo:table-row>
<fo:table-cell border="1.8PT solid" display-align="center" font-size="16pt" keep-together.within-page="always" number-columns-spanned="2" number-rows-spanned="2" padding-bottom="1.5mm" padding-left="1mm" padding-top="1.5mm">
<fo:wrapper>
<fo:marker marker-class-name="continuedArrow">
<fo:instream-foreign-object>
<svg:svg height="6.7mm" width="2mm">
<svg:path d="M 2.1634084,0 2.1462333,10 0,10 3.4375,27.5312 6.90625,10 4.6604758,10.02932 4.7484349,-0.0293197 Z" style="black"/>
</svg:svg>
</fo:instream-foreign-object>
</fo:marker>
</fo:wrapper>
<fo:block hyphenate="false" keep-together.within-page="10">
<fo:wrapper>
<fo:marker marker-class-name="bottomContinued">
CLEFIEJOD...
</fo:marker>
</fo:wrapper>
LE GRLJED?
<fo:wrapper>
<fo:marker marker-class-name="topContinued">
...CLEFIEJOD
</fo:marker>
</fo:wrapper>
</fo:block>
</fo:table-cell>
<fo:table-cell border-bottom="1.8PT solid black" padding-left="1.90mm">
<fo:block font-size="10pt" font-weight="bold">
No
</fo:block>
</fo:table-cell>
<fo:table-cell/>
<fo:table-cell/>
</fo:table-row>
<fo:table-row>
<fo:table-cell padding-left="2mm">
<fo:block font-size="6pt" font-weight="bold">
#S1-
<fo:page-number-citation-last ref-id="REF-0096579-CDT-6ADJWTA"/>
#
</fo:block>
</fo:table-cell>
<fo:table-cell border-top="1.8PT solid black"/>
<fo:table-cell border-right="1.8PT solid black" border-top="1.8PT solid black"/>
</fo:table-row>
<fo:table-row keep-with-next="10" keep-with-previous.within-page="always">
<fo:table-cell padding-left="3mm">
<fo:block left="-0.57mm" position="relative" top="-0.68mm">
<fo:instream-foreign-object>
<svg:svg height="6.7mm" width="2mm">
<svg:path d="M 2.1634084,0 2.1462333,10 0,10 3.4375,27.5312 6.90625,10 4.6604758,10.02932 4.7484349,-0.0293197 Z" style="black"/>
</svg:svg>
</fo:instream-foreign-object>
</fo:block>
</fo:table-cell>
<fo:table-cell padding-left="1mm" padding-top="2mm">
<fo:block-container height="10pt">
<fo:block font-size="10pt" font-weight="bold">
Yes
</fo:block>
</fo:block-container>
</fo:table-cell>
<fo:table-cell/>
<fo:table-cell/>
<fo:table-cell border-right="1.8PT solid black"/>
</fo:table-row>
<fo:table-row>
<fo:table-cell number-columns-spanned="4" padding-left="3mm">
<fo:block>
<fo:block-container>
<fo:block-container keep-with-next="always" margin-left="1mm" margin-right="1mm">
<fo:block-container margin="0mm">
<fo:block font-size="16pt" font-weight="bold" hyphenate="false" keep-with-next="always" text-align="justify">
Aftpr CRG ATF (TWD) TIROX PL ARM mpsseqp is aisvleypa eha tgp essubietpa Cerqu
Tirp Ovtihqoisgihq Bottuh is illomihetpa:
</fo:block>
</fo:block-container>
</fo:block-container>
<fo:block-container margin-left="2mm" margin-right="2mm">
<fo:block-container margin="0mm">
<fo:block keep-together.within-page="10">
<fo:table font-size="16pt" width="100%">
<fo:table-column column-number="1" column-width="60%"/>
<fo:table-column column-number="2" column-width="40%"/>
<fo:table-body>
<fo:table-row keep-together.within-page="always" keep-with-next="always">
<fo:table-cell padding-bottom="1mm" padding-top="1mm">
<fo:block margin-right="0.1cm" start-indent="0.1em" text-align-last="justify" text-align="left" text-indent="-0.1em">
<fo:block hyphenate="false" keep-together.within-page="10">
<fo:wrapper>
<fo:marker marker-class-name="bottomContinued">
CLEFIEJOD...
</fo:marker>
</fo:wrapper>
<fo:block text-align-last="justify">
<fo:inline keep-with-next.within-line="always">
Assubietpa Cerqu Tirp Ovtihqoisgihq Bottuh
</fo:inline>
<fo:leader leader-length.minimum="5mm" leader-pattern="dots"/>
</fo:block>
<fo:wrapper>
<fo:marker marker-class-name="topContinued">
...CLEFIEJOD
</fo:marker>
</fo:wrapper>
</fo:block>
</fo:block>
</fo:table-cell>
<fo:table-cell/>
</fo:table-row>
<fo:table-row keep-together.within-page="always" keep-with-next="always">
<fo:table-cell/>
<fo:table-cell padding-before="-1.32em">
<fo:block display-align="after" start-indent="0.1em" text-indent="-0.1em">
<fo:block hyphenate="false" keep-together.within-page="10">
<fo:wrapper>
<fo:marker marker-class-name="bottomContinued">
CLEFIEJOD...
</fo:marker>
</fo:wrapper>
<fo:block keep-together.within-page="always" vertical-align="bottom">
AS ROQJIROD
</fo:block>
<fo:wrapper>
<fo:marker marker-class-name="topContinued">
...CLEFIEJOD
</fo:marker>
</fo:wrapper>
</fo:block>
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:block>
</fo:block-container>
</fo:block-container>
</fo:block-container>
<fo:block font-size="16pt" keep-together.within-page="always">
<fo:table>
<fo:table-column column-width="19mm "/>
<fo:table-column/>
<fo:table-body>
<fo:table-row>
<fo:table-cell padding-bottom="1.5mm" padding-top="1.5mm">
<fo:block font-weight="bold">
<fo:inline>
ELFO
</fo:inline>
:
</fo:block>
</fo:table-cell>
<fo:table-cell padding-bottom="1.5mm" padding-top="1.5mm">
<fo:block text-align="justify">
<fo:block font-size="16pt" keep-together.within-page="always">
<fo:table>
<fo:table-column column-width="0mm"/>
<fo:table-column column-width="5mm"/>
<fo:table-column/>
<fo:table-body>
<fo:table-row>
<fo:table-cell/>
<fo:table-cell padding-bottom="1mm">
<fo:block text-align="left">–</fo:block>
</fo:table-cell>
<fo:table-cell padding-bottom="1mm">
<fo:block>
<fo:block hyphenate="false" keep-together.within-page="10">
<fo:wrapper>
<fo:marker marker-class-name="bottomContinued">
CLEFIEJOD...
</fo:marker>
</fo:wrapper>
<fo:block keep-together.within-page="always" text-align="justify">
Aazisp Gruoha Crpw uf vussiclp Heluh zevurs eftpr aisbgerqihq tgp pvtihqoisgihq
cuttlp.
</fo:block>
<fo:wrapper>
<fo:marker marker-class-name="topContinued">
...CLEFIEJOD
</fo:marker>
</fo:wrapper>
</fo:block>
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
<fo:table>
<fo:table-column column-width="0mm"/>
<fo:table-column column-width="5mm"/>
<fo:table-column/>
<fo:table-body>
<fo:table-row>
<fo:table-cell/>
<fo:table-cell padding-bottom="1mm">
<fo:block text-align="left">
–
</fo:block>
</fo:table-cell>
<fo:table-cell padding-bottom="1mm">
<fo:block>
<fo:block hyphenate="false" keep-together.within-page="10">
<fo:wrapper>
<fo:marker marker-class-name="bottomContinued">
CLEFIEJOD...
</fo:marker>
</fo:wrapper>
<fo:block keep-together.within-page="always" text-align="justify">
Aftpr tgp cuttlp aisbgerqp eha witg tgp eirvlehp uh qruoha, tgp mpsseqp CRG TWD
(ATF) TIRO SYS TAIP will evvper.
</fo:block>
<fo:wrapper>
<fo:marker marker-class-name="topContinued">
...CLEFIEJOD
</fo:marker>
</fo:wrapper>
</fo:block>
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:block>
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:block>
</fo:block>
<fo:block keep-with-previous.within-page="always" padding-bottom="2mm" padding-top="2mm">
<fo:inline axf:border-radius="200pt" background-color="black" border="1pt solid black" color="white" font-weight="bold" padding-bottom="1mm" padding-left="1mm" padding-right="1mm" padding-top="1mm" text-align="center">
OED
</fo:inline>
</fo:block>
</fo:table-cell>
<fo:table-cell border-right="1.8PT solid black"/>
</fo:table-row>
<fo:table-row keep-with-previous.within-page="always">
<fo:table-cell/>
<fo:table-cell border-bottom="1.8PT solid black" number-columns-spanned="3">
<fo:wrapper>
<fo:marker marker-class-name="bottomContinued">
CLEFIEJOD...
</fo:marker>
</fo:wrapper>
</fo:table-cell>
<fo:table-cell border-bottom="1.8PT solid black" border-right="1.8PT solid black" height="3mm">
<fo:wrapper>
<fo:marker marker-class-name="topContinued">
...CLEFIEJOD
</fo:marker>
</fo:wrapper>
</fo:table-cell>
</fo:table-row>
<fo:table-row keep-with-previous.within-page="always">
<fo:table-cell/>
<fo:table-cell>
<fo:block left="-0.57mm" position="relative" top="-0.68mm">
<fo:instream-foreign-object>
<svg:svg height="6.7mm" width="2mm">
<svg:path d="M 2.1634084,0 2.1462333,10 0,10 3.4375,27.5312 6.90625,10 4.6604758,10.02932 4.7484349,-0.0293197 Z" style="black"/>
</svg:svg>
</fo:instream-foreign-object>
</fo:block>
</fo:table-cell>
<fo:table-cell/>
<fo:table-cell>
<fo:wrapper>
<fo:marker marker-class-name="continuedArrow"/>
</fo:wrapper>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
1 ответ
Ячейки таблицы обычно занимают столько места, сколько им нужно, но не больше, поэтому они, как правило, не расширяются до нижней части страницы, когда таблица разбивается на страницу.
Вы можете быть в состоянии сделать что-то с полосами изменений, чтобы положить полосу изменений вниз и иметь вторую полосу изменений с графикой для стрелки.
Вы можете иметь правую колонку, которая содержит графическое изображение для стрелки высоты страницы и полагаться на
overflow
усечь графику до нужной высоты. Вам придется работать сmax-height
или жеblock-progression-dimension.maximum
чтобы получить ячейку таблицы до нижней части страницы. Изгиб под прямым углом в стрелке может быть затруднен, но вы можете сделать это, поместив небольшую графику для прямого угла в отдельную ячейку таблицы.Вы могли бы использовать
fo:leader
внутриfo:block-container
или жеfo:inline-container
который имеетreference-orientation="270"
, Шаблон лидера (и содержаниеfo:leader
) будет графиком для отрезка линии стрелки.fo:leader
будет сопровождаться графикой для стрелки.Вы можете быть в состоянии использовать
fo:marker
а такжеfo:retrieve-table-marker
поместить изображение стрелки вfo:table-footer
только когда требуется.fo:table-cell
(или жеfo:table-row
), что нужно стрелка установитfo:marker
иfo:table-cell
В следующихfo:table-row would set an empty
fo: marker`, чтобы стрелка не повторялась.Возможно, вам удастся создать изображение для стрелки вправо, но получить правильную длину может быть сложно.
Если вы можете предоставить образец разметки FO, мы сможем дать более конкретный ответ.