The toURL() method in Image is needlessly complicated and restrictive. Rather than checking if the string starts with various prefixes, a better solutions would be to either just call new URL(string) and trap an InvalidURLException, or minimally check that the string contains the :/ character sequence.
Without doing this, it is impossible to use URL that use a custom protocol. Similarly, the checking of http: in HTMLWorker should be changed to check for the :/ sequence. Thanks. ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ 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/
