-
Notifications
You must be signed in to change notification settings - Fork 556
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
Left and right margin after :first page bug #272
Comments
Sorry for the late response here. The CSS looks good to me. This is a bug, but unfortunately one that's pretty hard to fix. Flying Saucer started life as a Java2D (screen) media CSS renderer. The paged media (PDF) support basically treats the document as an infinitely long page and slides boxes around to make pages break nicely. What's happening in your example is that When the page is rendered, the content is shifted and clipped to the page's content area, hence the chopped off text. In terms of workarounds, here are a couple:
Would either of those work for you? |
Hello, good day.
As mentioned in this conversation:
link
There is an error occurring when defining margins on the first page (@page:first) and the default page (@page). The issue is that some blank margins are being generated, as shown in the attached photos. In my case, the same problem occurs. I have the following configuration, and after the first page, these blank "margins" start to appear, breaking the visibility.
I have this configuration, maybe there is something wrong with my code?
first page
second page
The text was updated successfully, but these errors were encountered: