2013-03-20 3 views
4

FOP를 사용하여 pfd를 렌더링해야하고 일부 이미지를 회전해야합니다. 그러나 결과는 내가 기대하는대로 보이지 않습니다. 효과적으로 선도 (레퍼런스 오리엔테이션은 실제로 무엇을합니까?

내가

fo:block-container reference-orientation="90" width="100" height="200" 

이 전체 컨테이너를 회전합니다 정의하면 : 그래서, 여기에 내 질문 (그리고 어떻게 든 나를 위해이 문제를 명확히하기 좋은 문서를 찾을 수 없습니다) 렌더링 된 치수 200x100의 상자로) 또는 컨테이너의 내용을 회전 만하면 됩니 다 (컨테이너 자체는 치수 100x200로 렌더링됩니다).

답변

3

전체 컨테이너가 회전합니다. 여기

는 ...

XSL-FO을 높이보다되는 폭의 예 다음 90DEG 회전

<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> 
    <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-container reference-orientation="90" width="3in" height="7in" background-color="black" padding="4pt"> 
       <fo:block color="white">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. 
        If you have a problem and no one else can help, and if you can find them, maybe you can hire the A-team.</fo:block> 
      </fo:block-container> 
     </fo:flow> 
    </fo:page-sequence> 
</fo:root> 

PDF 출력 (사용 FOP 1.0)

enter image description here

관련 문제