
【Poi-tl Documentation】区块对标签显示隐藏改造
最后就是用我们自定义的 CustomDefaultRender 了,因为 XWPFTemplate 构造函数是 private,不能使用继承的方式实现,最后我们通过反射的方式来处理,模拟 XWPFTemplate.compile(InputStream, Configure) 方法,通过反射的方式来创建 XWPFTemplate 并给属性赋值,renderer 使用我们自定会的 CustomDefaultRender。这次改造过程中涉及到的很多方法都是从原有的方法中赋值,改动的部分很少。





















