-
Notifications
You must be signed in to change notification settings - Fork 53
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
extra space after {{#pageHeader}} #4
Comments
A solution could be to check first if there is some content inside Thanks for reporting the issue anyway @bcyng 👍 Antonio |
Same problem for me. As soon as possible I'll post a sample template. |
@nicolamontini It would be great, thank you. As soon as you'll post it I will test it and commit a fix for this issue 😄 |
In the previous post I did a little mistake. The extra space in my case comes between {{#documentHeader}} and {{#pageHeader}}. As you will see, I put a table with 17 rows in {{#documentHeader}} and below that you will see a high white strip (about 170px). This white strip is not rendered by an html tag, because the body tag is black. Therefore it must be something in the library... Below the strip there is the {{#pageContent}} ({{#pageHeader}} only contains a string). Obviously if {{#documentHeader}} contains only a small string, like in the example available in gitHub, the strip is not so high. |
Here is the template:
|
Tried to debug your library. In my opinion the error is in the way you calculate the height of the header of the single page. Actually you calculate it with the numberOfPages method + 20 in the PRKFakeRenderer's [contentHeight] method. In my case in the first page the |
Any update to the library? |
I've had this issue also thanks for posting your findings I simply changed
to
Although I am not quite sure what this is exactly doing at the moment, have you tried removing the -20 and how does it work then with your PDF? Thanks Aaron |
there seems to be extra space that {{#pageHeader}} adds after anything in {{#pageHeader}} and before {{pageContent}} starts.
This results in reports having black space at the top of the page if {{#pageHeader}} is empty. or space between any text in {{#pageHeader}} content and {{pageContent}}
Is there any way to get rid of it?
The text was updated successfully, but these errors were encountered: