The JavaScript Code to print multiple Page ranges in Acrobat

Hi all

I am very new to Javascript (used for the first time this morning) and was looking for help.

I built a pdf file in Acrobat that I need to print on a very regular basis.

However, when I print, there are only some of the pages I need to print as opposed to the entire document.

I put in a print button that executes code when you press on below:

This.Print (true, 1, 25);

This.Print (true, 27, 28);

This allows me to print two different page ranges, but it separates into two different print jobs.

Y at - it a code that will allow me to put them in the same print job, so that it selects the pages 1-25, 27 and 28, rather than have them separately?

I am currently using Adobe Acrobat X Standard.

Any input would be much appreciated.

Thank you!

Acrobat/Reader 11 allows you to use the printRange property of PrintParams object that is used with the print statement: http://livedocs.adobe.com/acrobat_sdk/11/Acrobat11_HTMLHelp/JS_API_AcroJS.89.1013.html

See the sample code included in the link above.

Tags: Acrobat

Similar Questions

  • OfficeJet Pro 8000 prints multiple pages of the same document

    Info:

    HP Officejet Pro 8000 A809a

    Windows 7 Pro 64-bit

    Last driver and firmware from HP

    When a job is sent to the printer (web, Word, Acrobat, etc.) the printer keeps printing multiple pages of the document.  Sometimes it will print the first page and a second partial page, then it reprinted again and stop at the same place on the partial page.  She does over and over again.  I ran the HP Diagnostic Utility and it was impossible to print a test page, even after turning the power on power off, then on.   Any suggestions, or is * another * bad printer?  The first was sent and replaced, so I think that this model is just a lemon.

    Thanks for the suggestion, but it didn't work.  I tried to reinstall the driver altogether package three times with no result.  I ran the utility programs that supposedly allows you to solve problems, but public services could not even to generate a test page.

    It seems that I finally found a solution, however.  I installed an older driver for MS Vista 64-bit, and that seemed to do the trick.

  • Printing too low with the exception of the first and the last page when you print multiple pages documents.

    Original title: Question of impression

    It is a new problem; I printed documents several pages in the past without problem. When you print multiple pages on my Office Jet 8000, first & last pages are not bad, but the Middle pages are too weak to read. I initially set for last page of print jobs.   Test pages are fine. I am using genuine HP 940 X cartridges.  I print only 'black '.

    M.

    You should contact HP since it is certainly a printer problem.  We support the MS software & hardware here.

  • Dell Inspiron 7520: Printer will not print multiple pages after upgrade to Windows 10

    I have upgraded to Windows 10 and now my HP printer will not print multiple pages. The printer is set to print documents from the spool. Thanks for any help!

    I uninstalled everything related to my HP printer (in the Device Manager: printers and print queues) and searched my computer for everything related to my HP printer and deleted stuff also. Then I reinstalled the drivers and software from the HP website. I have updated Java also (I have no idea how much this has to do with my impression). I have my printer is off and unplugged for one minute before Relighting. I restarted my computer and now it seems to be printing normally. Praise the LORD!

  • Cannot print multiple pages of works

    9.0 Windows using Windows Vista, I can not print multiple pages of any file Works with the command 'print' in the 'folder '.  I checked the solution center but found no help.  The manufacturer of the computer/printer says it's a problem of application (e.g. Microsoft) and they can help.  Can you HELP me?

    After a uninstall and reinstall the complete software, I can print several pages ONCE.  All attempts after which fail - this is why an application... problem apparently.

    The Windows 7 upgrade would solve this problem?

    The upgrade of operating systems does not normally solve problems, especially as you say that it is a problem of work.

    http://www.Microsoft.com/communities/newsgroups/list/en-us/default.aspx?DG=Microsoft.public.works.win&cat=en_us_9804e2ac-c762-44C9-9c6f-90e45f32d772&lang=en&CR=us

    Discussions in microsoft.public.works.win

    They will help you with your question of work in the work above Newsgroup.

    See you soon.

    Mick Murphy - Microsoft partner

  • Printer prints multiple Pages

    When you print from the web, my printer (HP 8600 Office Pro) prints multiple pages with one or two lines instead of a page in its entirety.

    Hi Richard,

    Welcome to Microsoft Community forum.

    • What web browser do you use?

    • Have you checked the preview before printing before printing from the web?

    • Is the printer connected to the network?

    • Are you facing this problem when printing from Internet Explorer only, or is it with all the programs?

    I suggest to check the number of copies in the printer settings, you can check the link below: choice of print options. http://Windows.Microsoft.com/en-us/Windows7/choosing-print-options

    If the problem persists, I suggest you to follow the steps in this Microsoft article troubleshooting and check if it helps.

    Solve printer problems

    http://Windows.Microsoft.com/en-us/Windows/printer-problems-in-Windows-help#fix-printer-problems=Windows-8&V1H=win8tab1&V2H=win7tab1&V3H=winvistatab1&v4h=winxptab1

    You can also run the Tools of diagnosis of HP for Windows and check if it helps.

    http://h10025.www1.HP.com/ewfrf/wc/document?cc=us&LC=en&DLC=en&docName=c02073861

    See also this link from HP support. http://www8.hp.com/us/en/support-search.html?tab=2#! & qryterm = HP + 8600 + Office + Pro & search_searchtype = s - 001

    I hope this helps. If you need help with Windows, let us know and will be happy to help you.

  • Popup of console log in Chrome for the Javascript code for the Adf application

    Hello

    I use JDev 11.1.1.7.

    In our application, I used the same code as in the example (http://www.oracle.com/technetwork/testcontent/27-long-running-queries-169166.pdf) adf code corner next.

    I used this code to my command button on my page.

    The problem is, when you run the application in the browser Chrome, clicking this command button displays a warning for javascript popup (Please find below printscreen).js_error_popup.png

    The application is not break and continues to work even if this popup comes.

    I tried with other browsers, it is works well and do not show this javascript error.

    You can all help to suggest? Is there something wrong with the javascript code? Thank you.

    Best regards

    cmoster

    Hi Timo,

    The problem is now resolved.

    We have corrected by adding these params of context in the web.xml file to work around the problem.

        org.apache.myfaces.trinidad.DEBUG_JAVASCRIPT

        fake

     

     

        oracle.adf.view.rich.profiler.ENABLED

        fake

     

     

        oracle.adf.view.rich.LOGGER_LEVEL

        OFF

     

     

        oracle.adfinternal.view.faces.DISABLE_CONTENT_COMPRESSION

        fake

     

    Best regards

    cmoster

  • printing multiple pages

    Hello

    Adobe Reader to. 10.1.2

    I chose the option - print multiple pages on a single sheet of paper - which worked well.

    Now, I want this function - a page to a sheet of RESET.

    How to do this?

    I do not see a "reset" parameter - use several, minimum of 2 pages (and not 1 page) so is...

    Thank you and best regards

    Peter Rasmussen

    Press the size button.

  • How can I see the source code of a html page?

    In previous versions, it was possible to read the source code on an html page in the "View" menu It is no longer there. How to read code now?

    Use one of them:

    • Firefox > Web Developer > Page Source
    • Tools > Web Developer > Source of the Page (Ctrl + U)
    • Right-click on a web page to open the shortcut menu and select the Source of the Page
  • I created a Javascript script that adds a watermark on the document action "paper print".  This works in Acrobat Pro, but does not work in the drive.

    I created a Javascript script that adds a watermark on the document action "paper print".  This works in Acrobat Pro, but does not work in the drive.  I am a novice using Javascript, so what am I doing wrong?

    Cannot use either addWatermarkFromFile or addWatermarkFromText methods of document with player as shown in the documentation. You can hide/display the form fields and the existing layers, so consider this approach.

  • Adding an event does not add the JavaScript code to the code automatically window

    I'm learning to animate Adobe classroom in a book (among others).  The lesson says to add an event to the timeline.  I click the icon "open stock" ({}) to the beginning of the row on the timeline for the item that I want to add an action.  The edit window appears.  I click on "mouseover", and only a comment is added to the window instead of the Javascript code.  I have to enter the code manually.  Animate is no longer does this in the code window actions?

    Note that the second stage ("choose a target") is required to automatically add the code.

    You must select an object, and then click Enter.

  • How to find and replace in the Javascript code?

    Hi all!

    I hope that this proves to be an easy question! We have recently updated several forms (about 50 of them) to change a set of names of fields by the requirements of the customer. However, it turns out that one of these fields is a key field and it is referenced in one or more places of JavaScript in the PDF.

    I would choose the option to edit all of the scripts that would give me a large document with all the Javascript code in the PDF in Acrobat 6. I could then do a find/replace on the code and save it. Now, using Acrobat 9 Pro, I don't know something like that. Please don't tell me that I have to search in all fields in different form and PDF objects to find all the pieces of script related to objects or events! I'm really, really hoping that there is an easier way to do it from right now, I'm ideas and really do not want to have to sift through all the objects in more than 50 PDF documents.

    Thanks in advance for pointing me in the right direction!

    Go to the Advanced section - Document Processing - Edit Document JavaScripts...

    (or something similar, don't have it in front of me at the moment)

  • Why print multiple pages per sheet reduce the image?

    Two pages of 5.5x8.5 must print 2-up on 8.5 x 11 WITHOUT reducing the size of the image. Taxation of basic page! (I'm talking about Acrobat DC, specifically.)

    The answer is very simple.

    Acrobat does not currently a tool of imposition of real page. How Acrobat reduced the size of the pages has to do with areas conscious as defined by the printer driver and therefore, even if you try to make a booklet of 5.5x8 pages on paper 8.5 x 11, Acrobat reduced the size of the pages to accommodate the unprintable margins.

    There are third party for Acrobat plugins that perform this and much more sophisticated tax functions.

    -Dov

  • Printing multiple pages to a TIFF file multiple using Windows Photo Viewer

    Original title: printing problem with a tiff file

    Hi guys

    How can I print 2 or 3 leaves only out of 68 pages in TIFF file when I open with 'Window Photo viewer'?

    When press "print", it appear just 'paper size', 'quality' and 'paper' only!

    Please kindly teach me to turned the pages I need.

    Waiting for your reply or response!

    Hello

    You did not mention the version of the operating system that is running in the computer with the problem. We know the version of operating system on this computer.

    Windows Photo Viewer application allows you to view multi-page TIFF files, but it does not allow to print a number of pages in a multi-page TIFF file. In order to achieve this functionality, you can have a look at the workaround solutions provided in the answerin the following threads:

    http://answers.Microsoft.com/en-us/Windows/Forum/windows_vista-windows_programs/unable-to-print-only-one-page-in-a-multiple-page/737b4afc-0D0E-4cb8-8374-f6de218720b2

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-pictures/Windows-7-and-multi-page-TIFF-document/b5cf2c8d-d4a0-49f8-A674-fdc6b3d200c1

    (Note: in the link above, a third-party program is proposed as a workaround.) Please keep in mind that using a non-Microsoft program is at risk of the user and for all the problems arising from the use of these programs, the user must contact the manufacturer of the respective program)

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-files/Windows-7-How-do-i-print-only-selected-pages-in-a/9b0d846c-C765-E011-8dfc-68b599b31bf5

    I'm not one of these workarounds should help you. If you still need help on the question or with Windows, get back with more details and we will be happy to be of assistance.

  • HP Photosmart C4599 all-in-one: new router so want to put in the SSID code on printer. No screen on the printer to do. How can I do?

    Hello

    I want to print wireless.  I recently changed my router to a 4G one and a new internet provider.   I need to enter the SSID of the router to the printer code so that it can join the wireless network and connect to my MacBook Pro.  Initially when I bought the printer, I was able to connect wireless using a provided HP CD - this does not currently work with Mac OS X 10 El Capitan, even if I have loaded down the HP update drivers.  The printer does not have a screen to change the SSID directly so I guess I have to change sort through my Apple laptop.  I you'd be grateful if someone could help me

    Clonfert

    Greetings @Clonfert,

    Thank you access the Forums from HP Support for extra support! I see that you want to configure the printer on the new wireless network. I will do my best to help you with this problem.

    I have provided a few steps to set up the printer via an ad-hoc connection and then convert it into infrastructure. (your network) Since there is no HP software to run the wireless installation.

    Click the airport near the upper right corner on a Mac.

    Click on the HP printer in the list.

    It takes about 3 minutes to connect.

    Once you get a solid blue light on the printer, it is successfully connected.

    You will not be connected to your network for a bit while we set up the printer on the network.

    Print the configuration page to get the printer IPv4 address.

    Open your web browser, type the IPv4 address for the printer (Safari).

    This will load the Web built-in to the printer server.

    We can now configure the printer on the wireless network.

    Click on the networking, on the left side, click on Wireless, fill out your information for the network. (The network name SSID, set it to the infrastructure, enter your password and the encryption type)

    Apply the settings.

    Now back to the airport closest to the top right corner on a Mac and select the name of your network.

    Just add the network printer on Mac now.

    Click on the Apple.

    Click on System Preferences, click Print and scan icon, then click on the + sign, then select the printer from the list, click Add. (you may need to click the drop-down list to select the printer name to add it in)

    Test the printer.

    If this helps you to find a solution, please click on the button "accept as a Solution. If you wish, to say thank you for my effort to help, click on the 'Thumbs Up' to give me a Kudos. Please let me know the results. Good day!

Maybe you are looking for

  • Satellite Pro P750-136 - Bluetooth does not work.

    Hey Bluetooth to my P750 no longer works. I went to device management, and it was the bluetooth rfbus which seems to be the one who does not work despite the driver is correctly installed and updated. I have the laptop for a long time, so assume ever

  • Can I install windows XP next to Windows 7 on my new PC?

    I have an emachines new funds 1352g - 41w with 2 GB of ram under Windows 7 Home Premium. I'm not a big fan of windows 7. I think that I would get better performance with XP. I need windows 7 for the work I do. Is it possible to install Windows XP nex

  • I have a problem with the installation of service pack 1

    Vista has recently broken my computer fried and my ethernet card original when he did... but my neighbor who is a genius of computers installed a new... but it is stuck on not actually service pack installation property that it is said that it has in

  • Windows 10 Upgrade Incompatible from Windows 7 - no problem in report

    I tried to upgrade Windows 7 Professional SP1 to Windows 10 today. In the Windows 10 box, it is said that this PC cannot be upgraded 1 or several things being incompatible - see right for details. On the right side, under the title "compatibility iss

  • MBR

    How to do the following in windows 7... It works under windows 10. This solution has been validated for me as having problems with dual boot... Click Start , and then click Power Options. Click on choose what the power buttons. Click change settings