Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Implementing page x of y #51

Open
kharabela opened this issue Sep 18, 2023 · 1 comment
Open

Implementing page x of y #51

kharabela opened this issue Sep 18, 2023 · 1 comment

Comments

@kharabela
Copy link

kharabela commented Sep 18, 2023

I tried to implement page x of y on 7 page pdf.
Instead of getting 1/7 . I am getting 1/1 upto 7/7.Please suggest what to implement
pdf.CellFormat(0, 10, fmt.Sprintf("Page %d/%d", pdf.PageNo(), pdf.PageCount()), "", 0, "C", false, 0, "")

@esmin
Copy link

esmin commented Jan 4, 2024

pdf.AliasNbPages("{nb}")
pdf.CellFormat(0, 10, fmt.Sprintf("Page %d/{nb}", pdf.PageNo()), "", 0, "C", false, 0, "")

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants