-
Notifications
You must be signed in to change notification settings - Fork 359
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
Problem with page margins when using @page:first rule #119
Comments
Hi @Bigdatha Thanks for this report. I finally tracked down the cause. It turns out we set the size of the Unfortunately, I don't think we can change this behaviour due to backwards compatibility. Even if we could, I'm not sure of the correct behaviour because the Possibly a workaround, for your specific case, is to use a floating element on the first page or a table. Let me know any thoughts. |
Hi @danfickle , first of all, thank you very much for investigating this issue. I picked up your suggestion using a floating container, this works fine except a minor problem with the first pagebreak (if you are interested, you can find an example in this zipfile).
Just thinking ... should or can paged media be handled like a single paged webpage ? For paged media, we can define the size and margins for the whole document in the As a result, the available space for printing the content can differ a lot from page to page. I don't know if it is possible at all, but i think for paged media the size of the Regards, |
As #376 is closed I am posting this here: Can a page format change not be coupled to explicit page breaks? I see where different page widths might complicate automatic page wrapping, but explicit page splits introduce hard transitions anyway. What is the difference of this to splitting the HTML accordingly and generating the page series separately until the next page break with a format change, while just carrying over the page counter? |
hi, is this feature being developed in progress or any info about this? |
Hello,
I am trying to create a PDF file which has a kind of banner on the right side of the first page.
So i used the
@page
,@page:first
and the@right-top
rules to adjust the page margins and to insert the additional content:This works perfect for the first page, but on the follwing ones, the right margin defined in the
@page:first
rule is still used instead of the default value defined in the@page
rule (by the way, similar effects arise when using the@page:left
or@page:right
rules).For clarification please have a look at Template.html.txt and Template.pdf
Thanks,
Bigdatha
The text was updated successfully, but these errors were encountered: