-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi,
Similar commands seem to work for me when using the latest toolbox code from svn. Note that the iText.jar file in the lib toolbox directory has been compiled from the jdk15 branch and has the version "iText-jdk15 2.0.7". You can see it using "java -jar lib/iText.jar". I've successfully tested the XML2Bookmark with that version. I also tried to use the official 2.0.7 version compiled with jdk 1.4 and that works too. Can you check the version number for the jar you're using by running: java -jar /home/goerz/bin/iText/iText.jar to make sure it's 2.0.7 and compatible with the toolbox examples. Xavier Michael Goerz wrote: > Hi, > > I'm having a problem with using the XML2Bookmarks tool from the command > line. I was running > > java -cp "/home/goerz/bin/iText/iText.jar" > com.lowagie.tools.plugins.XML2Bookmarks bookmarks.xml in.pdf out.pdf > > and got the following error: > > Exception in thread "main" java.lang.NoSuchMethodError: > com.lowagie.text.pdf.PdfReader.getViewerPreferences()I > at com.lowagie.tools.plugins.XML2Bookmarks.execute(Unknown Source) > at com.lowagie.tools.plugins.XML2Bookmarks.main(Unknown Source) > > > The Java version is: > java version "1.6.0_03" > Java(TM) SE Runtime Environment (build 1.6.0_03-b05) > Java HotSpot(TM) Client VM (build 1.6.0_03-b05, mixed mode) > > iText version is 2.0.7 > > The OS is Suse Linux 10.3 > > Using XML2Bookmarks from inside the GUI works fine. Using other tools > from the toolbox via command line also works (I tested Burst and PhotoAlbum) > > Any suggestions? > > Thanks, > Michael Goerz > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: The Future of Linux Business White Paper > from Novell. From the desktop to the data center, Linux is going > mainstream. Let it simplify your IT future. > http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 > _______________________________________________ > iText-questions mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/itext-questions > Buy the iText book: http://itext.ugent.be/itext-in-action/ - -- Xavier Le Vourch Brittany Software, Inc. <[EMAIL PROTECTED]> PGP Key (ID 0x896C5947): http://brittanysoftware.com/gpg_key.asc Key fingerprint: 73B3 6370 B8C5 4325 F2D8 4115 0372 5805 896C 5947 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHWCnBA3JYBYlsWUcRArr6AJ9QaxxPDFuk7lGOtnLTB6hNJqKDpgCdFK6/ sLBZY1FdQNs4tNUCY9g6wWo= =4lNR -----END PGP SIGNATURE----- ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/
