인사말,피사 및 마지막 페이지
나는 내 웹 페이지의 멋진 PDF를 생성하기 위해 PISA를 사용하고 있습니다. 어쨌든 저는 PDF 문서의 마지막 페이지에 꼬리말을 달아야합니다. "@page lastPage"라는 태그가 공식 문서에서 발견되었지만 제대로 작동하지 않습니다.
<style type="text/css">
@page {
size: {{ pagesize }};
margin: 1cm;
margin-bottom: 5.6cm;
margin-top: 7cm;
@frame header {
-pdf-frame-content: headerContent;
top:1cm;
margin-left: 1cm;
margin-right: 1cm;
height:6.5cm;
}
@frame middle{
-pdf-frame-content: middleContent;
top:6.5cm;
margin-left: 1cm;
margin-right: 1cm;
height:14cm;
}
}
@page lastPage{
size: {{ pagesize }};
margin: 1cm;
margin-bottom: 5.6cm;
margin-top: 7cm;
@frame header {
-pdf-frame-content: headerContent;
top:1cm;
margin-left: 1cm;
margin-right: 1cm;
height:6.5cm;
}
@frame middle{
-pdf-frame-content: middleContent;
top:6.5cm;
margin-left: 1cm;
margin-right: 1cm;
height:11cm;
}
@frame footer {
-pdf-frame-content: footerContent;
bottom: 0cm;
margin-left: 1cm;
margin-right: 1cm;
height:5.5cm;
text-align:left;
}
}
</style>
과 HTML :
...
<div id="headerContent">my header</div>
<div id="middleContent">my content</div>
<div id="footerContent">I want this foot in the last page only</div>
...
당신이 날 도와 드릴까요 나는 내 코드의 당신 일부를 보여?
질문에 문제가 있습니까? :( –