> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of robert engels
> Sent: Wednesday, June 27, 2007 10:11 PM
> To: iText here itext
> Subject: [iText-questions] changes to Image.toURL()
>
> The toURL() method in Image is needlessly complicated and restrictive.
Restrictive, yes. Complicated, it has to be.
>
> 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
Catching exceptions takes time and 99% of the time the "urls" are local
files.
> contains the :/ character sequence.
That will allways happens in windows, like "c:/hello.jpg".
>
> Without doing this, it is impossible to use URL that use a custom
> protocol.
>
The toURL() will have to be complicated even further to take care of
that, and it will.
> Similarly, the checking of http: in HTMLWorker should be changed to
> check for the :/ sequence.
>
Images in HTMLWorker are not very consistent, they will have to be
revised.
Paulo
Aviso Legal:
Esta mensagem é destinada exclusivamente ao destinatário. Pode conter
informação confidencial ou legalmente protegida. A incorrecta transmissão desta
mensagem não significa a perca de confidencialidade. Se esta mensagem for
recebida por engano, por favor envie-a de volta para o remetente e apague-a do
seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de
usar, revelar ou distribuir qualquer parte desta mensagem.
Disclaimer:
This message is destined exclusively to the intended receiver. It may contain
confidential or legally protected information. The incorrect transmission of
this message does not mean the loss of its confidentiality. If this message is
received by mistake, please send it back to the sender and delete it from your
system immediately. It is forbidden to any person who is not the intended
receiver to use, distribute or copy any part of this message.
-------------------------------------------------------------------------
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/