Examples of addRegion()


Examples of org.mctourney.autoreferee.AutoRefTeam.addRegion()

    if (options.hasOption('N'))
      reg.setName(options.getOptionValue('N', null));

    for (AutoRefRegion.Flag flag : AutoRefRegion.Flag.values())
      if (options.hasOption(flag.getMark())) reg.toggle(flag);
    for (AutoRefTeam team : teams) if (team.addRegion(reg))
      sender.sendMessage(reg.toString() + " set as " + team.getDisplayName() + "'s region.");
    return true;
  }

  @AutoRefCommand(name={"autoref", "core"}, argmin=1, argmax=1, options="r+",
View Full Code Here

Examples of org.pdfbox.util.PDFTextStripperByArea.addRegion()

                    }
                }
                PDFTextStripperByArea stripper = new PDFTextStripperByArea();
                stripper.setSortByPosition( true );
                Rectangle rect = new Rectangle( 10, 280, 275, 60 );
                stripper.addRegion( "class1", rect );
                List allPages = document.getDocumentCatalog().getAllPages();
                PDPage firstPage = (PDPage)allPages.get( 0 );
                stripper.extractRegions( firstPage );
                System.out.println( "Text in the area:" + rect );
                System.out.println( stripper.getTextForRegion( "class1" ) );
View Full Code Here

Examples of org.pdfbox.util.PDFTextStripperByArea.addRegion()

                            {
                                //do nothing
                            }
                           
                            Rectangle2D.Float awtRect = new Rectangle2D.Float( x,y,width,height );
                            stripper.addRegion( "" + j, awtRect );
                        }
                    }
                   
                    stripper.extractRegions( page );
                   
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.