简体   繁体   中英

Get number of pages in pisa (python) pdf

Is there a way I can write the number of pages using pisa.CreatePDF?

Here's what I have in my html:

td style="width:200px;">Page <pdf:pagenumber> of X</td>

Is there a way to get what X is?

<td style="width:200px;">
    Page
    <pdf:pagenumber>
    of
    <pdf:pagecount>
</td>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM