Printing a PDF from JSP file.

Hi there,
I would like to automatically print some PDF files residing on my computer when the user clicks PRINT submit button on my JSP page without any print dialog coming up or with it. Is it possible?
Thanks,

No

Similar Messages

  • I am trying to create a print ready PDF from a word file with unacceptable results.

    I am trying to create a print ready PDF from a word file with unacceptable results.
    The word file has a trim size of 6” x 9”. It has been set to mirror margins with the inner, top and bottom margins set to 0.75”, the outer margin is set to 0.5” and the gutter to 0.14”.
    It doesn’t matter if I create the PDF from inside Word, or open Acrobat Pro 11.0.9 and click Create From File, while the resulting document size is correct and the odd numbered pages reflect the correct margins, the even numbered pages do not. This results in some text near the outer margin, as well as the page numbers being omitted.
    Does anyone know how to correct this?
    I just noticed that some of the odd numbered pages' text is also cropped. Apparently Acrobat is refusing to set side margins to smaller than 1" (@ 3cm).

    I'm away from my printer, so I'll try it later. Even so, the proposed test is irrelevant. I operate a small publishing house and am trying to upload certain novels to Ingram, the largest book distributor in the world. The specifications I've set are the specifications they've asked for. Since they've said that the results I'm obtaining are unacceptable, and since they demand submission in PDF form, this renders Acrobat Pro for Mac completely unacceptable for anyone in the publication industry. As far as I can tell, Adobe has a serious bug here that it needs to fix—and at once.

  • Printing a PDF from a PDF generates a log file

    I have pdfs that get generated from a web site and for whatever reason when I go to print them to pdf I just get a log file. I can print to pdf from any other pdf file. I need to do this so that it basically flattens the pdf and the end user can't see where I have typed or added a text box to blank out stuff.
    I've tried examining the doc and stripping it of everything.
    I've tried making it compatible with Acrobat 8 v1.7
    I've tried opening in Acrobat STD, no security set and resave and yet when I open it backup the minimal security settings are back.
    I have acrobat 8 std, and reader 8. The original pdf was v1.3, produced apparently from the web site with GPL Ghostscript 8.15, everything is allow in security except doc assembly, commenting, signing, creation of template pages.
    Any help anyone can give would be greatly appreciated.
    Thank you,
    George
    Here is part of the error log:
    %%[ ProductName: Distiller ]%%
    %%[Page: 1]%%
    %%[Page: 2]%%
    %%[Page: 3]%%
    %%[ Error: limitcheck; OffendingCommand: ;#2323#2323#2323#2323#2323#2323#2323#2323#2323#2323#2323#2323#2323#2323#2323#2323#2323#23 23#2323#2323#2323#2323#2323#2323#2323#; ErrorInfo: DictCRC --nostringval-- ]%%
    Stack:
    58
    [/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
    /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
    /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
    /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
    /.notdef /.notdef /.notdef /.notdef /;#2323#2323#2323 /.notdef
    /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
    /.notdef /.notdef /.notdef
    /;#2323#2323#2323#2323#2323#2323#2323#2323#2323#2323#2323#2323#2323#2323#2323

    There is one on the fonts tab of the settings. This one is for problems with embedding and says to create the PDF anyway. Font embedding with unlicensed fonts is a common problem for failure in the creation process and that is why I was suggesting it. Also, your discussion of security raises a flag. It suggests that there is some security setting and that may be the issue.

  • Printing to PDF from AI makes Random Thicken Lines

    This is my first time ever posting because after seaching this forum over and over...I can't find my answer.
    Problem: I am working on an AI file created in CS3 that contains linework from AutoCad 2008. I did not import this linework because I didn't feel like redoing all the lineweights, instead I just printed a pdf from AutoCad and opened it into Illustrator. All of that worked very well.
    The problem arises when I want to save as a pdf or print to pdf from Illustrator once my drawing is done. Some of the linework that originated in AutoCad is randomly thickened in the middle. So a segment of the line that has a stroke of .48pt when printed shows up like the middle of the line segment has bulged out to 6pt stroke. Very random lines all over the drawing.
    I have looked for inconsistancy in both the Cad file and AI file to determine what could be making these lines "bubble" in the middle.
    I will post the Ai file and pdf if it helps...I am desperate for a solution as this problem is super bizarre and really slowing me down. Has anyone had this problem and has a solution?
    thanks in advance

    General Acrobat Problem Steps
    If you are having problems creating a PDF, there are two steps you should do FIRST
    Go to the appropriate vendor web site and apply all updates to the program you are using (several recent messages have concerned problems with MS Office conversion, with the response that different versions of Office have different BUGS that must be fixed by a download from Microsoft - and MS Office products are not the only ones which may, from time to time, need to be updated to work properly)
    Apply all updates IN NUMBER ORDER
    Acrobat Update http://www.adobe.com/support/downloads/product.jsp?product=1&platform=Windows
    Also, for Office 2007, see if this Microsoft product will work for you
    http://www.microsoft.com/downloads/details.aspx?FamilyId=4D951911-3E7E-4AE6-B059-A2E79ED87 041&displaylang=en

  • When trying to print to PDF from a sales program we use it keeps throwing errors

    When several people try to print to PDF from MAS90, it will save it and create a file as it normally does. However, it does not open in Acrobat 9 Pro as it normally does, and displays the famous error "Acrobat could not open 'xxxx.pdf' because it is either not a supported..."  Yet when you manually open the file from the file system, it opens just fine.
    So to rehash what I just said, when I print to pdf, it asks me where to save, the notification said the printing completed, adobe opens and displays error. If you click on the file, then the file opens just fine.
    However several other people do not have this error while trying to print to file from mas90. Does anyone out there have any idea what could possibly be causing this error to be displayed?

    Hi ftd12300,
    Are you saving the PDFs you're creating to a network drive or are they being saved locally? 
    Do you have this problem when creating PDFs from other applications such as Notepad?
    -David

  • Print to PDF and specify file name.

    Hardware/Software Details:
    MacBook 2GHz Intel Core 2 Duo
    OS 10.5.5
    Adobe Acrobat Professional 8.1.2
    Hey all,
    I'm a teacher and I've been scripting PDFs for use as marking sheets for assignments. What I'm trying to achieve is a situation where I tick all the boxes, marks are calculated and comments filled-in using my form fields (which all work fine) and then produce a PDF from that file with the student's name as the new file name (which is where I'm stuck!).
    In the past, I've had a button that on mouseOver brings the field with the student's name into focus, mouseDown evoked the File:Copy menuItem (copying the student name to the system's clipboard) and then mouseUp which triggered File:Print from which I would choose 'Adobe PDF 8.0' as the printer, hit Save, paste the student's name as the file name and choose the appropriate directory.
    File:Copy is no longer a "safe" menu item according to the latest versions of Acrobat, so I'm having to manually copy the name which is complicating the process further.
    I'm working on a script activated by the mouseUp of a button in this PDF which is currently looking like this:
    >var pp = this.getPrintParams();
    // format name to remove spaces and commas
    var studName = this.getField("Name").value.split(",").join("_").split(" ").join("");
    pp.interactive = pp.constants.interactionLevel.silent;
    pp.printerName = "";
    pp.fileName = studentName + ".ps";
    this.print(pp);
    Although the console will list 'AdobePDF8' as one of my printers, I've since discovered that "the destination printer cannot be set through this property in Mac OS" :( . I can set it as my default printer to work around it, but I still can't dictate the name of the new file. So, I've resorted to printing to PostScript with the aim of running them all as a batch through the AdobePDF8 printer later, except there's still a few problems.
    The name of the PostScript file won't work when I try to include the value of another variable (var studentName)
    The fonts in the PostScript files that it does produce get substituted with Courier and look terrible
    Both the API Reference and the Developer Guide seem to indicate that you can print to a file rather than a printer, but both only seem to mention PostScript file using this method.
    Is there another way to do this? If not, is there a solution to the two problems I mentioned?
    Cheers,
    Chris

    Ok, I've pursued the SaveAs method (as George suggested) with moderate success with the following code (secure function names have been changed ;) ):
    config.js file script:
    >myTrustedSaveAs = app.trustedFunction( function ( doc, studName )
    app.beginPriv();
    doc.saveAs({
    cPath: studName,
    bCopy: true,
    bPromptToOverwrite: true
    app.endPriv();
    myTrustedOpenDoc = app.trustedFunction( function ( path )
    app.beginPriv();
    app.openDoc({
    cPath: path
    app.endPriv();
    Button's onMouseUp script:
    >// get student name and turn it into a file name
    var studFile = this.getField("Name").value.split(",").join("_").split(" ").join("") + ".pdf";
    // get the current document's directory path
    var origFile = this.path;
    var pathBits = this.path.split("/");
    pathBits.pop();
    // whack 'em together
    pathBits.push(studFile);
    var studFilePath = pathBits.join("/");
    // toss the form fields and stuff
    this.flattenPages({
    nNonPrint: 2
    // save the new file
    myTrustedSaveAs(this,studFilePath);
    // open the original again (not working)
    myTrustedOpenDoc(origFile);
    // close the one I just saved
    this.closeDoc(true);
    This is what happens:
    Button is clicked,
    All the form fields and buttons are removed,
    It produces a file with the new file name (e.g. Lawrence_Chris.pdf) next to the original,
    The file closes
    I'm pretty sure that once the SaveAs runs and the new file is created, I actually still have the original file open instead of the that was just saved. This would explain why the openDoc command doesn't seem to do anything because the file it's opening is already open. The closeDoc then runs and of course I then have no open documents!
    So, now I either need a way to revert the open original file so I get all of my form fields back and don't have to reopen it, or a way to close and then immediately open the file without saving changes. :/
    Any ideas?
    slight inconvenience of needing a separate .js file written for the user's JavaScript folder before launching Acrobat to overcome security restrictions. File sizes only seem to get down to about 376KB as opposed to the 40KB files that the AdobePDF8 printer spits out. :(

  • My Mac won't print a pdf from the web

    My iMac will not print any pdf from the web. The printer (an ho Photosmart plus) will only print a blank shet of paper.

    Try saving the file then, then open Preview and open the file and try printing again. If if the quality is still bad then it's the file itself.

  • Why can I not print a PDF from an email?

    Why can I not print a PDF from an email any longer?

    Can you explain in better detail?
    Is it when you open the file attachment and attempt to Print?
    Is it right-mouse clicking and attempting to Print?
    Is it when you print the email itself and expect the attachment to Print?

  • I am unable to print a pdf from a website through Adobe Reader on my mac. It keeps telling me that no pages have been selected

    I am unable to print a pdf from a website through Adobe Reader on my mac. It keeps telling me that no pages have been selected - I have uploaded the latest version of Adobe with no luck and have never had this issue before !

    Hi bengaunt ,
    Thank you for posting on the Adobe forums, you can try printing as an image.
    Open the file>Print>advanced>check the box "print as an image" OK
    Thanks,
    Vikrantt Singh

  • How do you print a pdf from Windows 8?

    How do you print a pdf from Windows 8?

    What is your operating system?
    Is this a local or online PDF file?  If online, in what browser?

  • How to print a Pdf from Java script

    Hi,
    I need to print a pdf from java script. In java script i have url of pdf. Is there any way to print pdf from java script?
    I am able to print word doc by ActiveX. is there any activeX or something else which do the same thing for pdf?
    Any help heartily esteemed to me.
    Thanks
    Kamlesh Sharma

    you are cross postin .. your thread has been answered in the jsp jstl forums

  • When i print a pdf from preview it prints strange characters - it looks fine on screen

    when i print a pdf from preview it prints strange characters - it looks fine on screen

    You can also try opening the PDF with preview, then doing a copy and paste to TextEdit and printing from there.
    Adobe makes it easier, but you do have software to accomplish this.
    Only download Adobe reader from this site, to avoid "fakes/spoofs/malware" that will cause damage to your machine.
    http://www.adobe.com/support/downloads/product.jsp?platform=macintosh&product=10
    Hope this helps

  • Unable to print to pdf from any of my applications

    Hello,
    I am running Acrobat 8.0 on windows 7. Toshiba Qosmio 64 bit. I am unable to print to pdf from any of my applications. Office, Mozilla, Lotus 1-2-3 and others. When I choose the print option. And from the drop down menu choose Adobe PDF as the printer. And when I click to continue I get the little metered bar showing it's working, but then I get an error in the printer que. I don't even get an option what to save it as or where to save it to. It just goes straight to the metered bar showing its working. And it does this for all my programs where I can print to pdf. Can anyone help me? Also, this is a student version. Could the student version be unable to do this?
    Thank you,
    JimmyJoney

    Although Acrobat 8 is not supported on Win 7, you can try a few things. First, apply all updates to Acrobat 8. If this doesn't help, check to make sure that the PDF port was created. If not, you can try:
    Open Control Panel, select Printers
    * Click Add a Printer
    * Click Add a local printer
    * Select Use an existing port (should be preselected), change the port to "Desktop \*.pdf (Adobe PDF Port), click Next
    * On the next page, click Have Disk...
    * Click Browse and browse to C:\Program Files\Adobe\Acrobat 8.0\Acrobat\Xtras\AdobePDF (or wherever you have Acrobat installed), click OK.
    * It should now show a series of "Adobe PDF Converter" entries. Select the first one and click Next
    * Change the printer name if desired, uncheck the box to use it as a default printer, click Next
    * Do not print a test page, click Finish
    * Find your new printer in Printers. Right click on it and select Properties, Advanced
    * Click "Print directly to the printer", click OK
    These last steps are detailed in the following discussion.

  • Acrobat Pro 9.51 Hangs When Printing to PDF from WordPerfect.

    Seems Adobe Acrobat 9.51 is hanging when attempting to do a conversion to PDF by printing to PDF from WordPerfect (using X3/X5).  Problem is it also hangs the rest of the PC.  Have to attempt to kill the process (though it is so slow I end up having to restart the PC).  Anybody have any thoughts on this.  Attempted to do a repair (no help), removed the program and reinstalled (also no help).  Thought maybe another process was killing this but turned off all startup items.  Maybe I missed some uninstall items I need to manually remove?  Any help would be appreciated.

    Knowing the OS would be helpful as it may be a factor.
    If the OS is Windows 7 Acrobat 9.x will not provide full functionality.
    Regardless, WP file format(s) are not compatible / supported by Acrobat PDFMaker.
    Corel uses its own publish to PDF process rather than anything Adobe.
    With Acrobat installed you can print to the Adobe PDF virtual printer.
    If you are not doing a File - Print and selecting the Adobe PDF printer then you are using a WP rather than an Adobe process provided by Acrobat.
    Be well...

  • Can't "print to PDF" from Word with Acrobat XI

    I recently upgraded from Acrobat X to Acrobat XI and now I don't seem to be able to "Print to PDF" from within a Word document. It tries to generate the PDF then produces an error log which says:
    "Adobe PDF Settings file read error in :C:\ProgramData\Adobe\Adobe PDF\Settings\Standard.joboptions"
    Is there a fix for this?

    Just to be sure about the functionality of everything else. Try changing the job options in the printer (and/or) PDF Maker to the print or press options and see if the printing and PDF Maker operate correctly. If that is the case, you indeed know the problem is bad files. I am not sure if the ones that fail can be extracted seperatedly from the Acrobat distribution or not. I might check my Win7 installation of AAXI and see if I have any issues with the job options. I generally do not use the Std options, but one provided by IEEE for publications. I have found that works about as well as any and the results generally look nice. It generally embeds all fonts that is another option I want. The font issue is not optimum from my viewpoint with the Standard settings that does not embed all fonts.
    You might try to see if you can open them in Distiller. If so you might want to save copies from within Distiller (just save with a new name). Then check your last step and see if they open when resaved or when used as the settings for the print.
    I am just trying to dream up things you can try. The Distiller route might be a good test. If the copies work fine, but the originals do not, you could just rename the originals with ...orig or such and then change the name of the copies back to the original name. If you wanted to go one step further (I recommend it), change all of these new versions to be read only as the original should be.
    I forgot to mention that to edit them in Distiller, go to the settings tab and select the job settings, then enter edit. The original files can not be saved without changing the name since they are read only. If you need more help on this, ask and I will go to my machine with AAXI.

Maybe you are looking for