2012-12-17 27 views
6

मेरे पास कुछ बहुत लंबी टेबल हैं जो अपाचे-एफओपी 1.1तालिका प्रत्येक पृष्ठ पर XSL-FO तालिका कैप्शन दोहराने के लिए कैसे करें जब तालिका एकाधिक पृष्ठों को फैलाती है?

एक तालिका में एक कैप्शन है, जैसे "तालिका 7.6। कुछ विवरण" और कॉलम हेडर।

प्रत्येक निरंतर पृष्ठ पर, कॉलम शीर्षलेख शीर्ष पर ठीक से दोहराए जाते हैं। लेकिन मुझे टेबल निरंतरता के साथ-साथ कैप्शन भी होना चाहिए: "तालिका 7.6। कुछ (जारी) का विवरण"

क्या एक्सएसएल-एफओ और अपाचे-एफओपी के साथ ऐसा करने का कोई तरीका है? या क्या इसे शायद रेंडरएक्स के माध्यम से एक्सटेंशन की आवश्यकता है?

उत्तर

6

मुझे एफओपी में ऐसा करने का कोई तरीका नहीं पता, लेकिन ऐसा इसलिए हो सकता है क्योंकि मैंने मूल पीडीएफ पीढ़ी के मुकाबले एफओपी का उपयोग नहीं किया है।

रेंडरएक्स (एक्सईपी) का उपयोग करके, आप अपने fo:table-header को जो भी शीर्षक आप निरंतर पृष्ठों पर उपयोग करना चाहते हैं, उसे प्रारंभिक शीर्षक के लिए नियमित fo:block का उपयोग कर सकते हैं।

तब आप विशेषता का उपयोग अपने fo:table पर कर सकते हैं ताकि तालिका शीर्ष आउटपुट होने पर तालिका शीर्षलेख को आउटपुट न किया जा सके।

यहाँ उदाहरण पीडीएफ आउटपुट पृष्ठ एक उदाहरण RenderX 4.18 द्वारा प्रदान की गई है ...

उदाहरण XSL-FO

