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
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 run
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
muleiro wrote:
> Hii 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 i
Use an absolute path. If you don't know what path, neither do we.
Paulo
- Original Message -
From: "muleiro" <[EMAIL PROTECTED]>
To:
Sent: Tuesday, November 28, 2006 6:23 PM
Subject: [iText-questions] write pdf file to disk
>
> Hii think i'm
Hii 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