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

[Feature-request] Auto-repeat Letterhead on every page #4324

Closed
TanujW opened this issue Nov 16, 2015 · 7 comments
Closed

[Feature-request] Auto-repeat Letterhead on every page #4324

TanujW opened this issue Nov 16, 2015 · 7 comments

Comments

@TanujW
Copy link

TanujW commented Nov 16, 2015

Hi,

Is it possible to implement the letterhead into every page?
Currently the header is mapped to the top of the first page, and the footer to the bottom of the last page.

Thank You all!

@cgpurbaugh
Copy link
Contributor

There is a possible paid development here: https://discuss.erpnext.com/t/header-footer-development/7442/9

If you could contribute, it would help alot.

@TanujW
Copy link
Author

TanujW commented Nov 20, 2015

Can we get an estimate for this?

@rmehta
Copy link
Member

rmehta commented Nov 26, 2015

@TanujW @cgpurbaugh I spent some time looking into this. This is not possible in the current HTML/CSS specs, so please don't make the payment. The work around of manually checking "page" break should work.

@MaxMorais
Copy link
Contributor

Hi folks!

A old time ago, while we are using wnframework yet, I created a workaround for JavaScript, to calculate the page break in the browser, this is here https://jsfiddle.net/MaxMorais/q3q38/embedded/result/

After the inclusion of weasy-print to generate PDF's, I found this discussion Kozea/WeasyPrint#92, and this gist https://gist.github.com/pikhovkin/5642563, for solve this issue!

@rmehta
Copy link
Member

rmehta commented Nov 26, 2015

weasyprint had issues when we last looked at it. @MaxMorais Have you tested recently?

@MaxMorais
Copy link
Contributor

@rmehta I dont know if your issue are the same issue that I found, where the sizes of the page dont match or header and footer or are overlapping the page body, if the issue is the same, do you need get the size of the header and the footer and adds it with padding-top and padding-bottom in the page-body container.

@rmehta rmehta added watchlist and removed wontfix labels Dec 1, 2015
@anandpdoshi
Copy link
Contributor

Fixed in PDF!

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

5 participants