pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tilman Hausherr <THaush...@t-online.de>
Subject Re: What causes "Building on-disk font cache"
Date Wed, 18 Jan 2017 16:09:58 GMT
Am 18.01.2017 um 03:47 schrieb Clark, Raymond C:
> java.io.FileNotFoundException:/opt/tomcat/.pdfbox.cache (Permission denied)


Normally this should be written in the user directory... you can set 
this by setting the property   pdfbox.fontcache

Here's a code excerpt:


     private File getDiskCacheFile()
     {
         String path = System.getProperty("pdfbox.fontcache");
         if (path == null)
         {
             path = System.getProperty("user.home");
             if (path == null)
             {
                 path = System.getProperty("java.io.tmpdir");
             }
         }
         return new File(path, ".pdfbox.cache");
     }


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message