muleiro wrote:
> Hi....i think i'm fighting against a quite simple problem but i'm afraid i
> can't resolve it.
> 
> I create my pdf file using a FileOutputStream  like this:
> 
> FileOutputStream fos = new FileOutputStream("OUT.pdf");
> PdfCopy copy = new PdfCopy(document, fos);
> (...)
> 
> And iText creates the OUT.pdf as i want but the file is placed in my module
> folder.

That's the working directory of your JVM.

> What i wanted is place the OUT.pdf under the build folder in order
> to be accessed by the user.

Change the working directory of your JVM to that folder.
Read the following tips:
http://www.roseindia.net/java/example/java/io/GetCurrentDir.shtml
http://java.sun.com/docs/books/tutorial/essential/environment/sysprop.html
http://www.iam.ubc.ca/guides/javatut99/essential/system/properties.html
and so on...

br,
Bruno

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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