Skip to content
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

Supress comments form Apache FOP #5

Open
jmartinsCx opened this issue Aug 23, 2023 · 4 comments
Open

Supress comments form Apache FOP #5

jmartinsCx opened this issue Aug 23, 2023 · 4 comments

Comments

@jmartinsCx
Copy link

jmartinsCx commented Aug 23, 2023

It's possible to generate the pdf without the prints of the Apache FOP tool, execute the tool in quiet mode?

@cxambs
Copy link

cxambs commented Nov 7, 2023

Any idea on this? Thank you!

@sorcerdon
Copy link
Owner

Can you provide a little more context? What are you seeing? Upload a doc?

@cxambs
Copy link

cxambs commented Nov 7, 2023

We mean these outputs being printed:

        INFO: Rendered page #89.
         nov 07, 2023 4:12:11 PM org.apache.fop.events.LoggingEventListener processEvent
         INFO: Rendered page #90.
         nov 07, 2023 4:12:11 PM org.apache.fop.events.LoggingEventListener processEvent
         INFO: Rendered page #91.

@VeMike
Copy link

VeMike commented Feb 6, 2024

@jmartinsCx
@cxambs

Apache FOP uses org.apache.commons.logging, which can be turned of using (among other ways) a Java System property.

Try

java.lang.System.setProperty("org.apache.commons.logging.Log",
                             "org.apache.commons.logging.impl.NoOpLog");

somewhere before any parts of the FOP library get initialized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants