Thanks Bruno. Finally I solved it using a jFileChooser and letting the user
to choose where to create the pdf file.
Best regards and thank you for your help,
iago


Bruno Lowagie (iText) wrote:
> 
> muleiro wrote:
>> Yes, that's true, but i think that changing the JVM working directory it
>> isn't the solution because when the application is build, all that is
>> under
>> the build directory is merged in a jar file. And it is inside that jar
>> where
>> i need to write because once the application's running the user wouldn't
>> have the build folder or somehing like this, only the application jars
>> and
>> if i want access this files i need the relative path.
>> 
>> I've tried with FileObject OUT=
>> URLMapper.findFileObject(getClass().getResource("/pdf/OUT.pdf")); but i'm
>> not able to get the FileOutputStream (needed by iText to write the pdf)
>> from
>> this FileObject.
> 
> If I understand correctly, you are trying to write
> a file, and add it to an existing jar? I've never
> done that, and I don't know if it's possible.
> 
> I read that this is part of the build process of
> the application. How are you building the application?
> Using ANT or Maven? If so, you may have to change the
> order in which you are executing the different steps
> of the build process.
> 
> 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/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/write-pdf-file-to-disk-tf2720070.html#a7635205
Sent from the iText - General mailing list archive at Nabble.com.


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