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

Tilman Hausherr commented on TIKA-3172:
---------------------------------------

AnnotationUtils.assignFieldParams() has a list of "allowed" fields in "aObjs", 
these are collected through some reflection magic. The EnableAutoSpace field 
isn't part of it which is why the setting is not processed later. 
"setEnableAutoSpace()" doesn't have a "@Field" annotation. Setting this solves 
the problem (so it seems). But I'm going to sleep.

> PDF Parser configuration enable auto space using tika config file
> -----------------------------------------------------------------
>
>                 Key: TIKA-3172
>                 URL: https://issues.apache.org/jira/browse/TIKA-3172
>             Project: Tika
>          Issue Type: Wish
>          Components: parser
>    Affects Versions: 1.24.1
>            Reporter: Akash
>            Priority: Major
>
> Need information on how to set enableAutoSpace using tika config file.
> {code:java}
> /<properties>
>   <parsers>
>     <parser class="org.apache.tika.parser.DefaultParser">
>       <parser-exclude class="org.apache.tika.parser.pdf.PDFParser"/>
>     </parser>
>     <parser class="org.apache.tika.parser.pdf.PDFParser">
>       <params>
>         <param name="enableAutoSpace" type="bool">false</param>
>       </params>
>     </parser>
>   </parsers>
> </properties>/ 
> {code}
> Above configuration is not working.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to