From: vincent@cubedesigners.com Date: Wed, 5 Oct 2011 15:28:39 +0000 (+0000) Subject: (no commit message) X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=d5e5a3c327166aed126b917b060230aeaa052fa9;p=cubeextranet.git --- diff --git a/fluidbook/tools/fwstk/lib/CopyLibs/org-netbeans-modules-java-j2seproject-copylibstask.jar b/fluidbook/tools/fwstk/lib/CopyLibs/org-netbeans-modules-java-j2seproject-copylibstask.jar new file mode 100644 index 000000000..1c0f59737 Binary files /dev/null and b/fluidbook/tools/fwstk/lib/CopyLibs/org-netbeans-modules-java-j2seproject-copylibstask.jar differ diff --git a/fluidbook/tools/fwstk/lib/avalon-framework-4.1.4.jar b/fluidbook/tools/fwstk/lib/avalon-framework-4.1.4.jar new file mode 100644 index 000000000..0abf0b953 Binary files /dev/null and b/fluidbook/tools/fwstk/lib/avalon-framework-4.1.4.jar differ diff --git a/fluidbook/tools/fwstk/lib/bcmail-jdk16-146.jar b/fluidbook/tools/fwstk/lib/bcmail-jdk16-146.jar new file mode 100644 index 000000000..6bd6765c2 Binary files /dev/null and b/fluidbook/tools/fwstk/lib/bcmail-jdk16-146.jar differ diff --git a/fluidbook/tools/fwstk/lib/bcprov-jdk16-146.jar b/fluidbook/tools/fwstk/lib/bcprov-jdk16-146.jar new file mode 100644 index 000000000..27d3481e6 Binary files /dev/null and b/fluidbook/tools/fwstk/lib/bcprov-jdk16-146.jar differ diff --git a/fluidbook/tools/fwstk/lib/commons-logging-1.1.1.jar b/fluidbook/tools/fwstk/lib/commons-logging-1.1.1.jar new file mode 100644 index 000000000..8758a96b7 Binary files /dev/null and b/fluidbook/tools/fwstk/lib/commons-logging-1.1.1.jar differ diff --git a/fluidbook/tools/fwstk/lib/fontbox-1.6.0.jar b/fluidbook/tools/fwstk/lib/fontbox-1.6.0.jar new file mode 100644 index 000000000..c3492fc29 Binary files /dev/null and b/fluidbook/tools/fwstk/lib/fontbox-1.6.0.jar differ diff --git a/fluidbook/tools/fwstk/lib/jempbox-1.6.0.jar b/fluidbook/tools/fwstk/lib/jempbox-1.6.0.jar new file mode 100644 index 000000000..5ca6d7a58 Binary files /dev/null and b/fluidbook/tools/fwstk/lib/jempbox-1.6.0.jar differ diff --git a/fluidbook/tools/fwstk/lib/nblibraries.properties b/fluidbook/tools/fwstk/lib/nblibraries.properties new file mode 100644 index 000000000..790344a2e --- /dev/null +++ b/fluidbook/tools/fwstk/lib/nblibraries.properties @@ -0,0 +1,2 @@ +libs.CopyLibs.classpath=\ + ${base}/CopyLibs/org-netbeans-modules-java-j2seproject-copylibstask.jar diff --git a/fluidbook/tools/fwstk/lib/pdfbox-1.6.0.jar b/fluidbook/tools/fwstk/lib/pdfbox-1.6.0.jar new file mode 100644 index 000000000..75efe034f Binary files /dev/null and b/fluidbook/tools/fwstk/lib/pdfbox-1.6.0.jar differ diff --git a/fluidbook/tools/fwstk/nbproject/build-impl.xml b/fluidbook/tools/fwstk/nbproject/build-impl.xml index e0ac685fb..7ca68e01b 100644 --- a/fluidbook/tools/fwstk/nbproject/build-impl.xml +++ b/fluidbook/tools/fwstk/nbproject/build-impl.xml @@ -42,18 +42,80 @@ is divided into following sections: - + + + + + + + + + + + + + + + + + + + + + + + + + + - + - + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set platform.home + Must set platform.bootcp + Must set platform.java + Must set platform.javac + + The J2SE Platform is not correctly set up. + Your active platform is: ${platform.active}, but the corresponding property "platforms.${platform.active}.home" is not found in the project's properties files. + Either open the project in the IDE and setup the Platform with the same name or add it manually. + For example like this: + ant -Duser.properties.file=<path_to_property_file> jar (where you put the property "platforms.${platform.active}.home" in a .properties file) + or ant -Dplatforms.${platform.active}.home=<path_to_JDK_home> jar (where no properties file is used) + @@ -185,15 +247,6 @@ is divided into following sections: - - - - - - - - - @@ -202,7 +255,7 @@ is divided into following sections: - + Must set src.src.dir Must set build.dir Must set dist.dir @@ -239,7 +292,7 @@ is divided into following sections: - + @@ -278,7 +331,7 @@ is divided into following sections: - + @@ -335,7 +388,7 @@ is divided into following sections: - + @@ -407,6 +460,9 @@ is divided into following sections: + + + @@ -422,7 +478,9 @@ is divided into following sections: - + + + @@ -447,7 +505,7 @@ is divided into following sections: - + @@ -472,7 +530,7 @@ is divided into following sections: - + @@ -548,7 +606,7 @@ is divided into following sections: - + - + diff --git a/fluidbook/tools/fwstk/nbproject/genfiles.properties b/fluidbook/tools/fwstk/nbproject/genfiles.properties index 00af3e9f5..4731b76e4 100644 --- a/fluidbook/tools/fwstk/nbproject/genfiles.properties +++ b/fluidbook/tools/fwstk/nbproject/genfiles.properties @@ -1,8 +1,8 @@ -build.xml.data.CRC32=5afba316 +build.xml.data.CRC32=1c2c8395 build.xml.script.CRC32=ef618d2d build.xml.stylesheet.CRC32=28e38971@1.44.1.45 # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. -nbproject/build-impl.xml.data.CRC32=5afba316 -nbproject/build-impl.xml.script.CRC32=f0904f14 +nbproject/build-impl.xml.data.CRC32=1c2c8395 +nbproject/build-impl.xml.script.CRC32=244b17d0 nbproject/build-impl.xml.stylesheet.CRC32=0ae3a408@1.44.1.45 diff --git a/fluidbook/tools/fwstk/nbproject/private/config.properties b/fluidbook/tools/fwstk/nbproject/private/config.properties index a7cc32142..5aa2fea7b 100644 --- a/fluidbook/tools/fwstk/nbproject/private/config.properties +++ b/fluidbook/tools/fwstk/nbproject/private/config.properties @@ -1 +1 @@ -config=Extract_Layout +config=Extract_Links diff --git a/fluidbook/tools/fwstk/nbproject/private/configs/Extract_Links.properties b/fluidbook/tools/fwstk/nbproject/private/configs/Extract_Links.properties index fc4404267..509e7b93f 100644 --- a/fluidbook/tools/fwstk/nbproject/private/configs/Extract_Links.properties +++ b/fluidbook/tools/fwstk/nbproject/private/configs/Extract_Links.properties @@ -1 +1 @@ -application.args=--input C:\\Users\\Vincent\\Documents\\links\\document.pdf --extractLinks C:\\Users\\Vincent\\Documents\\links\\p%d.csv +application.args=--input H:\\Documents\\fwstk\\links\\document.pdf --extractLinks H:\\Documents\\fwstk\\links\\p%d.csv diff --git a/fluidbook/tools/fwstk/nbproject/private/private.properties b/fluidbook/tools/fwstk/nbproject/private/private.properties index 75eb4042c..c85e5f3f2 100644 --- a/fluidbook/tools/fwstk/nbproject/private/private.properties +++ b/fluidbook/tools/fwstk/nbproject/private/private.properties @@ -4,4 +4,4 @@ do.depend=false do.jar=true javac.debug=true javadoc.preview=true -user.properties.file=C:\\Users\\Cube\\.netbeans\\7.0\\build.properties +user.properties.file=C:\\Users\\Vincent\\.netbeans\\7.0\\build.properties diff --git a/fluidbook/tools/fwstk/nbproject/project.properties b/fluidbook/tools/fwstk/nbproject/project.properties index e1d9e82f1..6f58e2ccf 100644 --- a/fluidbook/tools/fwstk/nbproject/project.properties +++ b/fluidbook/tools/fwstk/nbproject/project.properties @@ -26,15 +26,15 @@ dist.jar=${dist.dir}/fwstk.jar dist.javadoc.dir=${dist.dir}/javadoc endorsed.classpath= excludes= -file.reference.avalon-framework-4.1.4.jar=H:\\Works\\Java\\jar\\avalon-framework-4.1.4.jar -file.reference.bcmail-jdk16-146.jar=H:\\Works\\Java\\jar\\bcmail-jdk16-146.jar -file.reference.bcprov-jdk16-146.jar=H:\\Works\\Java\\jar\\bcprov-jdk16-146.jar -file.reference.commons-logging-1.1.1.jar=H:\\Works\\Java\\jar\\commons-logging-1.1.1.jar -file.reference.fontbox-1.6.0.jar=H:\\Works\\Java\\jar\\fontbox-1.6.0.jar -file.reference.FWSTK_Resources.jar=..\\FWSTK_Resources\\dist\\FWSTK_Resources.jar +file.reference.avalon-framework-4.1.4.jar=lib/avalon-framework-4.1.4.jar +file.reference.bcmail-jdk16-146.jar=lib/bcmail-jdk16-146.jar +file.reference.bcprov-jdk16-146.jar=lib/bcprov-jdk16-146.jar +file.reference.commons-logging-1.1.1.jar=lib/commons-logging-1.1.1.jar +file.reference.fontbox-1.6.0.jar=lib/fontbox-1.6.0.jar +file.reference.FWSTK_Resources.jar=../FWSTK_Resources/dist/FWSTK_Resources.jar file.reference.Java-resources=../../../../Java/resources -file.reference.jempbox-1.6.0.jar=H:\\Works\\Java\\jar\\jempbox-1.6.0.jar -file.reference.pdfbox-1.6.0.jar=H:\\Works\\Java\\jar\\pdfbox-1.6.0.jar +file.reference.jempbox-1.6.0.jar=lib/jempbox-1.6.0.jar +file.reference.pdfbox-1.6.0.jar=lib/pdfbox-1.6.0.jar file.reference.Works-Java=../../../../Java includes=** jar.archive.disabled=${jnlp.enabled} @@ -85,7 +85,7 @@ main.class=com.fluidbook.fwstk.Main manifest.file=manifest.mf meta.inf.dir=${src.dir}/META-INF mkdist.disabled=false -platform.active=default_platform +platform.active=JDK_1.7 run.classpath=\ ${build.classes.dir}:\ ${javac.classpath} diff --git a/fluidbook/tools/fwstk/nbproject/project.xml b/fluidbook/tools/fwstk/nbproject/project.xml index a70a3bf29..fecc0cd7d 100644 --- a/fluidbook/tools/fwstk/nbproject/project.xml +++ b/fluidbook/tools/fwstk/nbproject/project.xml @@ -4,10 +4,14 @@ fwstk + + + .\lib\nblibraries.properties + diff --git a/inc/ws/Util/fontextractor/class.ws.pdf.font.php b/inc/ws/Util/fontextractor/class.ws.pdf.font.php index f33251a41..adf68bb64 100644 --- a/inc/ws/Util/fontextractor/class.ws.pdf.font.php +++ b/inc/ws/Util/fontextractor/class.ws.pdf.font.php @@ -102,13 +102,13 @@ class wsPDFFont { $fontforge->setArg(null, $font->italicAngle); $fontforge->setArg(null, $font->ascent); $fontforge->setArg(null, $font->descent); - if ($font->firstChar == 0 && $font->firstWidth == 500) { - $fontforge->setArg(null, '-'); - $fontforge->setArg(null, '-'); - } else { - $fontforge->setArg(null, $font->firstChar); - $fontforge->setArg(null, $font->firstWidth); - } + //if ($font->firstChar == 0 && $font->firstWidth == 500) { + $fontforge->setArg(null, '-'); + $fontforge->setArg(null, '-'); + //} else { + // $fontforge->setArg(null, $font->firstChar); + // $fontforge->setArg(null, $font->firstWidth); + //} $fontforge->execute(); $this->addToLog($fontforge); }