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

is there a way to set separate margin for each page of pdf? [help wanted] #104

Open
amitleuva1987 opened this issue Apr 20, 2019 · 1 comment

Comments

@amitleuva1987
Copy link

I want to generate a pdf from url. the pdf is getting generated of 2 pages but i want second page to have margins while i don't want margins for the first page of pdf. is it possible?

@jack2jm
Copy link

jack2jm commented Sep 20, 2022

@amitleuva1987

Yes, you can do it. you can put CSS on HTML page like this.

@page{ margin: 0px;margin-bottom: 10px;margin-top: 10px; } //this will be used for all pages
@page:first{margin-top: 0px;margin-bottom: 0px;} //this css will used for first page, this is override.

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

No branches or pull requests

3 participants