Skip to content
This repository has been archived by the owner on Jan 2, 2023. It is now read-only.

Different Margin per Page #2692

Closed
adisembiring opened this issue Dec 1, 2015 · 10 comments
Closed

Different Margin per Page #2692

adisembiring opened this issue Dec 1, 2015 · 10 comments

Comments

@adisembiring
Copy link

I have long HTML content. I need to make first page have no margin and the second page to the rest have margin 14. is it possible in wkhtmltopdf ?

@PhilterPaper
Copy link

I'm not aware of any way to change margins "on the fly", but maybe someone else knows if there is.

You might be better off taking a look at your HTML and seeing if you can rearrange it or do something to use normal margins. If nothing else, the PDF document is going to look strange (and sloppy) with content running over the right margin. Is there anything you can do about it? Are you talking about "words" so long that they exceed the length of a line? What happens during display in a browser (as HTML)? I'm not sure that soft hyphens (­) work in wkHTMLtoPDF (they didn't used to); same for   and other narrow spaces that a browser will break a line on.

If this is confined to the very first page, can you make that your "cover" page, with its own margins?

@RonB
Copy link

RonB commented Jun 24, 2016

+1

6 similar comments
@ajtis
Copy link

ajtis commented Jan 16, 2017

+1

@inakrin
Copy link

inakrin commented Jan 26, 2017

+1

@ajsjunior
Copy link

+1

@sajjadrad
Copy link

+1

@cristian100
Copy link

+1

@katesowles
Copy link

+1

@ajtis
Copy link

ajtis commented Oct 21, 2017

Some related work done on : #3635

@Tomsgu
Copy link
Contributor

Tomsgu commented Aug 24, 2018

Closing in expense of #3635 as there is some discussion and PR (incomplete) attached.

@Tomsgu Tomsgu closed this as completed Aug 24, 2018
@Tomsgu Tomsgu removed the NeedInfo label Aug 24, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests