Hello,

I just managed to setup my first elasticsearch node (for testing) with the ingest-attachment plugin. When I submit a pdf file I get many warnings like this one:

WARNUNG: Using fallback font LiberationSans for base font Times-Roman
Apr 12, 2022 10:36:46 AM  org.apache.pdfbox.pdmodel.font.PDType1Font <init>

But all the fonts that pdfbox is missing are available below /usr/share/fonts. Seaching the logs I found these messages:

Apr 12, 2022 10:36:46 AM org.apache.pdfbox.pdmodel.font.FileSystemFontProvider <init>
WARNUNG: Building on-disk font cache, this may take a while
Apr 12, 2022 10:36:46 AM org.apache.pdfbox.pdmodel.font.FileSystemFontProvider <init>
WARNUNG: Finished building on-disk font cache, found 0 fonts

See pdfbox doesn't find any fonts att all. I followed the intructions from https://www.elastic.co/guide/en/elasticsearch/reference/current/deb.html to setup elasticsearch and installed the plugin with this command:

/usr/share/elasticsearch/bin/elasticsearch-plugin install --batch ingest-attachment
-> Installing ingest-attachment
-> Downloading ingest-attachment from elastic
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@     WARNING: plugin requires additional permissions     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
* java.lang.RuntimePermission accessClassInPackage.sun.java2d.cmm.kcms
* java.lang.RuntimePermission accessDeclaredMembers
* java.lang.RuntimePermission getClassLoader
* java.lang.reflect.ReflectPermission suppressAccessChecks
* java.security.SecurityPermission createAccessControlContext
See https://docs.oracle.com/javase/8/docs/technotes/guides/security/permissions.html
for descriptions of what these permissions allow and the associated risks.
-> Installed ingest-attachment
-> Please restart Elasticsearch to activate any plugins installed

I'm not sure if the additional permissions are sufficient to allow the use of the font files from /usr/share/fonts but since 0 fonts are found I assume something is missing. Can anyone give some light into this issue?


--
--
Claas Hilbrecht


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

Reply via email to