Created
August 31, 2018 12:40
-
-
Save eldermoraes/e5c367508aeda058ac10e3a670f931f9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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