Saving a pdf when dynamically build by a servlet

Hi,
How is it possible to initialize the "File name" field when saving a pdf content ?
I'm generating reports in a pdf format with a servlet. This way, the servlet is called by a Url and the result is displayed directly in the browser.
Now, if I click on the save button, the opened window suggest the url (http://....) as file name.
Is it possible to send a default file name that is not trhe url ?

I was interested in your question, since we have a similar application where I work, and every PDF always defaults to the name of the servlet when attempting to save it.
I don't believe it would be possible to change that. The PDF viewer (Acrobat in my case) doesn't know or care whether the content is dynamically generated or a static .pdf file, it just knows that the browser went to a certain site and retrieved a file for it to open. So it appears to me that the decision of what default name to give the file is made at the browser/viewer level rather than by the servlet. I could be wrong, of course--I'd be glad to see any other suggestions.

Similar Messages

  • Print to PDF - using Snow Leopard (Saving a PDF file when printing is not supported. Instead, choose

    i have a PDF form that i created that is used as a custom proposal that my company sends out to potential clients. the form in its editable state is only used internally. we recently upgraded to snow leopard, but prior to the upgrade, we were able to fill the custom proposal form out using adobe reader, and, as you well know, we weren't able to save that edited document as a PDF with the custom form fields filled out. our work around using adobe reader was to print to a pdf using the adobe pdf printer in the printer dialog. with the addition of snow leopard, however, instead of choosing the adobe pdf printer, we were to choose PDF from the bottom left corner, then Save As PDF, and it would spit out an uneditable pdf that then allowed us to email it to the potential client without them being able to edit it as well as have an internal, digital copy for our records instead of having lots of paper floating around (i know this is also doable using security that disallows the client certain editing privileges, but printing to a pdf is much quicker and more efficient, and the pdf security isn't really that secure at its best).
    in any case, i came across this gem of a post here on the support forums that installs another option from the PDF drop down on the bottom left of the print dialog menu that reads Save As Adobe PDF and is supposed to do exactly what i am trying to get it to do...print to a pdf file from adobe reader.
    http://kb2.adobe.com/cps/509/cpsid_50981.html    
    once i updated to acrobat 9.2 (as the link above suggests 9.1), however, the Save As Adobe PDF does appear in the print dialog menu, but it still gives me the same error that acrobat 8 - 9 gave me while using Snow Leopard — Saving a PDF file when printing is not supported. Instead, choose File > Save — and as i've already explained, you can't save an edited pdf form in reader (as i am the only one in the office with acrobat) and still keep the fields as you've entered them in. the only work around is to print to a pdf but is apparently having some recent problems.
    using acrobat, however, i know that i can save the editable pdf as a new file with the fields customized as i have left them, but it still saves it as an editable pdf and the print to a pdf option still remains the best option...that way we have digital copies internally that are uneditable that can be printed at any time or emailed to the client.
    how can i do print to a pdf, based on what i've written above, using snow leopard and acrobat and reader?

    A simple way is to flatten the form fields, which converts the field appearances to regular page contents. You can do this with JavaScript or PDF Optimizer (Advanced > PDF Optimizer > Discard Objects > Flatten form fields). A very nice script that adds a custom menu item can be found here: http://www.uvsar.com/projects/acrobat/flattener/

  • Saving a PDF file when printing is not supported. Instead, choose File Save.

    I am using Mountain Lion (10.8.2) and I was using Adobe Reader version 9. In the past, I've always been able to print to file using the File -> Print dialogue but all of a sudden it stopped working. I read somewhere that installing the latest version of Adobe Reader (version 11) would remove the old printer, so I did so. It took me about an hour on version 11 to even find the pdf print to file option, but I am getting the same message. For what it's worth, when I try print to file from Microsoft Word, I have no problem. I have no idea why things changed all of a sudden, but does anyone have any idea how I can get this working again?

    I checked with Adobe.  No luck. 
    Allow me to clarify my problem: 
    I have Adobe Reader XI. I also use a Mac--imac and a MacBook Pro.   My adobe was updated on 12/24.  Prior to that point, I could open my print dialogue box and there was a PDF tab on the bottom left.  In the drop down menu there were many choices, including but not limited to Open in PDF Preview, Print PDF, Save PDF, email PDF.  If I selected one page of 30 pages from a document saved in Adobe, I could extract just that one page and save it or email it, without having to send the entire document.   After the update, when I open a PDF file using ADOBE READER XI, and then open the print dialogue box, and follow those same steps, I get the message "Saving a PDF file when printing is not supported. Instead, choose File > Save."   My question is why is this feature now unavailable and is there a way to fix it? 
    The answer I got from Adobe was that Adobe never had this function, so it must have been via my print or preview programs..which are apple.  Does anyone have any thoughts?
    Thank you.
    https://forums.adobe.com/message/7124567 

  • Saving a PDF file when printing is not supported.

    Hi Guys,
    I upgrade from leopard to snow and now I don't have the possibility anymore to to print PDF as a PDF.
    Before I was going to print and then choose save as a pdf and everything ok.
    Now after the upgrade to snow every time that I am going to print a pdf from a pdf (acrobat 9 and X) I received this msg "Saving a PDF file when printing is not supported. Instead, choose File > Save "
    Why that happened ? how can I fix it?
    The thing is that I have a pdf form (contract) that I have to fill up and print it as a pdf.
    Now I can't do that I can save only the form with the fields unlock.
    thanks you in advance for your help.
    Xoxo
    Fotis

    Ah.. this is so annoying filled in a long form.. which doesn't allow saving.. I assumed as normal with this type of form I could print to PDF and at least get a electronic copy.. but no, I made the mistake of installing Adobe Reader.. and it has screwed up the print options.. when I try to save as PDF from the print menu I get the helpful suggestion
    "Saving a PDF file when printing is not supported. Instead, choose File > Save."
    When I do as suggested.. it helpfully tells me that it will only save a "blank form"..
    Adobe has badly messed up their reader.. I now need to print out and then scan this document to get the electronic copy I need.. I will be uninstalling promptly after this fiasco..

  • Error message when saving a PDF to PNG: Error attempting to write file.

    I get an error message when saving a PDF to PNG. JPG and TIFF works, but no PNG.
    Disk space is sufficient! 100GB of 250
    A few weeks ago it was no problem to save as PNG. But now! (Perhaps from last update?)
    Messages:
    When clicking "Ignore":
    Adobe Acrobat XI Standard
    Version 11.0.09

    I have this issue too, but my colleagues do not have this issue(we have same Acrobat Pro 11.0.09). I am sure this issue happens only you updated to 11.0.09, because when you use Windows Restore back to 11.0.08, no issues.

  • When saving a PDF from a FrameMaker book, is it possible to set document filenames as bookmarks in the PDF?

    When saving a PDF from a FrameMaker book, is it possible to set document filenames as bookmarks in the PDF? Currently when I have a Framemaker book that I want to save as a PDF, I choose Save Book As and then choose PDF for the file format. A dialog box comes up in which I can choose the Bookmarks tab and choose which tagged content I want to be made into bookmarks in the PDF file. What if I would rather have the filename of a document rather than the chapter title be a bookmark in the PDF? Is that possible? Where would I choose that option? Thanks!

    There are two ways that you could do this. You can either use postscript text frames and enter the correct pdfmark entries to show the file name with the corresponding actions (i.e. where to go in the PDF) or you can use hidden text in FM and the "Filename (Short) " variable in a unique paratag to be picked up by FM's bookmark creation.
    To go the pdfmark route, see http://www.pdflib.com/fileadmin/pdflib/pdf/pdfmark_primer.pdf for details and also consult the Adobe Pdfmark Reference manual (http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/pdfmark_reference.pdf).
    The hidden text route would use FM's Color Views to specify a colour as Invisible. This will make the content visually disappear from the screen (and any output), but FM will still be able to read the contents of any text that is coloured with the Invisible colour(s).
    1. Pick or create a colour that you want to be invisible. [Magenta is usually a good bet and stands out visually].
    2. Set that colour to be invisible in View 1 and visible in View 6. [you can use the shortcut <esc> v 1 and <esc> v 6 to toggle between the views.]
    3. Create a paratag to use for the filename and set the font colour to use the invisible colour.
    3. In the title of each chapter file, drop an anchored frame that is set to be outside of the text frame [so it won't interfere with any other content].
    4. In that AFrame, insert a text frame and use the invisible paratag defined in step 3.
    5. Insert the Filename (Short) variable in that text frame.
    6. Repeat steps for all files to be included in the bookmarks.
    When creating the PDF bookmarks, select only the paratag used for the invisible colour.
    Don't forget to toggle the View to be invisible (i.e. <esc> v 1  - this also works at the book level for all files in the book).

  • AcroPro9, snow leopard, "Saving a PDF file when printing is not supported"

    Hi,
    I have AcroPro9.1.3 (and 8 and 7 and Dreamweaver CS3, and probably other stuff too) on Snow Leopard (10.6.1).
    I've read about de-installing the Acrobat printer and using "save as Adobe PDF" from the PDF button on the print menu.  However, when I try this, I'm told "Saving a PDF file when printing is not supported".  Note that this is AcroPro9, not AcroReader.  I get the same message when I try any of the other options under the PDF menu on the printer menu in Acrobat.  In other applications, tho, (eg powerpoint), the PDF button works fine.
    Before the upgrade, the PDF button on the print menu didn't work either (same message), so I used the Adobe printer, but now I can't.  I had always assumed that AcroPro was stopping me from using Apple's PDF generator in favour of the Adobe one.  But maybe some of my settings are wrong.
    I now cannot print to PDF from Acrobat.  Help.  There are 120 fourth year software engineering students who will appreciate any help I get, as I can then post my recent lecture notes for them.
    (What I really want to do is to take my powerpoint slides and print 4-up versions directly.  But the PPT idea of 4up wastes a lot of space, so I generate 1up PDF, and the 4up PDF from that using Acrobat.  At least, I used to.  It was so much easier in the old days with Latex and psnup ...)
    -- Mike G.

    My current solution is to print from Preview instead (which will let me use the Adobe print facility, unlike Acrobat itself).
    In fact, I pretty much have no need for Acrobat at the moment.
    Adobe and Apple between them seem to have some real problems with Snow Leopard.  I can't get Dreamweaver to run anymore without immediately crashing (yes I looked through the help forums, deleted settings, etc etc).  So I'm now looking for a replacement tool for Dreamweaver and will likely use that from now on.
    Adobe is not looking very good to me at the moment.  YMMV.
    -- Mike

  • Message error: "Saving a PDF file when printing is not supported. Instead, choose File Save."

    I have 2 problems creating a .ps file.
    As i know, there are 2 ways of creating a Postcript file from a PDF.
    The first is from the Print monitor. I go through menu File/Page Setup i give the exact dimensions from my spreaded pages and after that i go to Print and when this window opens,
    i go down and left and i open the pop-up menu on"PDF" and i choose "Save PDF as Postscript"
    There is where i get the above error message :
    "Saving a PDF file when printing is not supported. Instead, choose File > Save."
    And the second scenario, i get an equal problem.
    If i go to Page setup and give the right dimensions of my spreaded document, after that i go to the File/Save as command, there is choose from the bottom pop-up menu, the option at Format: Postscript
    If i do that i get the following message:
    "The document could not be saved. An internal error occured."
    What is wrong with all this?
    Can anyone help me out?
    System preferences.
    Mac OS X 10.4.11
    Acrobat professional 8.1.2
    Thank you

    Jon Bessant asked:
    "Does this occur on every PDF file? The internal error message that is ..."
    Yes, it happens on every PDF

  • When saving a pdf the objects on the page appear offset of the page boundries.

    This happens mostly in illustrator but it just happened again to me while printing a .ps booklet out of indesign and converting to a pdf using distiller.
    See the image below:
    The left shows my InDesign Document. On the right is the pdf that results from the save. As you can see the page boundaries are being completely disregarded when saving the pdf and everything is equally shifted down and to the right.
    Here is an example of me having the same problem in illustrator:
    As you can see there is sometimes zero correlation between what is on the artboard and what page the objects end up on in the pdf.
    This problem also has another strange symptom, it seems to have to do with dragging images from firefox onto an artboard in illustrator. The image is place automatically in the center and all objects in the file move together in one direction. see before and after photos below:
    Before:
    After image dragged in:
    You can even continue to drag images in and it will move in the same direction the same amount every time:
    I'm running Adobe CS6 on OSX 10.9.1.
    Thanks in advance!

    In so many words: We can't know. You have not provided any details about your exact settings, what version of Acrobat, your placed images, color settings, color profiles and a million other things including perhaps providing your test fioles for inspection by other people. That aside simply ask in teh relevant ID/ AI/ Acro/ PDF forums. This place here is a dead place and only meant for general sales, install and activation questions, not specific workflow questions.
    Mylenium

  • Form Builder crashes while saving .fmb file when connected to db

    Hi,
    I am getting error The instruction at "0x679c352c" referenced memory at "0x0000001c". The memory could not be "read".
    Forms version is 6.0.8.11.3 and database version is 10.2.0.3.0
    I am doing the following steps:
    1) Open .fmb file in forms builder
    2) Connecting to database
    3) Making some changes in form
    4) Compiling (Ctrl+Shift+K) and generating form (Ctrl+t)
    5) Saving form <--- Here I am getting the error and form crashes
    If I do not connect to database then builder is allowing me to save the file
    1) Open .fmb file in forms builder
    2) Making some changes in form
    3) Saving form (Successful)
    I did some exercise just as a guess that may some part of the form is causing this error. I full expanded all components of the form i.e. blocks, canvases, triggers etc.
    This exercise produced that 3 program units were giving same error while full expending those. I deleted those 3 program units and re-created them. Now it is not showing me this memory error while full expanding all program units. I can now fully expand my full form.
    But I am still getting this error while saving the changes when I am connected to database.
    Please help.
    Regards,
    Edited by: rawat75 on Sep 2, 2011 7:13 PM

    Hi Experts,
    We are getting the same issue. Our form builder crashes once we open our custom form
    in form builder.
    Server shows:-
    Forms 6.0 (Forms Runtime) Version 6.0.8.28.0 (Production)
    Form Builder shows:-
    Forms [32 Bit] Version 6.0.8.11.3 (Production)
    How to upgrade the form builder version?

  • Using Fields from PDF when saving

    Im looking on how to use fields in a pdf form when saving the form.
    ex. Incident Report
    Staff open up the form. Put in the information. Want it so when they save it puts the clients name and date in the save as. So they open Incident_Report.pdf when they save it would be Incident_Report_ClientsName_Date.pdf Yes the staff could type that in that way but want to make it as easy for everyone involved.

    So let's say you have the following fields in your file:
    Incident_Report
    ClientsName
    Date
    You can then add this code to the file's WillSave action (under Tools - JavaScript - Set Document Actions):
    var newFileName = this.getField("Incident_Report").valueAsString + "_" + this.getField("ClientsName").valueAsString + "_" + this.getField("Date").valueAsString + ".pdf";
    app.response("Please copy the text below and use it as the new file-name:","", newFileName)
    Of course, you can adjust the message to the user, and even the format of the file-name, although I've used the format you specified.

  • Gaps in-between  livepaint shapes when saving to PDF

    Im using CS6 and when saving to PDF my live paint objects have a slight gap inbetween the shapes in the live paint object. They do not appeare in the illustrator file or when saved as jpeg, png, etc only PDFs. I have been using Illustrator for a couple years now and this has not happened in previous versions I've worked with (CS3, 4, and 5)
    Thanks

    The thin lines around the rings are an artifact in pdf preview. Thi si the saem problem  http://helpx.adobe.com/indesign/kb/thin-white-dark-lines-stitching.html
    You may be able get rid of them by changing your acrobat settings such as turn off smooth line art.

  • Swf saved as pdf not displaying when opened

    Hi All,
    I am in the process of creating a media kit for my company.  The plan is to be able to send out a link to the pdf file saved in our site files so that potential clients can click and view or download the pdf.  I have saved the pdf in my site files however; when you go to the link (http://www.hobnobtv.com/pdf/hobnobtv-media-kit.pdf) it only opens a white blank pdf file.
    Here are the steps i've taken to create the file:
    I have created the 10page booklet using InDesign CS4 and added the page turn page transition on all the pages.
    I exported the file as swf and then opened the swf in Adobe Acrobat 9 Pro.
    When opening the swf in Acrobat the activation setting I choose are:
    Enable when: The page containing the content is opened
    Disable when: The page containing the content is closed
    Save the pdf file
    Uploaded to the site
    What could be causing the pdf to appear white and blank?  Is there a better way to accomplish the goal?
    I look forward to hearing others thoughts!
    Rebecca

    Thank you for the response!
    Actually, I finally realized (and i'm a little embarassed to admit) that when I click on the link for the pdf, my default program to open the file was set to Preview rather than adobe acrobat or reader.  So now that I have it set to Acrobat I see it ok.
    I have tested the swf file by itself and it does work.  The file uses the Page Turn transition affect, so the user needs to click the bottom right corner of each page to turn (or they can click and drag the page open).  I did notice when the pdf was opend the little note I included in the bottom right of the first page does not show (it reads "click here to turn page"- as a prompt for the user).  I may have to move that up a little bit so it shows.  Also, if you hover over the bottom right corner of the right page, you should start to see the page corner curl, this is hard to see at this point (you can see it great if you click the zoom in option once) Maybe i'll have to reduce the size of the swf when making it a pdf to see if that works so the user doesn't have to adjust the page to see the affect.
    I'll see how that works.
    Rebecca

  • Incorrectly coloured text when saving to .PDF using Photoshop CS4

    I am using Photoshop CS4 on Windows 7, and have designed my own business card.
    When saving to .PDF to send to printers I am finding that a small section of text is saving with a white section to it, for example out of the 3 lines of text on the card the bottom left hand corner of the & sign I have in the design is coming out white, the rest of the text is a golden colour.
    I have tried searching on this forum and on google but can't seem to find anyone with my actual problem so unsure where to go.
    Any help much appreciated.
    Thanks

    Mylenium wrote:
    Well, you could change the native text color instead of using layer styles, could you not?
    Mylenium
    Or make the Type and Hyphen layers into a single Smart Object and clip a yellow layer to it.

  • Pictures are not shown when saving to PDF.  Cannot Preview Print Job.

    Help! Pictures are not shown when saving to PDF.  Cannot Preview Print Job.

    I guess you need to fix it
    Or if you would like some help provide some information - there are no mind reader supporting this forum and we can only work with the information you give us - right not that is "it does not work"
    iPhoto has no "save to PDF" function - exactly what are you doing? and what exactly do you want to do?
    LN

Maybe you are looking for