-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
incorrect page numbering in PDF #29458
Comments
Hi @GildDart |
Great it works !!! |
Hi @GildDart |
Done... |
Have put this on high priority, had more complaints on this. Some Authorities do not accept invoices with incorrect page numbering. |
Hi @fappels, dolibarr/htdocs/core/lib/pdf.lib.php Lines 1355 to 1365 in e2eb4e9
For countries using Freemono or DejaVuSans instead of default Helvetica font only const PDF_USE_GETALIASNBPAGE_FOR_TOTAL works but renders wrong
|
Maybe make PR for V18 like:
and remove PDF_USE_GETALIASNBPAGE_FOR_TOTAL to keep only getAliasNbPages |
@fappels , @GildDart
|
It is working with my v18.0.5. |
I put PR on draft, if you have better value for width and position I change in PR. |
@fappels Where can I find the values ? |
@fappels @GildDart
|
I pushed some correction, put 28 not 30, because think will have problem with doc more the 10 pages. |
Hi @fappels |
Here is what I put... ` // Show page nb only on iso languages (so default Helvetica font)
` instead of `
` |
Bug
In v18.0.5 (php 8.0.30) the page numbering in the Propale pdf is incorrect. It is in the form: 1/2, 2/3, 3/4, 4/4 instead of 1/4, 2/4, 3/4, 4/4 (azure and cyan models).
On the same server and configuration it is correct for v17.0.3
Dolibarr Version
18.0.5
Environment PHP
8.0.3
Environment Database
Steps to reproduce the behavior and expected behavior
No response
Attached files
No response
The text was updated successfully, but these errors were encountered: