I may run into this soon as well.

Do you think you'd be able to generate the font cache once, create a
one-off call to serve it back to yourself, and then package the font
cache files in with the app to prevent it from being regenerated every
time (and also avoid any S3 charges)?

Thanks,
      Aaron


On Tue, Aug 1, 2017 at 10:52 AM, Bell, Kurt (US - Chicago)
<[email protected]> wrote:
> I am running a serverless app using AWS Lambda and since the storage is 
> ephemeral I am having to rebuild the Font Cache every time.  I used the line 
> below to set the location to /tmp, that way Lambda can build it locally, but 
> it is inefficient and I am also being charged for the extra times it takes to 
> do this on every call.
>
> System.setProperty("pdfbox.fontcache", "/tmp");
>
> I've been trying to save the Font Cache to an S3 bucket but haven't been able 
> to make that work successfully.  Has anyone been able to do it?
>
>
> This message (including any attachments) contains confidential information 
> intended for a specific individual and purpose, and is protected by law. If 
> you are not the intended recipient, you should delete this message and any 
> disclosure, copying, or distribution of this message, or the taking of any 
> action based on it, by you is strictly prohibited.
>
> v.E.1

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to