in Java you must use / or \\ as file separator:

\\server\\directory\\subdirectory\\sample.pdf

On 6/14/07, Jian Yang <[EMAIL PROTECTED]> wrote:
> Hi All,
>   I'd like to open a PDF file using UNC like the
> following:
>
> PdfReader reader = new
> PdfReader("\\server\directory\subdirectory\sample.pdf");
>
> But I got the syntax error complaining about the
> syntax error with regards to '\'.
>
>   Am I doing anything wrong? Can this be done?
>
>   Thanks,
>
>
>
> ____________________________________________________________________________________
> Got a little couch potato?
> Check out fun summer activities for kids.
> http://search.yahoo.com/search?fr=oni_on_mail&p=summer+activities+for+kids&cs=bz
>
> -------------------------------------------------------------------------
> 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/
>

-------------------------------------------------------------------------
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/

Reply via email to