Create a Print button to Print a specific PDF File

Hi,
Need help with scripting. I'm creating a Menu Page where in I list the PDF files and right beside it put a PRINT BUTTON which of course will print that specific PDF file. Is this doable or not?
Thanks.
VicZam

For more information on the print method, see: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.511.html
Note the nStart and nEnd parameters in particular.

Similar Messages

  • Button - Print an external PDF file

    Hi all... I am trying to have a Button on my PDF to be able to PRINT and external PDF file from off of my site.
    any thoughts?
    Many thanks.,
    Dave

    Hi,
    use the pakage javax.print
    FileInputStream psStream;
    try {
    psStream = new FileInputStream("file.ps");
    } catch (FileNotFoundException ffne) {
    if (psStream == null) {
    return;
    DocFlavor psInFormat = DocFlavor.INPUT_STREAM.PDF;
    Doc myDoc = new SimpleDoc(psStream, psInFormat, null);
    PrintRequestAttributeSet aset =
         new HashPrintRequestAttributeSet();
    aset.add(new Copies(5));
    aset.add(MediaSize.A4);
    aset.add(Sides.DUPLEX);
    PrintService[] services =
    PrintServiceLookup.lookupPrintServices(psInFormat, aset);
    if (services.length > 0) {
    DocPrintJob job = services[0].createPrintJob();
    try {
         job.print(myDoc, aset);
    } catch (PrintException pe) {}
    Thanks,
    Snigdha Sivadas

  • [Applet]Printing issue with pdf files on Xerox 4595

    Greetings !!
    I'm trying to print to a Xerox 4595 printer from a Windows XP station (limited account) using a Java Web Applet.
    This applet generates pdf files which have to be printed.
    The Xerox 4595 uses a printing queue that is detected by the Applet.
    The problem is the following: usually when printing a simple local file from this computer there is a box that asks you your login to let you create a job and then print.
    When using the Java Applet, there is no way to have this print box displayed. We have the Java Print Dialog but once clicked on "Print" there is no box displayed to pass the login to the printer and let us print.
    Is anyone already worked with Xerox 4595 and experienced such issue ?
    How can I, using the Java language and modify the Applet, ask the printer to send me the dialog box asking for the login ? Without this login no jobs are accepted and we can't print the generated pdf files.
    I looked on the printer queue settings and it seems that the Xerox uses the IPP to communicate with the local computers in the office.
    The server from which the Applet is used is a openSuSE Linux Web server (apache2)
    How come using Linux workstations any pdf files are printed (on shared printers such HP laserjet) and under windows there is jammed characters and sheet feed instead ?

    A lot can depend upon which app your are using on your tablet device, the same applies to computer programs but apps are much worse.
    Which app are you using?
    I would try the free Adobe Mobile Reader. This product seems to support more features than other apps.
    There could even be issues with the type of tablet you are using. The Apple line may work better then Android devices since there is QA check and approval by Apple.
    Another factor is the how the PDF was created.
    How well are the maps displayed on your laptop or desktop? Try different values of zoom.

  • Used to be able to print multiple page pdf files on my HP 7310 all in one and then it stopped and would only print the curent page. This is tedious for long PDF docs. I am on 10.6.8 .

    Used to be ablert to print multiple page pdf files on my HP 7310 all in one printer and now I can only print the current page and therefore it takes forever printing them one by one. I am in version 10.6.8. Tried printing as image using the advanced click and that did not work either.  I have Adobe 9.0 reader installed.

    I tried this earlier, and I tried it again today.  Both times it said "Software Missing!"  and "HP Software required to connect to your printer over the network could not be found on this computer."  But when I tried to install the software (AIO_CDB_Net_Full_Win_WW_130_141.exe, which I downloaded from HP's web site), it wouldn't install, as described above.  In the diagnostic utility, I clicked "skip", and it said "Connection Verified!", and "The printer is connected to the network and the services related to the network connections have been verified and reset to a normal operating state.  Everything appears to work fine at this point.  Please doa test print to verify that the issue is resolved or click Skip to move to the next step."  I clickedthe "Test Print" button, and immediately it popped up a box that said "Test Print Failed."
    I tried again to install the HP software, and it installed, detected the printer, and asked me to select it.  I selected the printer, clicked "next", and it did its network diagnostics.  Then it said "Problem(s) found with your network" and "Problem(s) may exist with the network functions of your printer . . ."  I continued the installation without connecting to the printer.  Then I ran your network printer diagnostic tool again, and got the same result - "HP Software required to connect to youir printer over the network could not be found on this computer."

  • Will not print anything but Pdf files!

    If I try to print anything at all other than a PDF file from Adobe only(other readers will not even work) very little of the page prints if anything at all. For example, I was trying to print a shipping label off of the website, and the only thing that would print was the barcode. Nothing else. I actually had to convert it to a pdf file and open it with Adobe, and then it printed perfectly. I have tried reinstalling, restarting, using the HP support doctor, which says absolutely nothing is wrong with my printer. I am at a loss to why it will only print pdf files from Adobe. Can anyone please help me?! I forgot to mention it worked perfectly about a month ago. We don't print a whole lot and didn't notice it was messed up until just a few days ago.

    Hey , Welcome to the HP Support Forums!
    I understand that when printing from your Windows 8.1 computer to your HP Deskjet 1512 All-in-One Printer, nothing is printing, except Adobe PDF files. I would like to assist you today with resolving this issue. Now, you indicate in your post that you had tried to print a shipping label from a website, and only the barcode prints. However, if you open the file up and print it from Adobe it appears to print fine. This leads me to believe that the actual issue that is occuring is a print system issue with the black cartridge. I know it may come as a surprise to hear that as Adobe is printing fine. However, when you print from certain programs on your computer the file is sent to the printer as an 'image' file. If your printer 'thinks' it is printing an image it will use a mixture of colour ink and black to print the black document. Therefore, what you may actually be seeing when you print from Adobe is colour ink mixed. To start troubleshooting I am going to have you print a Quality Diagnostics Report from your printer and this will help us to isolate this printing issue. Please follow the steps below.  How to Print a Quality Report: Load clean, white U.S. Letter or A4 paper in the input tray, if necessary.Press and hold the Power button. While holding down the Power button, press and hold the Cancel button. Hold them both down for 2 or 3 seconds.The test page prints. (1) Printed with the tri-colour cartridge(2) Printed with the black cartridge  If this Report prints perfectly: Then the printing issue that you're experiencing is not being caused by your products print system. Rather, there may be a driver conflict occuring between your Windows computer and your printer. Please do not proceed with troubleshooting at this time.  If this Report prints with missing black or other quality issues: Then the printing issue that you're experiencing is being caused by your products print system. To resolve this hardware issue can I please have you click here. Once the support document opens please choose the Windows 8 dropdown. Next, follow the steps under Solution one, Solution five, Solution six, and Solution seven. This includes any sub steps under the listed Solutions to complete. Once troubleshooting has been completed please print another Quality Diagnostics Report to confirm if the issue has been resolved. Please respond to this post with the result of printing the Quality Diagnostics Report. I look forward to hearing from you!

  • Why does a mail-merge in MS Publisher split into multiple files when printed as a pdf file?

    Why does a mail-merge in MS Publisher split into multiple files when printed as a pdf file?

    'Cuz that's what mail merges do.  They create multiple documents based on the parent doc and all the names/addresses in your data tables.
    Perhaps if you describe exactly what you're trying to do & why you need PDF, we can point you to relevant tutorials.
    Nancy O.

  • Printer filter to PDF file

    Hello everyone,
    I wonder how to set up a printer filter to pdf file on JDS/Linux?
    E.g OpenSuse 10 comes ready preconfigured with a printer filter to pdf file.
    Not sure if it may be Ghostscript that is used for this setup.
    Has any of you set up such a filter for JDS/Linux?
    Terje J. Hanssen

    A follow up:
    Looks like this is a feature of the KDE KPrinter, as the pdf filter was found in KDE desktop printer KJobViewer. The OOo one that I am aware of, I would expect works only internally from OOo applications, while the Kprinter's to pdf file filter looks to be general available for all applications, if I'm right.
    Tried also a Gnome login to OpenSuse, but didn't see the pdf file filter available for the "Gnome printer". Possibly can it be set up also here?
    Terje J. Hanssen

  • Can't get duplex print option for pdf files using  Adobe ReaderXI 11.0.04, Mac 10.8.5 with HP8600

    I get two-sided option for normal printing, but
    I can't get duplex print option for pdf files using  Adobe ReaderXI 11.0.04, Mac 10.8.5 with HP Officejet Pro 8600.  HP says it's an Adobe problem. I'm stuck.
    Thanks in advance.
    VO

    It depends where the pdf is located. If in the Finder or in an attachment to
    an email in Entourage, the message is ³You can¹t open the application
    ³Acrobat Reader 5.0² because PowerPC applications are no longer supported².
    If an attachment in an email that has come via Safari, the message is
    ³Safari can¹t open the file because no available applications can open it².
    In each case the menu bar is Finder or Entourage or Safari as the case may
    be.

  • Can a Hyperlink be created in Word to open to a specific PDF bookmark?

    I'm learning to create & use PDF files so excuse my newbiness...
    I  want to create a Word document (eventually converted to PDF) with a Hyperlink so that it opens a separate PDF file and immediately  position to a particular Bookmark.
    I am able to create a  Hyperlink in Word which opens the PDF file in Adobe reader, but I don't know how  to position to a particular Bookmark in the PDF file.
    Is this possible?
    TIA

    A Word Hyperlink to a PDF can only provide, in the PDF made from the Word file, a link to the PDF file.
    A Word Hyperlink to a Word bookmark that is in the Word file becomes a viable link in the output PDF (if Adobe PDFMaker is configured properly).
    A Word Hyperlink in a Word file (Doc1) to a bookmark in a different Word file (Doc2) will be a link to the other file only when Doc1 is processed to create a PDF.
    A Word cross-reference, to something in the Word file, that has the 'use as/show as hyperlink' feature selected will be a viable link in the output PDF.
    With proper configuration in Word and of Adobe PDFMaker a Word generated TOC (for the open Word file being worked) can result in viable links in the output PDF.
    Once you have the PDF you can use Acrobat's Link tool to developed more refined links.
    fwiw - In context of setting up more refined links within a document and between documents much more can be done with FrameMaker & InDesign than with Word.
    Be well...

  • I cant use the highlight, underline, or strikethrough function in a specific pdf file. The file isnt locked. I used to highlight texts from that file before the latest update. The problem occurs only with that file. Urgent need. Please help. Thanks!

    i cant use the highlight, underline, or strikethrough function in a specific pdf file. The file isnt locked. I used to highlight texts from that file before the latest update. The problem occurs only with that file. Urgent need. Please help. Thanks!

    Chester31,
    Thank you very much for sharing your file with us!  Now that we are able to reproduce the problem at our end, you may stop sharing the file on Acrobat.com.
    Do you know when this problem (for not being able to add new highlight/strikeout/underline) has started?  Did you update your iOS from 7.x to 8.0 recently?
    We will continue investigating the problem and let you know what we find.
    Thank you again for your help.

  • Is there a way to reduce the size of a final PDF created for print when saving a file?

    Is there a way to reduce the size of a final PDF created for print when saving in any software (especially illustrator)? I don't want any quality to decrease at the same time. Thanks!

    Personally I would avoid optimizing the PDF's via Adobe Acrobat Pro unless you understand what you are removing from the PDF; having said that, it is the most effective way to reduce the file-size in the right hands.
    If I am sending out layouts for commercial print I change my default Print / Export setting from Standard to PDF/A-1b:2005 (CMYK). This will resolve a lot of common print problems for print-ready documents and it should embed your fonts and flatten transparencies etc.
    If your document is still too large you run an Audit Space Usage using Adobe Acrobat Pro. In the left pane enable 'Content' and then hit the button in the top left corner of the Content Pane and choose Audit Space Usage.

  • How to disable print icon in pdf file, which is created using servlet

    Hai,
    I have created one pdf file using HttpServletResponse.setContentType("application\pdf"). I want to disable the toolbars of the created pdf file. I want to disable the print, save and other icons in pdf file. Can anybody help me to resolve this problem.
    Thanks,

    I got the pdf into my workflow in a binary data and i passed this binary data to the function module so_document_attacthment_ap1.
    in that i am specifing that the file type is .pdf and i received mail with the pdf attachment too.

  • How to save print setup for pdf file so that every user can open and print w/o manually performing?

    Can is there a way to configure the print settings (i.e. paper size, orientation, etc.) and save this setting as part of the pdf file? I would like the users of pdf files to be able to open the file and simply print, without having to manually configure the print settings.

    Not sure if this will help. I got this information from the built-in help under Acrobat 9.
    Advanced
    Lists PDF settings, print dialog presets, and reading options for the document.In the PDF settings for Acrobat, you can set a base Uniform Resource Locator (URL) for web links in the document. Specifying a base URL makes it easy for you to manage web links to other websites. If the URL to the other site changes, you can simply edit the base URL and not have to edit each individual web link that refers to that site. The base URL is not used if a link contains a complete URL address.
    You can also associate a catalog index file (PDX) with the PDF. When the PDF is searched with the Search PDF window, all of the PDFs that are indexed by the specified PDX file are also searched.
    You can include prepress information, such as trapping, for the document. You can define print presets for a document, which prepopulate the Print dialog box with document-specific values. You can also set reading options that determine how the PDF is read by a screen reader or other assistive device.
    Create print presets
    A PDF can contain a set of print presets, a group of document-specific values that is used to set basic print options. By creating a print preset for a document, you can avoid manually setting certain options in the Print dialog box each time you print the document. It’s best to define print settings for a PDF at the time that you create it, but print presets provide a means to add basic print settings to a PDF at any time.
    Choose File > Properties, and click the Advanced tab.
    In the Print Dialog Presets section, set options and click OK.
    The next time you open the Print dialog box, the values will be set to the print preset values. These settings are also used when you print individual documents in a PDF Portfolio.
    Note: To retain a print preset for a PDF, you must save the PDF after creating the print preset.
    Print Dialog Presets
    Page Scaling
    Prepopulates the Page Scaling option in the Print dialog box with the option you choose:
    Default
    Uses the application default setting, which is Shrink To Printable Area.
    None
    Prevents automatic scaling to fit the printable area. This setting is useful for preserving the scale of page content in engineering documents, or for ensuring that documents print at a particular point size to be legal.
    DuplexMode
    For best results, the selected printer should support duplex printing if you select a duplex option.
    Simplex
    Prints on one side of the paper.
    Duplex Flip Long Edge
    Prints on both sides of the paper; the paper flips along the long edge.
    Duplex Flip Short Edge
    Prints on both sides of the paper; the paper flips along the short edge.
    Paper Source By Page Size
    Selects the option by the same name in the Print dialog box. Uses the PDF page size to determine the output tray rather than the page setup option. This option is useful for printing PDFs that contain multiple page sizes on printers that have different-sized output trays.
    Print Page Range
    Prepopulates the Pages box in the Print Range section of the Print dialog box with the page ranges you enter here. This setting is useful in a workflow where documents include both instruction pages and legal pages. For example, if pages 1–2 represent instructions for filling out a form, and pages 3–5 represent the form, you can set up your print job to print multiple copies of only the form.
    Number Of Copies
    Prepopulates the Copies box in the Print dialog box. Choose a number from 2 to 5, or choose Default to use the application default, which is one copy. This limitation prevents multiple unwanted copies from being printed.
    Thanks.

  • Printing an existing PDF file

    I have been looking around everywhere to find a solution to this problem but just can't find anything. I am generating PDFs using iText. Once I have the file created I simply want to print it, which is apparently impossible without buying a 3rd party library.
    Has anyone found a way to take an existing pdf file and send it to a specific printer.
    To make it very clear (as in most other threads people don't seem to understand what the asker is actually saying)
    I have a file (C:\a.pdf)
    My default printer is called "abc"
    I have a 2nd printer called "xyz"
    I want to print C:\a.pdf to printer "xyz".
    Currently I am printing via acrobat but it's crap. It refuses to close after printing which is the main problem and I don't want to look up the processes and kill it as this is nasty.
    Surely someone, somewhere, has found out a way to say "print this file" from java! I don't care if it is a lot of code. I don't mind using an external library. It must work on windows, linux and crapple macs otherwise I'd just use FoxIt instead of acrobat.
    I have experimented with MANY different methods. The one found here (http://juixe.com/techknow/index.php/2008/01/17/print-a-pdf-document-in-java/) seems to be the best, however, the first page in a PDF seems to print portrait regardless of whether or not it's portrait. All following pages are then landscape. It was almost an amazing solution! If anyone has any ideas on that it would be much appreciated

    Hi
    I found jpedal on my searches but it's not an option due to the cost. Seems expensive considering all I want to do it send an existing PDF to a printer :S I really don't understand how it's so difficult to be honest. PDFRenderer on the dev.java.net site looks really promising but has a few issues. It doesn't seem to be active any more though which is disappointing.
    I think I have solved the problems I was having with it. I will post here after I have done some testing to say exactly what I have done

  • I can't print a Adobe PDF file from the browser. Ignores print command.

    Nothing happens when trying to print PDF from browser. Print box doesn't pop up and does not go to Printer queue.

    None of the above solutions worked for me. I have Firefox 10.0.1 and Adobe Reader 9.5.0, and a pdf file would not print either from the Adobe print button or CTRL-P or the Firefox File, Print command. Firefox Print Preview just shows a blank screen. If I save the pdf file it prints OK from Adobe Reader.

Maybe you are looking for

  • Multiple screens in one frame

    Hi all, I'd like to know how to be able to display multiple screens within one frame. Depending on the choice made on the first screen, the second screen should be either "View Default" or "Modify Default." The modifying will involve a number of othe

  • Nokia C3-01, suggestions for next S/W update

    I am using Nokia C3-01 from 2 weeks. It is nice phone with touch and type combination. I would like to add some suggestions for next software update. 1.   Brightness control 2.  When writing a text message, tapping # change only alphabet from capital

  • ITunes won't play one song only on my new album it keeps asking me to verify my computer just for that one song. Anyone know what's up?

    I have just used iTunes for the first time. I bought an album from the i store. It downloaded to my PC. I can play all the tunes except one. For that one it keeps asking my to verify my computer even though it is already verified. It plays all the ot

  • Does Time Machine backup BootCamp

    I have an Imac & a MBP with Bootcamp partitions. I back-up to a Time Capsule using Time Machine. Do I need to do anything special to include the Bootcamp patition in that auto back-up process?

  • Adobe Reader X : Highlight File Format

    Hi, I'm missing in Adobe Reader X the Highlight-Server (Acrobat Highlight Server Plugin) which was available since many Years. What can i do with Reader X to get this Feature back? More Information about the HighlightFileFormat: http://partners.adobe