Skip to content
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

pages #12

Open
yishairasowsky opened this issue Jul 25, 2021 · 4 comments
Open

pages #12

yishairasowsky opened this issue Jul 25, 2021 · 4 comments

Comments

@yishairasowsky
Copy link

Hi! I love your work. I am trying to make page numbers alternately appear at the bottom left for odd pages and bottom right for even pages. Is there a way to do that?
What I have so far is this...

wkhtmltopdf_path = 'C:/Program Files/wkhtmltopdf/bin/wkhtmltopdf.exe'
config = pdfkit.configuration(wkhtmltopdf=wkhtmltopdf_path)
options = {
    'footer-center': '~ [page] of [topage] ~',
@gtrias
Copy link
Contributor

gtrias commented Jul 26, 2021

If this is an option of wkthtmltopdf then it should be possible to pass this option to it:

https://github.com/ciricihq/wkhtmltopdf-flask-aas#passing-options

@yishairasowsky
Copy link
Author

yishairasowsky commented Jul 26, 2021 via email

@yishairasowsky
Copy link
Author

yishairasowsky commented Jul 26, 2021 via email

@gtrias
Copy link
Contributor

gtrias commented Jul 26, 2021

Sure! Here you have the official manual with all available options: https://wkhtmltopdf.org/usage/wkhtmltopdf.txt

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

No branches or pull requests

2 participants