2011-03-24 4 views
0

내가 PDF에 tickbox을 보여 드리고자 붕괴 방지로하려고 노력 :FOP - 블록

<fo:table-row height="10pt"> 
     <fo:table-cell> 
     <fo:block line-height="10pt" text-align="center" border-style="solid" border="1pt" white-space-collapse="false"> 
     </fo:block> 
    </fo:table-cell> 
    <fo:table-cell> 
     <fo:block/> 
    </fo:table-cell> 
</fo:table-row> 

대신 상자를 받고, 나는 상자 폭에 1pt 높이, 즉 선을 얻는다. FOP를 강제로 차단할 수 있습니까? 나는 아파치 FOP 1.0

갱신 1을 사용하고 있습니다 :

이 작동 :

<fo:block text-align="left"> 
    <fo:table text-align="left" table-layout="fixed">            
     <fo:table-column column-width="10pt"/> 
     <fo:table-column column-width="10pt"/>            
     <fo:table-body> 
      <fo:table-row height="10pt"> 
       <fo:table-cell height="10pt"> 
        <fo:block line-height="10pt" font-family="$_Fontfamily" 
           font-size="8pt">$row.getValue().get(0) 
        </fo:block> 
       </fo:table-cell> 
     <fo:table-cell height="10pt" width="10pt"> 
      <fo:block text-align="center" border-style="solid" border="1pt"/> 
      </fo:table-cell>            
      </fo:table-row> 
     </fo:table-body> 
    </fo:table> 
</fo:block> 

내가 두 번째 셀 경계선이 나타나도록 할 수 있습니다. 테이블을 두 번째 블록에 넣으면 제대로 작동합니다.

답변

1

시도 : 나는 당신의 테이블을 모르는 것처럼

<fo:table-row> 
    <fo:table-cell height="10pt" width="10pt"> 
    <fo:block text-align="center" border-style="solid" border="1pt"/> 
    </fo:table-cell> 
    <fo:table-cell height="10pt"> 
    <fo:block/> 
    </fo:table-cell> 
</fo:table-row> 

이는 주어진 측정 두 개의 세포를 생산하는 실제 예입니다

불행하게도
<fo:table border="1pt solid black" width="18.5cm" table-layout="fixed"> 
    <fo:table-body> 
    <fo:table-row> 
     <fo:table-cell height="20.0cm" width="16.3cm" border-right="1pt solid black"> 
     <fo:block/> 
     </fo:table-cell> 
     <fo:table-cell height="20.0cm"> 
     <fo:block/> 
     </fo:table-cell> 
    </fo:table-row> 
    </fo:table-body> 
</fo:table> 
+0

이 :-( – HamoriZ

+0

도움이되지 않았다 spec, 어렵다. 실제로 작동하는 실제 예제를 제공했다 .0.95를 사용했지만 –

+0

감사합니다. 테이블에 테이블을 놓으면 작동하지만, 더 간단한 구조로 문제를 해결하고 싶습니다. – HamoriZ

관련 문제