/src/test/java/com/eastrobot/doc/watermark/PowerPointProcessorTests.java

https://github.com/ekoz/kbase-doc · Java · 29 lines · 16 code · 5 blank · 8 comment · 0 complexity · e7fca6d007b2388b51244dcec082b6ae MD5 · raw file

  1. /*
  2. * Power by www.xiaoi.com
  3. */
  4. package com.eastrobot.doc.watermark;
  5. /**
  6. * @author <a href="mailto:eko.z@outlook.com">eko.zhan</a>
  7. * @date 2018年9月17日 下午4:33:28
  8. * @version 1.0
  9. */
  10. import java.io.File;
  11. import org.junit.Test;
  12. public class PowerPointProcessorTests {
  13. @Test
  14. public void testProcess() {
  15. File file = new File("E:\\ConvertTester\\ppt\\看看addThread方法的源码1.pptx");
  16. File imgFile = new File("E:\\ConvertTester\\images\\jshrss-logo.png");
  17. PowerPointProcessor processor = new PowerPointProcessor(file, imgFile);
  18. try {
  19. processor.process();
  20. } catch (WatermarkException e) {
  21. e.printStackTrace();
  22. }
  23. }
  24. }