-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
You will not be able to mix and match classes from the two packages, even if their code is identical except for the package name. That's a feature of the Java classloader and there is no way you'll manage to cast from one package to the other. You should work with the renamed packages exclusively or make sure that the only communication between the two libraries are complete pdf files (in a byte array for instance) and not low level items like Document or Section as those will be incompatible. If you only exchange pdf documents, you should also update the real iText library to 2.1.0 to make sure you get the benefits of the newer library. Best regards, Xavier Le Vourch lakota wrote: | Hello | | I have problem. I have a document with several sections. | | I am working with some library for example this name yupi.jar | inside od this package is the complete structure of itext 1.3 pbut with | other packages names. | | My document has several sections, I am arranged one of them. But I use | the real package lowagie itext 1.3 | | I have a problem with the compatibility with the names....now | | new yupi.text.Document ------other parts of the project | | new com.lowagie.text.Document;--------------I use this | | The problem is the castException...of course....but how can i join both | libraries....with diferent name....in theory have the same structure | | thanks | | | ------------------------------------------------------------------------ | | ------------------------------------------------------------------------- | This SF.net email is sponsored by the 2008 JavaOne(SM) Conference | Don't miss this year's exciting event. There's still time to save $100. | Use priority code J8TL2D2. | http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone | | | ------------------------------------------------------------------------ | | _______________________________________________ | iText-questions mailing list | [email protected] | https://lists.sourceforge.net/lists/listinfo/itext-questions | | Do you like iText? | Buy the iText book: http://www.1t3xt.com/docs/book.php | Or leave a tip: https://tipit.to/itexttipjar - -- 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 iD8DBQFIBANfA3JYBYlsWUcRAjjvAJ9skmya3ebtquLZ2KaGG4iXkr3JZQCglkcZ pLjZ86k86bj1SKrTO9F/rcU= =fB0K -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Do you like iText? Buy the iText book: http://www.1t3xt.com/docs/book.php Or leave a tip: https://tipit.to/itexttipjar
