-
Notifications
You must be signed in to change notification settings - Fork 96
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
Dynamic content not splitting into 2nd page #57
Comments
I am having exactly the same issue... @shaunzi did you find any workaround for this? |
@jonathansantos-toast no luck so far! |
Hey @shaunzi (same Jonathan here, just noticed I had first commented from my work account so replying now from my personal one hahaha) I was having this issue even though the content was small enough to fit in a single page. I managed to fix it by setting a fixed width/height in pixel IN THE INCLUDE TAGS. I had a layout file that already had the witdh and height set in fixed pixel values but inside it there were a few includes of different layout files and the actual tag didn't have fixed width/height values so after I set them as fixed pixel values the issue was fixed. It might not be your case, as I understood you are aware your content is not small enough to fit in one page, so I don't know if that will fix the issue for you but in any case I am also about to work on a layout (list) that will have just one view with long content as well and I expect it to split the content into multiple pages so if I manage to do it I will give you an update here :) Happy coding! |
Yup, I've just finished the implementation and I am able to reproduce the issue. Trying to print a single view which is a list and this list is not being split into multiple pages, instead it's a long single page with all items which is not readable when trying to actually print it. I will update the thread if I find a solution/work around for it |
@shaunzi , I have tried many things, performed a lot of tests but couldn't find a proper fix for it. Instead, what I am doing for now is to split the list of items into chunks ( For me, for now, this workaround works fine as I have a max size for each item of my list and the min size is not too different so was easy to calculate that each PDF page will fit 5 items. If you need help with the implementation just let me know. |
@jonathansds thanks for your support. My content is bit different, it is text/paragraphs and also there is a signature box at the end of the document (must be in the footer of the page). |
Facing same issue, any solution? @Gkemon |
@jonathansds @CUET-sajib10 @shaunzi @jonathansantos-toast Sorry for the late reply guys. Actually was busy with my bread-and-butter projects. Unfortunately, it is not easy to implement it easily with the current code base. But you all are mostly well come if anyone wants to contribute to resolving these issues. But for now, I can suggest you guys - please slit the text between two views and then print it from my side I think it will be the best solution considering trade off . @shaunzi can you please inform me that does iText can solve your issue? If yes then I will try to look over it and how they actually work and try to implement it on my library . Thanks you all guy . |
I am using your library but facing issue when the dynamic content is long so ideally it should split it into 2nd page but it is putting all the content the on single page. When printing that single page PDF its not readable.
Please assist.
The text was updated successfully, but these errors were encountered: