tttt



/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.pdfbox.examples.util;

import org.apache.pdfbox.pdmodel.PDDocument;
import org.apache.pdfbox.pdmodel.PDPage;
import org.apache.pdfbox.text.PDFTextStripperByArea;

import java.awt.Rectangle;
import java.io.File;
import java.io.IOException;

/**
* This is an example on how to extract text from a specific area on the PDF document.
*
* Usage: java org.apache.pdfbox.examples.util.ExtractTextByArea <input-pdf>
*
* @author Ben Litchfield
*/
public final class ExtractTextByArea
{
private ExtractTextByArea()
{
//utility class and should not be constructed.
}


/**
* This will print the documents text in a certain area.
*
* @param args The command line arguments.
*
* @throws IOException If there is an error parsing the document.
*/
public static void main( String[] args ) throws IOException
{
if( args.length != 1 )
{
usage();
}
else
{
PDDocument document = null;
try
{
document = PDDocument.load( new File(args[0]) );
PDFTextStripperByArea stripper = new PDFTextStripperByArea();
stripper.setSortByPosition( true );
// Rectangle rect = new Rectangle( 10, 280, 275, 60 );
Rectangle rect = new Rectangle( 0, 0, 9999, 9999);
stripper.addRegion( "class1", rect );
PDPage firstPage = document.getPage(0);
stripper.extractRegions( firstPage );
System.out.println( "Text in the area:" + rect );
System.out.println( stripper.getTextForRegion( "class1" ) );
}
finally
{
if( document != null )
{
document.close();
}
}
}
}

/**
* This will print the usage for this document.
*/
private static void usage()
{
System.err.println( "Usage: java org.apache.pdfbox.examples.util.ExtractTextByArea <input-pdf>" );
}

}



http://www.ted.com/talks/rita_pierson_every_kid_needs_a_champion#

http://cdn.sencha.com/cmd/6.0.0.202/no-jre/SenchaCmd-6.0.0.202-linux-amd64.sh.zip

ftp://gd.tuwien.ac.at/gnu/gcc/releases/gcc-5.2.0/

http://examples.javacodegeeks.com/enterprise-java/spring/load-environment-configurations-and-properties-with-spring-example/

checkstyle file:

<?xml version="1.0"?>
<!DOCTYPE module PUBLIC
"-//Puppy Crawl//DTD Check Configuration 1.3//EN"
"http://www.puppycrawl.com/dtds/configuration_1_3.dtd">

<!--

Checkstyle configuration that checks the Google coding conventions from:

- Google Java Style
https://google-styleguide.googlecode.com/svn-history/r130/trunk/javaguide.html

Checkstyle is very configurable. Be sure to read the documentation at
http://checkstyle.sf.net (or in your downloaded distribution).

Most Checks are configurable, be sure to consult the documentation.

To completely disable a check, just comment it out or delete it from the file.

Authors: Max Vetrenko, Ruslan Diachenko, Roman Ivanov.

-->

<module name = "Checker">
<property name="charset" value="UTF-8"/>

<property name="severity" value="warning"/>

<property name="fileExtensions" value="java, properties, xml"/>
<!-- Checks for whitespace -->
<!-- See http://checkstyle.sf.net/config_whitespace.html -->
<module name="FileTabCharacter">
<property name="eachLine" value="true"/>
</module>

<module name="TreeWalker">
<module name="OuterTypeFilename"/>
<module name="IllegalTokenText">
<property name="tokens" value="STRING_LITERAL, CHAR_LITERAL"/>
<property name="format" value="\\u00(08|09|0(a|A)|0(c|C)|0(d|D)|22|27|5(C|c))|\\(0(10|11|12|14|15|42|47)|134)"/>
<property name="message" value="Avoid using corresponding octal or Unicode escape."/>
</module>
<module name="AvoidEscapedUnicodeCharacters">
<property name="allowEscapesForControlCharacters" value="true"/>
<property name="allowByTailComment" value="true"/>
<property name="allowNonPrintableEscapes" value="true"/>
</module>
<module name="LineLength">
<property name="max" value="150"/>
<property name="ignorePattern" value="^package.*|^import.*|a href|href|http://|https://|ftp://"/>
</module>
<module name="AvoidStarImport"/>
<module name="OneTopLevelClass"/>
<module name="NoLineWrap"/>
<module name="EmptyBlock">
<property name="option" value="TEXT"/>
<property name="tokens" value="LITERAL_TRY, LITERAL_FINALLY, LITERAL_IF, LITERAL_ELSE, LITERAL_SWITCH"/>
</module>
<module name="NeedBraces"/>
<module name="LeftCurly">
<property name="maxLineLength" value="100"/>
</module>
<module name="RightCurly"/>
<module name="RightCurly">
<property name="option" value="alone"/>
<property name="tokens" value="CLASS_DEF, METHOD_DEF, CTOR_DEF, LITERAL_FOR, LITERAL_WHILE, LITERAL_DO, STATIC_INIT, INSTANCE_INIT"/>
</module>
<module name="WhitespaceAround">
<property name="allowEmptyConstructors" value="true"/>
<property name="allowEmptyMethods" value="true"/>
<property name="allowEmptyTypes" value="true"/>
<property name="allowEmptyLoops" value="true"/>
<message key="ws.notFollowed"
value="WhitespaceAround: ''{0}'' is not followed by whitespace. Empty blocks may only be represented as '{}' when not part of a multi-block statement (4.1.3)"/>
<message key="ws.notPreceded"
value="WhitespaceAround: ''{0}'' is not preceded with whitespace."/>
</module>
<module name="OneStatementPerLine"/>
<module name="MultipleVariableDeclarations"/>
<module name="ArrayTypeStyle"/>
<module name="MissingSwitchDefault"/>
<module name="FallThrough"/>
<module name="UpperEll"/>
<module name="ModifierOrder"/>
<module name="EmptyLineSeparator">
<property name="allowNoEmptyLineBetweenFields" value="true"/>
</module>
<module name="SeparatorWrap">
<property name="tokens" value="DOT"/>
<property name="option" value="nl"/>
</module>
<module name="SeparatorWrap">
<property name="tokens" value="COMMA"/>
<property name="option" value="EOL"/>
</module>
<module name="PackageName">
<property name="format" value="^[a-z]+(\.[a-z][a-z0-9]*)*$"/>
<message key="name.invalidPattern"
value="Package name ''{0}'' must match pattern ''{1}''."/>
</module>
<module name="TypeName">
<message key="name.invalidPattern"
value="Type name ''{0}'' must match pattern ''{1}''."/>
</module>
<module name="MemberName">
<property name="format" value="^[a-z][a-z0-9][a-zA-Z0-9]*$"/>
<message key="name.invalidPattern"
value="Member name ''{0}'' must match pattern ''{1}''."/>
</module>
<module name="ParameterName">
<property name="format" value="^[a-z][a-z0-9][a-zA-Z0-9]*$"/>
<message key="name.invalidPattern"
value="Parameter name ''{0}'' must match pattern ''{1}''."/>
</module>
<module name="LocalVariableName">
<property name="tokens" value="VARIABLE_DEF"/>
<property name="format" value="^[a-z][a-z0-9][a-zA-Z0-9]*$"/>
<property name="allowOneCharVarInForLoop" value="true"/>
<message key="name.invalidPattern"
value="Local variable name ''{0}'' must match pattern ''{1}''."/>
</module>
<module name="ClassTypeParameterName">
<property name="format" value="(^[A-Z][0-9]?)$|([A-Z][a-zA-Z0-9]*[T]$)"/>
<message key="name.invalidPattern"
value="Class type name ''{0}'' must match pattern ''{1}''."/>
</module>
<module name="MethodTypeParameterName">
<property name="format" value="(^[A-Z][0-9]?)$|([A-Z][a-zA-Z0-9]*[T]$)"/>
<message key="name.invalidPattern"
value="Method type name ''{0}'' must match pattern ''{1}''."/>
</module>
<module name="NoFinalizer"/>
<module name="GenericWhitespace">
<message key="ws.followed"
value="GenericWhitespace ''{0}'' is followed by whitespace."/>
<message key="ws.preceded"
value="GenericWhitespace ''{0}'' is preceded with whitespace."/>
<message key="ws.illegalFollow"
value="GenericWhitespace ''{0}'' should followed by whitespace."/>
<message key="ws.notPreceded"
value="GenericWhitespace ''{0}'' is not preceded with whitespace."/>
</module>
<module name="Indentation">
<property name="caseIndent" value="0"/>
<!--
<property name="basicOffset" value="2"/>
<property name="braceAdjustment" value="0"/>
<property name="throwsIndent" value="4"/>
<property name="lineWrappingIndentation" value="4"/>
<property name="arrayInitIndent" value="2"/>
-->
</module>
<module name="AbbreviationAsWordInName">
<property name="ignoreFinal" value="false"/>
<property name="allowedAbbreviationLength" value="1"/>
</module>
<module name="OverloadMethodsDeclarationOrder"/>
<module name="VariableDeclarationUsageDistance"/>
<module name="CustomImportOrder">
<!-- <property name="specialImportsRegExp" value="com.google"/> -->
<property name="specialImportsRegExp" value="org"/>

<property name="sortImportsInGroupAlphabetically" value="true"/>
<!--
<property name="customImportOrderRules" value="STATIC###SPECIAL_IMPORTS###THIRD_PARTY_PACKAGE###STANDARD_JAVA_PACKAGE"/>
-->
<property name="customImportOrderRules"
value="STATIC###STANDARD_JAVA_PACKAGE###SPECIAL_IMPORTS###THIRD_PARTY_PACKAGE"/>
</module>
<module name="MethodParamPad"/>
<module name="OperatorWrap">
<property name="option" value="NL"/>
<property name="tokens" value="BAND, BOR, BSR, BXOR, DIV, EQUAL, GE, GT, LAND, LE, LITERAL_INSTANCEOF, LOR, LT, MINUS, MOD, NOT_EQUAL, PLUS, QUESTION, SL, SR, STAR "/>
</module>
<module name="AnnotationLocation">
<property name="tokens" value="CLASS_DEF, INTERFACE_DEF, ENUM_DEF, METHOD_DEF, CTOR_DEF"/>
</module>
<module name="AnnotationLocation">
<property name="tokens" value="VARIABLE_DEF"/>
<property name="allowSamelineMultipleAnnotations" value="true"/>
</module>
<module name="NonEmptyAtclauseDescription"/>
<module name="JavadocTagContinuationIndentation"/>
<module name="SummaryJavadocCheck">
<property name="forbiddenSummaryFragments" value="^@return the *|^This method returns |^A [{]@code [a-zA-Z0-9]+[}]( is a )"/>
</module>
<module name="JavadocParagraph"/>
<module name="AtclauseOrder">
<property name="tagOrder" value="@param, @return, @throws, @deprecated"/>
<property name="target" value="CLASS_DEF, INTERFACE_DEF, ENUM_DEF, METHOD_DEF, CTOR_DEF, VARIABLE_DEF"/>
</module>
<module name="JavadocMethod">
<property name="scope" value="public"/>
<property name="allowMissingParamTags" value="true"/>
<property name="allowMissingThrowsTags" value="true"/>
<property name="allowMissingReturnTag" value="true"/>
<property name="minLineCount" value="2"/>
<property name="allowedAnnotations" value="Override, Test"/>
<property name="allowThrowsTagsForSubclasses" value="true"/>
</module>
<module name="MethodName">
<property name="format" value="^[a-z][a-z0-9][a-zA-Z0-9_]*$"/>
<message key="name.invalidPattern"
value="Method name ''{0}'' must match pattern ''{1}''."/>
</module>
<module name="SingleLineJavadoc">
<property name="ignoreInlineTags" value="false"/>
</module>
<module name="EmptyCatchBlock">
<property name="exceptionVariableName" value="expected"/>
</module>
</module>
</module>




