On Tue, November 15, 2011 06:51, Siddhartha Rathi wrote:
> Hi All,
>
> I have written an agent in Ltus Notes in JAVA for creating and saving the
> PDF file. But when I am doing the same it is giving me no error but file
> is also not getting saved. Can some one help me what I must have done
> wrong I am also appending the code which I have used to save the file on
> server.
>
>               String path = "/local/notesdata/appln/Reports/" + strDate +
> ".pdf";
>             File PdfAtt = new File(path);
>
>             Document pdfDoc = new Document(PageSize.A4.rotate());
>             PdfWriter writer = PdfWriter.getInstance(pdfDoc, new
> FileOutputStream(path));
>
> But it is not giving any error nor it is getting saved on server. Can
> somebody let me know what can be the issue here.

Hi,

You didn't post your complete code, for example the part where you close
the document. Please ask your question again but with more complete and
functional code.

@thenewmexican64 you may be right but I felt that an indirect approach was
more appropriate.

-- 
Amedee


------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to