<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" 
    xmlns:rx="http://www.renderx.com/XSL/Extensions"> 
    <fo:layout-master-set> 
     <fo:simple-page-master master-name="my-page" page-width="8.5in" page-height="11in"> 
      <fo:region-body margin="1in" margin-top="1.5in" margin-bottom="1.5in"/> 
     </fo:simple-page-master> 
    </fo:layout-master-set> 
    <fo:page-sequence master-reference="my-page"> 
     <fo:flow flow-name="xsl-region-body"> 
      <fo:block font-size="12pt" font-weight="bold" 
       text-align="center" space-after="6pt">Sample Table</fo:block> 
      <fo:block> 
       <fo:table rx:table-omit-initial-header="true" space-before=".08in"> 
        <fo:table-column column-width="100%"/> 
        <fo:table-header> 
         <fo:table-cell> 
          <fo:block font-weight="bold" 
           font-size="12pt" text-align="center" 
           space-after="6pt">Sample Table (Cont)</fo:block> 
         </fo:table-cell> 
        </fo:table-header> 
        <fo:table-body> 
         <fo:table-row> 
          <fo:table-cell> 
           <fo:table border-style="solid" border-width="1pt" padding="6pt"> 
            <fo:table-column column-number="1" column-width="20%"/> 
            <fo:table-column column-number="2" column-width="80%"/> 
            <fo:table-header font-weight="bold"> 
             <fo:table-cell text-align="left"> 
              <fo:block>Column 1</fo:block> 
             </fo:table-cell> 
             <fo:table-cell> 
              <fo:block>Column 2</fo:block> 
             </fo:table-cell> 
            </fo:table-header> 
            <fo:table-body> 
             <fo:table-row padding-before="20px"> 
              <fo:table-cell> 
               <fo:block>Lorem ipsum dolor sit amet</fo:block> 
              </fo:table-cell> 
              <fo:table-cell> 
               <fo:block>Ten years ago a crack commando unit was sent to prison by a military court for a crime they didn’t commit. These men promptly escaped from a 
                maximum security stockade to the Los Angeles underground. Today, still wanted by the government, they survive as soldiers of fortune.</fo:block> 
              </fo:table-cell> 
             </fo:table-row> 
             <fo:table-row> 
              <fo:table-cell> 
               <fo:block>Lorem ipsum dolor sit amet</fo:block> 
              </fo:table-cell> 
              <fo:table-cell> 
               <fo:block>Ten years ago a crack commando unit was sent to prison by a military court for a crime they didn’t commit. These men promptly escaped from a 
                maximum security stockade to the Los Angeles underground. Today, still wanted by the government, they survive as soldiers of fortune.</fo:block> 
              </fo:table-cell> 
             </fo:table-row> 
             <fo:table-row> 
              <fo:table-cell> 
               <fo:block>Lorem ipsum dolor sit amet</fo:block> 
              </fo:table-cell> 
              <fo:table-cell> 
               <fo:block>Ten years ago a crack commando unit was sent to prison by a military court for a crime they didn’t commit. These men promptly escaped from a 
                maximum security stockade to the Los Angeles underground. Today, still wanted by the government, they survive as soldiers of fortune.</fo:block> 
              </fo:table-cell> 
             </fo:table-row> 
             <fo:table-row> 
              <fo:table-cell> 
               <fo:block>Lorem ipsum dolor sit amet</fo:block> 
              </fo:table-cell> 
              <fo:table-cell> 
               <fo:block>Ten years ago a crack commando unit was sent to prison by a military court for a crime they didn’t commit. These men promptly escaped from a 
                maximum security stockade to the Los Angeles underground. Today, still wanted by the government, they survive as soldiers of fortune.</fo:block> 
              </fo:table-cell> 
             </fo:table-row> 
             <fo:table-row> 
              <fo:table-cell> 
               <fo:block>Lorem ipsum dolor sit amet</fo:block> 
              </fo:table-cell> 
              <fo:table-cell> 
               <fo:block>Ten years ago a crack commando unit was sent to prison by a military court for a crime they didn’t commit. These men promptly escaped from a 
                maximum security stockade to the Los Angeles underground. Today, still wanted by the government, they survive as soldiers of fortune.</fo:block> 
              </fo:table-cell> 
             </fo:table-row> 
             <fo:table-row> 
              <fo:table-cell> 
               <fo:block>Lorem ipsum dolor sit amet</fo:block> 
              </fo:table-cell> 
              <fo:table-cell> 
               <fo:block>Ten years ago a crack commando unit was sent to prison by a military court for a crime they didn’t commit. These men promptly escaped from a 
                maximum security stockade to the Los Angeles underground. Today, still wanted by the government, they survive as soldiers of fortune.</fo:block> 
              </fo:table-cell> 
             </fo:table-row> 
             <fo:table-row> 
              <fo:table-cell> 
               <fo:block>Lorem ipsum dolor sit amet</fo:block> 
              </fo:table-cell> 
              <fo:table-cell> 
               <fo:block>Ten years ago a crack commando unit was sent to prison by a military court for a crime they didn’t commit. These men promptly escaped from a 
                maximum security stockade to the Los Angeles underground. Today, still wanted by the government, they survive as soldiers of fortune.</fo:block> 
              </fo:table-cell> 
             </fo:table-row> 
             <fo:table-row> 
              <fo:table-cell> 
               <fo:block>Lorem ipsum dolor sit amet</fo:block> 
              </fo:table-cell> 
              <fo:table-cell> 
               <fo:block>Ten years ago a crack commando unit was sent to prison by a military court for a crime they didn’t commit. These men promptly escaped from a 
                maximum security stockade to the Los Angeles underground. Today, still wanted by the government, they survive as soldiers of fortune.</fo:block> 
              </fo:table-cell> 
             </fo:table-row> 
             <fo:table-row> 
              <fo:table-cell> 
               <fo:block>Lorem ipsum dolor sit amet</fo:block> 
              </fo:table-cell> 
              <fo:table-cell> 
               <fo:block>Ten years ago a crack commando unit was sent to prison by a military court for a crime they didn’t commit. These men promptly escaped from a 
                maximum security stockade to the Los Angeles underground. Today, still wanted by the government, they survive as soldiers of fortune.</fo:block> 
              </fo:table-cell> 
             </fo:table-row> 
             <fo:table-row> 
              <fo:table-cell> 
               <fo:block>Lorem ipsum dolor sit amet</fo:block> 
              </fo:table-cell> 
              <fo:table-cell> 
               <fo:block>Ten years ago a crack commando unit was sent to prison by a military court for a crime they didn’t commit. These men promptly escaped from a 
                maximum security stockade to the Los Angeles underground. Today, still wanted by the government, they survive as soldiers of fortune.</fo:block> 
              </fo:table-cell> 
             </fo:table-row> 
             <fo:table-row> 
              <fo:table-cell> 
               <fo:block>Lorem ipsum dolor sit amet</fo:block> 
              </fo:table-cell> 
              <fo:table-cell> 
               <fo:block>Ten years ago a crack commando unit was sent to prison by a military court for a crime they didn’t commit. These men promptly escaped from a 
                maximum security stockade to the Los Angeles underground. Today, still wanted by the government, they survive as soldiers of fortune.</fo:block> 
              </fo:table-cell> 
             </fo:table-row> 
             <fo:table-row> 
              <fo:table-cell> 
               <fo:block>Lorem ipsum dolor sit amet</fo:block> 
              </fo:table-cell> 
              <fo:table-cell> 
               <fo:block>Ten years ago a crack commando unit was sent to prison by a military court for a crime they didn’t commit. These men promptly escaped from a 
                maximum security stockade to the Los Angeles underground. Today, still wanted by the government, they survive as soldiers of fortune.</fo:block> 
              </fo:table-cell> 
             </fo:table-row> 
             <fo:table-row> 
              <fo:table-cell> 
               <fo:block>Lorem ipsum dolor sit amet</fo:block> 
              </fo:table-cell> 
              <fo:table-cell> 
               <fo:block>Ten years ago a crack commando unit was sent to prison by a military court for a crime they didn’t commit. These men promptly escaped from a 
                maximum security stockade to the Los Angeles underground. Today, still wanted by the government, they survive as soldiers of fortune.</fo:block> 
              </fo:table-cell> 
             </fo:table-row> 
             <fo:table-row> 
              <fo:table-cell> 
               <fo:block>Lorem ipsum dolor sit amet</fo:block> 
              </fo:table-cell> 
              <fo:table-cell> 
               <fo:block>Ten years ago a crack commando unit was sent to prison by a military court for a crime they didn’t commit. These men promptly escaped from a 
                maximum security stockade to the Los Angeles underground. Today, still wanted by the government, they survive as soldiers of fortune.</fo:block> 
              </fo:table-cell> 
             </fo:table-row> 
             <fo:table-row> 
              <fo:table-cell> 
               <fo:block>Lorem ipsum dolor sit amet</fo:block> 
              </fo:table-cell> 
              <fo:table-cell> 
               <fo:block>Ten years ago a crack commando unit was sent to prison by a military court for a crime they didn’t commit. These men promptly escaped from a 
                maximum security stockade to the Los Angeles underground. Today, still wanted by the government, they survive as soldiers of fortune.</fo:block> 
              </fo:table-cell> 
             </fo:table-row> 
             <fo:table-row> 
              <fo:table-cell> 
               <fo:block>Lorem ipsum dolor sit amet</fo:block> 
              </fo:table-cell> 
              <fo:table-cell> 
               <fo:block>Ten years ago a crack commando unit was sent to prison by a military court for a crime they didn’t commit. These men promptly escaped from a 
                maximum security stockade to the Los Angeles underground. Today, still wanted by the government, they survive as soldiers of fortune.</fo:block> 
              </fo:table-cell> 
             </fo:table-row> 
             <fo:table-row> 
              <fo:table-cell> 
               <fo:block>Lorem ipsum dolor sit amet</fo:block> 
              </fo:table-cell> 
              <fo:table-cell> 
               <fo:block>Ten years ago a crack commando unit was sent to prison by a military court for a crime they didn’t commit. These men promptly escaped from a 
                maximum security stockade to the Los Angeles underground. Today, still wanted by the government, they survive as soldiers of fortune.</fo:block> 
              </fo:table-cell> 
             </fo:table-row> 
             <fo:table-row> 
              <fo:table-cell> 
               <fo:block>Lorem ipsum dolor sit amet</fo:block> 
              </fo:table-cell> 
              <fo:table-cell> 
               <fo:block>Ten years ago a crack commando unit was sent to prison by a military court for a crime they didn’t commit. These men promptly escaped from a 
                maximum security stockade to the Los Angeles underground. Today, still wanted by the government, they survive as soldiers of fortune.</fo:block> 
              </fo:table-cell> 
             </fo:table-row> 
             <fo:table-row> 
              <fo:table-cell> 
               <fo:block>Lorem ipsum dolor sit amet</fo:block> 
              </fo:table-cell> 
              <fo:table-cell> 
               <fo:block>Ten years ago a crack commando unit was sent to prison by a military court for a crime they didn’t commit. These men promptly escaped from a 
                maximum security stockade to the Los Angeles underground. Today, still wanted by the government, they survive as soldiers of fortune.</fo:block> 
              </fo:table-cell> 
             </fo:table-row> 
             <fo:table-row> 
              <fo:table-cell> 
               <fo:block>Lorem ipsum dolor sit amet</fo:block> 
              </fo:table-cell> 
              <fo:table-cell> 
               <fo:block>Ten years ago a crack commando unit was sent to prison by a military court for a crime they didn’t commit. These men promptly escaped from a 
                maximum security stockade to the Los Angeles underground. Today, still wanted by the government, they survive as soldiers of fortune.</fo:block> 
              </fo:table-cell> 
             </fo:table-row> 
             <fo:table-row> 
              <fo:table-cell> 
               <fo:block>Lorem ipsum dolor sit amet</fo:block> 
              </fo:table-cell> 
              <fo:table-cell> 
               <fo:block>Ten years ago a crack commando unit was sent to prison by a military court for a crime they didn’t commit. These men promptly escaped from a 
                maximum security stockade to the Los Angeles underground. Today, still wanted by the government, they survive as soldiers of fortune.</fo:block> 
              </fo:table-cell> 
             </fo:table-row> 
             <fo:table-row> 
              <fo:table-cell> 
               <fo:block>Lorem ipsum dolor sit amet</fo:block> 
              </fo:table-cell> 
              <fo:table-cell> 
               <fo:block>Ten years ago a crack commando unit was sent to prison by a military court for a crime they didn’t commit. These men promptly escaped from a 
                maximum security stockade to the Los Angeles underground. Today, still wanted by the government, they survive as soldiers of fortune.</fo:block> 
              </fo:table-cell> 
             </fo:table-row> 
            </fo:table-body> 
           </fo:table> 
          </fo:table-cell> 
         </fo:table-row> 
        </fo:table-body> 
       </fo:table> 
      </fo:block> 
     </fo:flow> 
    </fo:page-sequence> 
</fo:root> 

enter image description here

उदाहरण पीडीएफ आउटपुट पृष्ठ 2

enter image description here

+1

इससे पहले कि मैं ने लिखा है कि मैं इस fop के प्रयोग से कर सकता है, लेकिन लगता है कि मैं सवाल-जवाब गलत समझा। किसी भी भ्रम के लिए माफ़ी। –