[quote]
0|||5|||SS here|||2015-06-28 12:14:07|||0:0:0:0:0:0:0:1
5|||9|||Hi, SS, Hi, Guoqi|||2015-06-28 18:56:51|||0:0:0:0:0:0:0:1
9|||68|||win7 slow, lch coming, agenda. put excel into confluence. |||2015-06-28 12:15:35|||0:0:0:0:0:0:0:1
68|||80|||you can put on the new UI framework page, which ?? by Jarret, that's the mainpage , right? you can just put as an attachment|||2015-06-28 12:21:10|||0:0:0:0:0:0:0:1
80|||147|||xxxxxxxxx|||2015-06-28 12:24:47|||0:0:0:0:0:0:0:1
147|||164|||xxxxxxxxx|||2015-06-28 12:25:57|||0:0:0:0:0:0:0:1
164|||181|||yes, I ?? data into database, and try to , you know, something on the UI, the difference is the ?? the values work, ?? to the metadata, |||2015-06-28 12:33:12|||0:0:0:0:0:0:0:1
181|||187|||and value are ?? properties like ?? value ?? so|||2015-06-28 12:35:14|||0:0:0:0:0:0:0:1
187|||197|||yes, it's working, I can show you also|||2015-06-28 12:34:01|||0:0:0:0:0:0:0:1
197|||202|||xxxx|||2015-06-28 14:03:22|||0:0:0:0:0:0:0:1
202|||217|||?? mostly fine, I have few, I think ?? ok??|||2015-06-28 15:00:24|||0:0:0:0:0:0:0:1
217|||243|||web conference|||2015-06-28 14:05:42|||0:0:0:0:0:0:0:1
243|||437|||xxxxxxxxxxx, I'm the presenter|||2015-06-28 15:11:19|||0:0:0:0:0:0:0:1
437|||441|||so you want to share us something ?? |||2015-06-28 15:11:57|||0:0:0:0:0:0:0:1
441|||454|||xxxxxx |||2015-06-28 15:13:55|||0:0:0:0:0:0:0:1
454|||472|||ok, just a second?? can you see my screen? |||2015-06-28 15:13:55|||0:0:0:0:0:0:0:1
472|||482|||let's start|||2015-06-28 15:14:52|||0:0:0:0:0:0:0:1
482|||502|||the third one, right? ?? shangsong is work on the http ??, right? so this is ?? new one ?? required.|||2015-06-28 15:17:38|||0:0:0:0:0:0:0:1
502|||571|||the remain..|||2015-06-28 15:20:58|||0:0:0:0:0:0:0:1
571|||586|||so, you need to, ok, ??|||2015-06-28 19:46:29|||0:0:0:0:0:0:0:1
586|||607|||xxxx|||2015-06-28 15:23:09|||0:0:0:0:0:0:0:1
607|||611|||so this is a clearing ?? what we need to do|||2015-06-28 15:25:18|||0:0:0:0:0:0:0:1
611|||621|||this is for types for the trade & postions. ok? (quantity & lots??)|||2015-06-28 15:26:30|||0:0:0:0:0:0:0:1
621|||632|||xxxxxxxx|||2015-06-28 15:28:04|||0:0:0:0:0:0:0:1
632|||640|||gridview save ?? this week, this one|||2015-06-28 15:36:24|||0:0:0:0:0:0:0:1
640|||648|||today? |||2015-06-28 15:36:02|||0:0:0:0:0:0:0:1
648|||653|||ok|||2015-06-28 15:38:31|||0:0:0:0:0:0:0:1
653|||659|||fix income trade grid column data, ok, that's done. ??|||2015-06-28 15:39:00|||0:0:0:0:0:0:0:1
659|||671|||ok, Klunar services, this is right? we already have the ??, don't modify that service because ?? UI|||2015-06-28 15:46:38|||0:0:0:0:0:0:0:1
671|||677|||right now, you need to add ?? service , right? to the fix income|||2015-06-28 15:51:12|||0:0:0:0:0:0:0:1
677|||689|||yes, xxxxxxxxxxx|||2015-06-28 15:51:46|||0:0:0:0:0:0:0:1
689|||706|||yeah, don't modify the get/current ?? service. ?? don't modify. I will add a new service. |||2015-06-28 15:54:30|||0:0:0:0:0:0:0:1
706|||715|||for this, also ?? should I put a status on this? I don't know. |||2015-06-28 16:02:55|||0:0:0:0:0:0:0:1
715|||732|||xxxxxxxxx|||2015-06-28 16:03:32|||0:0:0:0:0:0:0:1
732|||738|||when do you think you can get the fixincome that?? in the middle of this week|||2015-06-28 16:07:46|||0:0:0:0:0:0:0:1
738|||771|||xxxxxxxxxxxxx|||2015-06-28 16:08:05|||0:0:0:0:0:0:0:1
771|||797|||xxxxxxxxxxx|||2015-06-28 16:08:42|||0:0:0:0:0:0:0:1
797|||807|||one more thing, Guoqi, for trades & positions, this Thursday again??|||2015-06-28 16:12:03|||0:0:0:0:0:0:0:1
807|||821|||xxxxxxxxxxxxx|||2015-06-28 16:12:27|||0:0:0:0:0:0:0:1
821|||844|||xxxxxxxxxxxxxx|||2015-06-28 16:14:14|||0:0:0:0:0:0:0:1
844|||864|||xxxxxxxxxx|||2015-06-28 16:15:26|||0:0:0:0:0:0:0:1
864|||880|||one question, ??|||2015-06-28 16:17:44|||0:0:0:0:0:0:0:1
880|||885|||so, I ??|||2015-06-28 18:49:06|||0:0:0:0:0:0:0:1
885|||916||| |||2015-06-28 18:15:47|||0:0:0:0:0:0:0:1
916|||922|||xxxxxxxxxx|||2015-06-28 18:10:41|||0:0:0:0:0:0:0:1
922|||925|||yeah, some of the ?? not working|||2015-06-28 18:11:41|||0:0:0:0:0:0:0:1
925|||936|||I ?? which ones. ?? working or not. |||2015-06-28 18:14:38|||0:0:0:0:0:0:0:1
936|||945|||tomorrow, ?? again, ?? which will not woking. ok?|||2015-06-28 18:14:04|||0:0:0:0:0:0:0:1
945|||962|||move jar, techincal |||2015-06-28 19:29:06|||0:0:0:0:0:0:0:1
962|||972|||system defined views for all ??, yes, for trades , positions, at least ?? structure|||2015-06-28 19:32:00|||0:0:0:0:0:0:0:1
972|||1124||| |||2015-06-28 19:28:32|||0:0:0:0:0:0:0:1
1124|||1833||| |||2015-06-28 15:19:20|||0:0:0:0:0:0:0:1
1833|||3706||| |||2015-06-28 15:18:34|||0:0:0:0:0:0:0:1

[/quote]
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值