On 09/24/13 01:49, iText mailing list wrote:
On 9/23/2013 10:41 PM, Larry Evans wrote:
Could the problem be the .jar downloaded from
https://svn.code.sf.net/p/itext/code
was built on a windows OS and the font files
are in a different place than on my ubuntu
OS, and that's causing the problem?
The jar is built on Linux, and we used a twist to make
"C:/Windows/fonts" work: we created a directory named "C:" on Linux ;-)
The examples are created with "C:/Windows/fonts" to make it easier for
people working on Windows only. We assume that people working on Linux
are more familiar with how the file system works ;-)
I tried creating C: in root file system; however, I still had to use /C:
to get there, which wouldn't work. However, Judging from
"Listing 11.1 FontTypes":
http://itextpdf.com/examples/iia.php?id=195
I assumed that the search for fonts starts in the itext directory;
hence, there I created the C: directory. Then ran the code, but still
got garbage output, as shown by attached.
I'm still at a loss about how to get the proper output.
Is my guess about itext not finding the proper fonts
a good one, or is there some other possible reason for the
garbage output.
I guess next I'll downloading:
http://softlayer-dal.dl.sourceforge.net/project/itext/iText/iText5.4.4/itext-5.4.4.zip
and try using that instead of the svn code.
Any suggestion for a better course of action would be appreciated.
-regards,
Larry
make run
ls -ld ../../book/*
drwxrwxr-x 3 evansl evansl 4096 Sep 24 13:27 ../../book/C:
-rw-r--r-- 1 evansl evansl 6098 Sep 22 19:31 ../../book/Makefile
-rw-r--r-- 1 evansl evansl 5936 Sep 22 19:29 ../../book/Makefile~
drwxrwxr-x 2 evansl evansl 4096 Sep 22 19:29 ../../book/RCS
drwxrwxr-x 4 evansl evansl 4096 Sep 21 10:27 ../../book/WebContent
drwxrwxr-x 3 evansl evansl 4096 Sep 22 19:08 ../../book/bin
-rw-rw-r-- 1 evansl evansl 2242 Sep 21 10:28 ../../book/build.xml
-rw-rw-r-- 1 evansl evansl 86 Sep 21 10:28 ../../book/changelog.txt
-rw-rw-r-- 1 evansl evansl 94929 Sep 21 10:28 ../../book/examples.xml
-rw-rw-r-- 1 evansl evansl 59 Sep 21 10:28 ../../book/index.php
drwxrwxr-x 3 evansl evansl 4096 Sep 22 19:04 ../../book/lib
-rw-rw-r-- 1 evansl evansl 4462 Sep 21 10:28 ../../book/pom.xml
drwxrwxr-x 16 evansl evansl 4096 Sep 21 10:28 ../../book/resources
drwxrwxr-x 7 evansl evansl 4096 Sep 21 10:26 ../../book/results
drwxrwxr-x 8 evansl evansl 4096 Sep 21 10:27 ../../book/src
ls -ld ../../book/C:/windows/fonts
lrwxrwxrwx 1 evansl evansl 37 Sep 24 13:25 ../../book/C:/windows/fonts ->
/media/7CC295F5C295B3BC/Windows/Fonts
ls -ld ../../book/C:/windows/fonts/*|head
-rw------- 2 evansl evansl 10976 Sep 18 2006
../../book/C:/windows/fonts/8514fix.fon
-rw------- 2 evansl evansl 10976 Sep 18 2006
../../book/C:/windows/fonts/8514fixe.fon
-rw------- 2 evansl evansl 11520 Sep 18 2006
../../book/C:/windows/fonts/8514fixg.fon
-rw------- 2 evansl evansl 10976 Sep 18 2006
../../book/C:/windows/fonts/8514fixr.fon
-rw------- 2 evansl evansl 11488 Sep 18 2006
../../book/C:/windows/fonts/8514fixt.fon
-rw------- 2 evansl evansl 12288 Sep 18 2006
../../book/C:/windows/fonts/8514oem.fon
-rw------- 2 evansl evansl 13248 Sep 18 2006
../../book/C:/windows/fonts/8514oeme.fon
-rw------- 2 evansl evansl 12800 Sep 18 2006
../../book/C:/windows/fonts/8514oemg.fon
-rw------- 2 evansl evansl 13200 Sep 18 2006
../../book/C:/windows/fonts/8514oemr.fon
-rw------- 2 evansl evansl 12720 Sep 18 2006
../../book/C:/windows/fonts/8514oemt.fon
ls: write error: Broken pipe
java -ea -classpath
/home/evansl/prog_dev/itext/svn/sandbox/lje/bin:../../book/lib/iText.jar
lje.ExtractPagesContentSorted
/home/evansl/prog_dev/itext/svn/sandbox/lje/resources/pdfs/i1040.pdf
/home/evansl/prog_dev/itext/svn/sandbox/lje/runs/i1040p41.txt 41
head /home/evansl/prog_dev/itext/svn/sandbox/lje/runs/i1040p41.txt
***Page:41
@ &