I apologize for the late reply, but I was busy putting out fires (figuratively) 
last week.  I am still catching up on my email.

This is correct, if you are saving directly as opposed to viewing it in Adobe 
Reader and trying to give a decent name for the save-as dialog.  In that case, 
the reader uses the URL to determine the file name (or at least did the last 
time I tried this).  The one way I have found to resolve this issue is to use a 
HTTP handler (http://docs.google.com/View?docid=dchmct9k_9dxkdwk).  This is in 
ASP.NET.  I am not sure what the equivalent would be in JAVA.

I hope this helps.

Thanks, 

Brian

------------------------------

Date: Wed, 24 Feb 2010 17:07:45 +0100
From: 1T3XT info <[email protected]>
Subject: Re: [iText-questions] How to set file name for PDF using
        IText   methods.
To: Post all your questions about iText here
        <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

srins wrote:
> How to set filename using IText methods while saving the PDF file.

That's not an iText question.
It's a general question about web applications.

You can set the filename of a file (any file!) using the 
"Content-Disposition" header. Google for "Content-Disposition" and 
you'll find out more.
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info



------------------------------



------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to