[ 
https://issues.apache.org/jira/browse/PDFBOX-5901?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17898516#comment-17898516
 ] 

Tilman Hausherr commented on PDFBOX-5901:
-----------------------------------------

Log4j allows to exclude logging based on different criteria, e.g. no logging 
for a certain class. This is done in the configuration XML. Here's my default 
XML that I use to exclude some of the spring output
{code:xml}
<?xml version="1.0" encoding="UTF-8"?>
<!-- https://logging.apache.org/log4j/2.x/manual/configuration.html 
     https://logging.apache.org/log4j/2.x/manual/appenders.html
-->
<Configuration>
    <Appenders>
        <Console name="STDOUT" target="SYSTEM_OUT">
            <PatternLayout pattern="%d{dd.MM.yyyy HH:mm:ss} %-5p %C{2}:%L - 
%m%n"/>
        </Console>
    </Appenders>
    <Loggers>
        <Logger name="org.springframework" level="warn" additivity="false">
            <AppenderRef ref="STDOUT"/>
        </Logger>
        <Root level="info">
            <AppenderRef ref="STDOUT"/>
        </Root>
    </Loggers>
</Configuration>
{code}

> there is an issue with font mapping or rendering
> ------------------------------------------------
>
>                 Key: PDFBOX-5901
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-5901
>             Project: PDFBox
>          Issue Type: Bug
>          Components: FontBox
>    Affects Versions: 2.0.31, 2.0.32, 3.0.3 PDFBox
>            Reporter: ltzzZ
>            Assignee: Tilman Hausherr
>            Priority: Major
>         Attachments: PDFBOX-5901-p24.pdf, image-2024-11-15-12-38-12-100.png, 
> image-2024-11-15-12-38-36-179.png, image-2024-11-15-12-39-22-585.png
>
>
> When I try to extract the text content of a pdf file, I keep looping through 
> the warning log of font rendering or mapping, I can't get the content of the 
> file, how can I fix this problem.
>  
> My code:
>   !image-2024-11-15-12-38-36-179.png!
> problem:
>   !image-2024-11-15-12-39-22-585.png!
> and sometimes the CPU usage is abnormal
>   !image-2024-11-15-12-38-12-100.png!



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org

Reply via email to