Fix for NotSupportedException if AreaBreak is inside a flex container…#39
Fix for NotSupportedException if AreaBreak is inside a flex container…#39IBaltaga wants to merge 1 commit into
Conversation
|
Hi @IBaltaga , thank you for your contribution! Would you mind signing the Contributor License Agreement and send back to us? The details are available at https://itextpdf.com/en/how-buy/legal/itext-contributor-license-agreement - it's required in order to merge the PR. Btw, did you run tests with your changes? Are there any issues in test results? |
|
Hello @vitali-pr, i just send you the signed agreement to the support and cla@apryse.com email. |
have you checked these instructions? https://github.com/itext/itext-dotnet/blob/develop/BUILDING.md |
Hello, i checked the instructions and now i only have 37 remaining failing test. I think that if you run tests on your computer it will be ok. |
|
Hi @IBaltaga , thank you for your contribution! Taking into account your fix, we investigated the problem in more detail and avoided the exception in a slightly different way. |
|
@introfog as I can see the fix is to avoid throwing exception if we put page-break inside a flex container, but page-break functionality would still not be working as expected. Am i wrong? |
You are right, we have ignored AreaBreak inside flex container for now. In all the rest cases AreaBreak works as expected. |



Itext seem to not support PageBreak when rendering to pdf if we put it inside a Div with the display:flex style.
For example:
will thrown an exception because it will try to draw the AreaBreak.
Did a hotfix to be able to handle even the AreaBreak when parsing the elements inside the Flex container div.