aspose.slides添加文本框代码反编译

来源:互联网 发布:主播就是网络乞丐 编辑:程序博客网 时间:2024/05/22 17:46
位于Slides.class中的,加密水印代码。使用jbe直接return,外加去sha1 digest可去除!理论上,可以省去4K/年的成本。嘘!第一次破解jar。要不是急用,估计又要找中科院博士帮忙了。还好,上次人家把思想教给我了。
使用版本:aspose.slides-3.0.0.jar
  
void jdMethod_char()
  {
    am localam = jdField_this.getParentPresentation().jdMethod_if().jdMethod_new();
    String str = bD.jdMethod_do(new String[] { "Evaluation only.\rCreated with ", ac.if, " ", "3.0.0.0", ".\rCopyright 2004-", bD.jdMethod_if("2012.06.25", 0, 4), " Aspose Pty Ltd." });
    TextFrame localTextFrame = jdField_this.getShapes().addRectangle(0, 0, localam.jdMethod_if(), 100).addTextFrame(str);
    ParagraphCollection localParagraphCollection = localTextFrame.getParagraphs();
    localTextFrame.setAnchorText(1);
    localTextFrame.getLineFormat().setShowLines(false);
    localTextFrame.setProtection(32L);
    Iterator localIterator = localParagraphCollection.iterator();
    while (localIterator.hasNext())
    {
      Paragraph localParagraph = (Paragraph)localIterator.next();
      localParagraph.setAlignment_Rename_Namesake(1);
      localParagraph.getPortions().get_Item(0).setFontHeight(32);
     localParagraph.getPortions().get_Item(0).jdMethod_do(com.aspose.slides.b.a.c.j.jdMethod_do(255, 255, 216, 207).bf());
      localParagraph.getPortions().get_Item(0).setFontShadow(true);
    }
    localTextFrame.setFitShapeToText(true);
    localTextFrame.setY((localam.jdMethod_for() - localTextFrame.getHeight()) / 2);
  }
0 0
原创粉丝点击