Be kind and read carefully
>This code works absolutely fine on Windows server if in path I enter
>“C:\Lotus\Notes\Data\appln\Reports\" + strDate + ".pdf"
The message does not say that Siddhartha has entered such a path on a Linux
machine….
A a guess, I would look into access rights on the Linux box, no?
De : Edward W. Rouse [mailto:[email protected]]
Envoyé : mercredi 16 novembre 2011 15:33
À : 'Post all your questions about iText here'
Objet : Re: [iText-questions] Saving the PDF created on SUSE Linux Server
(updated)
Linux has no concept of C:. If you don’t know that much you really need to hit
the books.
From: Siddhartha Rathi [mailto:[email protected]]
Sent: Tuesday, November 15, 2011 11:55 PM
To: [email protected]
Subject: [iText-questions] Saving the PDF created on SUSE Linux Server (updated)
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));
Document pdfDoc = new Document(PageSize.A4.rotate());
PdfWriter writer = PdfWriter.getInstance(pdfDoc, new
FileOutputStream(path));
pdfDoc.open();
//-- my other code to fill up the PDF
pdfDoc.close();
This code works absolutely fine on Windows server if in path I enter
“C:\Lotus\Notes\Data\appln\Reports\" + strDate + ".pdf" but it is not giving
any error nor it is getting saved on server when it is being run on the Linux
server. Can somebody let me know what can be the issue here.
Thanks.
Regards,
Siddhartha
Founder – Freelancer
Chirayu Softwares
A-103, Aster Tower,
Gen. A. K. Vaidya Marg,
Malad East, Mumbai – 400 097,
India.
) +91 98205 23191
) US No.: +1 609 423 4420
* [email protected]
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
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