Skip to content

Instantly share code, notes, and snippets.

@eldermoraes
Created August 31, 2018 12:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eldermoraes/e5c367508aeda058ac10e3a670f931f9 to your computer and use it in GitHub Desktop.
Save eldermoraes/e5c367508aeda058ac10e3a670f931f9 to your computer and use it in GitHub Desktop.
public class PdfHandler implements FileHandler {
@Override
public void handle(@ObservesAsync @Pdf FileEvent file) throws
IOException {
FileSystemUtils.save( file.getFile(),"pdf","pdf_"+ new Date().getTime() + ".pdf" );
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment