Adam Arold
Adam Arold

Reputation: 30528

How do I eliminate irrelevant "Content overflows the viewport" WARNINGs using FOP?

I have an fo file which I use to generate PDF files using FOP. My problem is that whenever I use FOP it fills up the log with warnings such as this:

[o.a.fop.events.LoggingEventListener] Content overflows the viewport of an fo:block-container in block-progression direction by 4841 millipoints. Content will be clipped. (See position 588:77)

My problem is that I know that content overflows that's why I used overflow="hidden" in my template:

<fo:block-container overflow="hidden" height="${rowHeight}">

so this is working as intended. How do I eliminate these unnecessary warnings?

Upvotes: 2

Views: 878

Answers (1)

todji
todji

Reputation: 191

Old question but I found it when trying to find the solution for myself and thought this might be useful to someone else:

In Windows Powershell: .\fop -q test5.xml test-5.pdf 2> Out-Null

In Linux Bash: fop -q test5.xml test-5.pdf 2> /dev/null

Upvotes: 1

Related Questions