[opencms-dev] PDF Generation and PDF Cache
Patric Dosch
patric.dosch at virtual-identity.com
Fri Sep 28 15:55:29 CEST 2018
Hey Stephan,
thank you very much for your answer.
This is of course a good solution.
Somehow I remembered that there is also a purge mechanism for PDFs. But I don't think there is anything like that in the admin interface.
And therefore my expectation that there should be a piece of code somewhere that executes it for me.
Best, Patric
Von: opencms-dev-bounces at opencms.org <opencms-dev-bounces at opencms.org> Im Auftrag von Stephan Schrader
Gesendet: Donnerstag, 26. Juli 2018 14:49
An: The OpenCms mailing list <opencms-dev at opencms.org>
Betreff: Re: [opencms-dev] PDF Generation and PDF Cache
Hi,
in case you haven't found a solution, we use something like:
org.opencms.pdftools.CmsPdfCache cache = new org.opencms.pdftools.CmsPdfCache();
String repositoryPath = cache.getRepositoryPath()
org.apache.commons.io.FileUtils.cleanDirectory(new File(repositoryPath));
Stephan
Am Mi., 18. Juli 2018 um 10:19 Uhr schrieb Patric Dosch <patric.dosch at virtual-identity.com<mailto:patric.dosch at virtual-identity.com>>:
Hello,
we are using the pdf generation https://documentation.opencms.org/opencms-documentation/more-opencms-features/pdf-support/generating-pdf-output/
There is a cache as described in “Technical details“.
The question now is: Is there a way to empty this cache via a tool in the workplace? Or Code?
Best, Patric
Patric Dosch
Senior Developer
Virtual Identity AG
Grünwälderstraße 10-14
79098 Freiburg
t +49 761 20758-442
f +49 761 20758-01
patric.dosch at virtual-identity.com<mailto:patric.dosch at virtual-identity.com>
http://www.virtual-identity.com
Freiburg | München | Wien
________________________________
Virtual Identity AG
Grünwälderstraße 10-14
79098 Freiburg
Amtsgericht Freiburg, HRB 6218
Vorstand: Ralf Heller
Vorsitzende des Aufsichtsrates: Kirsten Heller
Umsatzsteuer-ID: DE208002218
_______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
Patric Dosch
Senior Developer
Virtual Identity AG
Grünwälderstraße 10-14
79098 Freiburg
t +49 761 20758-442
f +49 761 20758-01
m +49 152 54561033
patric.dosch at virtual-identity.com
http://www.virtual-identity.com
Freiburg | München | Wien
________________________________
Virtual Identity AG
Grünwälderstraße 10-14
79098 Freiburg
Amtsgericht Freiburg, HRB 6218
Vorstand: Ralf Heller
Vorsitzende des Aufsichtsrates: Kirsten Heller
Umsatzsteuer-ID: DE208002218
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20180928/f723bf21/attachment.htm>
More information about the opencms-dev
mailing list