Open a PDF file to a specific page of the command line

I want to open a PDF stored locally to a specific page of the command line. I've seen examples of access files based on the web using http and the #page = parameter, but it doesn't seem to work for a file stored on my local disk.  I want to be able to use VBA in MS Access to control the opening page.

Hi cfwoodbury,

When you open a PDF document from a command shell, you can pass parameters to the command to open the switch /A with the following syntax:

/A "=" ""

For example:

Acrobat.exe/a "zoom = 1000" "C:\example.pdf"

Kind regards

Rave

Tags: Acrobat

Similar Questions

  • How to open a PDF file to a specific number of page in Safari 8.0?

    I use the command #page = 33 to try to force Safari to open a PDF file to a specific page number. While this works very well on almost all Web browsers, it doesn't seem to work in Safari. What I am doing wrong?

    Thank you!

    The problem is probably with the PDF of Safari plugin, which does not correctly open settings. To be fair, however, is not a part of the PDF ISO specification, but something that Adobe put up on their own in their PDF plugins, so that other applications are not obliged to follow.

    If you switch to using software Macromedia so it should work, even in Safari.

  • Open a pdf file to a specific location

    Dear friends,

    I would like to support a dialog with a help button that needs to open a pdf file to a specific location, is defined by number of page or (better) by named Destination.

    var helpFile = File($.fileName.replace (/\.jsx(?:bin)?$/i , ".pdf"));
    OpenPDF (helpFile, "FMcalccalculations"); // named dest = M8.newlink.FMcalccalculations
    
    function OpenPDF (fileName, destination) {
      if (fileName.exists) {
        fileName.execute("nameddest=M8.newlink." + destination);
      }
    }
    

    This is to open the pdf file on the first page.

    How can I pass parameters - not knowing what pgm will open the pdf file (depending on the installation of the user)?

    I've seen (IMHO) using an intermediary VBscriptthat crunch, but I have not yet tested this approach. As far as I understand that this would imply a VSscript for each destination in the pdf file.

    All ideas are wolcome.

    Klaus

    Well, friends, I found a solution on StackOverflow.com: in German, we say such a solution 'von fun druch die brust projectiles' fur.

    ExtendScript:

    // Open PDF at named destination
    
    var theFile = "PDFwithDestination.pdf";           // for my case: in same path as this script
    var destination = "M8.newlink.FMcalcseries"       // needs to be found in pdf, because the 8 is not a constant
    OpenPdfAtDestination (theFile, destination);
    
    function OpenPdfAtDestination (pdfFile, namedDestination) { // ====================================
    var path = GetScriptPath () + "\\";
    var location = "nameddest=" + namedDestination;   // see "Parameters for Opening PDF Files"
    
    // Call OpenPdfWithParameters, according to
    // http://stackoverflow.com/questions/20862868/file-execute-is-not-executing-my-script-how-to-debug-this-issue/20863131#20863131
    // A workaround to pass arguments is to create another file, that calls this script with arguments.
    // Yawar 2015-03-15
    
    // Create the calling batch file
    var tempFile = File (path + "tempScript.bat");
      tempFile.open("w");
      tempFile.encoding = "UTF-8";
      tempFile.writeln (path + "OpenPdfWithparameters.exe " + '/A ' + location + ' "' + path + pdfFile + '"');
      tempFile.close();
      tempFile.execute ();
      tempFile.delete;
    }
    
    function GetScriptPath () { //=====================================================================
    // Get the script path
    // Returns path in the function
      var scrPath, newPath, winPath, lastBSlash;
    
    // $.fileName: script path (including the file-name of the script)
    // platform independent format e.g. /e/_DDDprojects/FM+EN-escript/escript
      scrPath = $.fileName;
      winPath = new File (scrPath);
      scrPath = winPath.fsName;                       // get Windows format
      lastBSlash = scrPath.lastIndexOf("\\");         // \ needs escaping
      scrPath = scrPath.substring(0, lastBSlash);
      return scrPath;                                 // no final \ !
    } // --- end GetScriptPath
    

    AutoHotKey script - must be converted into an exe file:

    ; OpenPdfWithParameters.ahk
    ; 2016-04-15 Klaus Daube
    
    ; Get the arguments from the caller (works only in compiled version!)
    parmList =
    Loop, %0%  ; For each parameter:
    {
      param := %A_Index%
      parmList = %parmList% `n%param%
    }
    ; MsgBox, Number of parameters: %0%`n%parmList%
    
    ; let's find the relevant application
    RegRead, sDefaultApp, HKCR, .pdf
    RegRead, sDefaultAct, HKCR, %sDefaultApp%\shell
    RegRead, sDefaultCommand, HKCR, %sDefaultApp%\shell\%sDefaultAct%\command
    StringTrimRight, command, sDefaultCommand, 5 ; remove the "%1"
    ; MsgBox %command%                      ; "H:\Adobe\Acrobat11\Acrobat\Acrobat.exe"
    
    ; open the pdf with the parameters according to "Parameters for Opening PDF Files"
    Run, %command% %parmList%
    

    This works, however a flicker is created due to the execution of the batch file.

  • Why my PC will cut Internet connection whenever I try to open a PDF file and how do I corret the problem?

    Why my PC cuts her Internet connection whenever I try to open a PDF file and how can I fix the problem?  Even if I still have my cell phone internet access will not open a PDF document online.

    Hello

    ·        What operating system is installed on your computer?

    ·        What browser do you use to access the Internet?

    ·        It happens with PDF files or file as well?

    I suggest that you follow the instructions in the link and check if this can help:

    Cannot view PDF on the web

    http://kb2.Adobe.com/CPS/328/328233.html

    Respond with the required information so that we can help you further.

  • When I open a PDF file in acrobat reader DC on the richt side theres a window irritating. How can I permanently get rid?

    When I open a PDF file in acrobat reader DC on the side right theres an irriating window. How can I permanently get rid?

    Hello

    Please follow the steps mentioned below:

    Open Acrobat Reader DC.

    Go in Edition > Preferences > Documents

    Open settings pane, uncheck the option, the "Open tools for each document pane.

    Thank you

    Abhishek

  • I can't open a pdf file of network.  I get the error, "there was an error opening this document. This file is not found. "If I copy it to the desklop can I open it.

    I can't open a pdf file of network.  I get the error, "there was an error opening this document. This file is not found. "If I copy it to the desklop can I open it.

    I have Adobe Acrobat XI version 11.0.12 and running windows 8.1

    Hi brianh66664582,

    Try the solutions suggested in this thread Re: could not open the files on the network server..

    Kind regards

    Nicos

  • I have Adobe Reader XI with the package that allows me to send a PDF file and convert PDF files to Word. When I open a pdf file and you try to find the search shows no match, even if the word I'm looking for is in the document. Suggestions how to search?

    I have Adobe Reader XI with the package that allows me to send a PDF file and convert PDF files to Word. When I open a pdf file and you try to find the search shows no match, even if the word I'm looking for is in the document. Suggestions how to search?

    A scanned document is an image; You can't find a picture.

    If the image contains text, recognition of characters (OCR) will convert the 'text' in the image in real text (searchable, editable).

    OCR can be performed automatically when converting a PDF to Word, using the ExportPDF service.

    To run OCR inline in a PDF document, you will need Acrobat.

  • How can I enter in the start page of the command line "firefox.exe"?

    I want to write a script to use firefox to download information about a series of addresses on a street. For example: 101 State St, 102, 103 State St State St,... etc. The script will travel addresses and streets, on interest. Firefox.exe accepts command line parameters that define a web page specific and data to be filled in this page?

    You can start Firefox to open a specific web page or a local file by adding the url to the command line, but you cannot specify the data to display, unless these data does not appear in the page source.

  • I have acrobat reader and paid for an upgrade - how to remove a 1 page of a pdf file and insert a page in the pdf thank you

    I have acrobat reader - how do you want to delete the pages of a pdf/how can I insert you pages from a pdf.  It is different from my old version I had.

    Thank you

    To do this, you will need Acrobat Professional or Standard.

  • restore multiple system files from Recycle Bin by using the command line

    Hello world

    I ' v done gone wasted with this one

    I downloaded a third party software to delet all files duplicate on my laptop

    unfortunitly I completely forgot I had put all the files in the files of system including visible on partion 1 running windows 7, bye bye file system

    Now, I can't find my installation disk to restore the system files and don't have not one partion factory repair, also I can't start in safe mode with command prompt.

    what I got is windows server 2012 on the partion 2 that works very well

    I found the folder bin recyle for windows 7 opperating system while in server 2012 what I want to do is to restore all the files not only some like fortunately we who will get all my files back in there right posion with fear that the time spent...

    now, there is another way I could restore these files but unfortunitly I don't have enough room in my score didn't do the restore

    I found under the disk management Explorer/properties/previous vertions, but did not...

    appoligies for the bad spelling

    Any help would be appreciated

    Hello

    Thank you for visiting Microsoft Community.

    I suggest you to post your query on our Forums TechNet social as this question should be better there.

    Please refer to the reference to the link below to send your request:

    https://social.technet.Microsoft.com/forums/Windows/en-us/home?category=w7itpro

    Hope this information helps.

  • Open a file from the command line

    Hello

    I try to open a pdf file to a specific page from the command line on Windows 10.  I have referenced a few online sources (for example, the stack overflow), but could not find my mistake.  I enter:

    PS to C:\Program Files (x 86) \Adobe\Reader 10.0\Reader >.\AcroRd32.exe 'page = 50' \a "c:\test.pdf".

    When I do, the Player opens with an error message "there was an error opening this document. This file is not found", but clicking on the box OK dialog then opens the file (test.pdf is without a doubt), but the page = 50 command is ignored.

    Can anyone see my mistake?

    Thank you

    Dave

    Memory, /A is not \A.

  • Why does firefox open a non-stop tab string when I try to open a PDF file?

    I don't know if it's a coincidence, but right after that I installed the latest version of Adobe flash player, firefox now opens a string with no end of new tabs, whenever I try to open a PDF file. I have to close the window and start over.

    Help?

    the machine is a HP Elitebook 8540w. Windows 7 64-bit.

    You have configured Firefox to use the Adobe Acrobat plugin? It seems that he may be missing or disabled, because it does not appear in your "more details of the system" (next to your message). You can see the page modules. Either:

    • CTRL + SHIFT + a
    • "3-bar" menu button (or tools) > Add-ons

    In the left column, click on Plugins. Then on the right, look for Adobe Acrobat. It may be down on a gray background.

    If you don't have it: Make sure that this isn't your favorite here player:

    "3-bar" menu button (or tools) > Options > Applications

    You can type or paste pdf in the search box at the top of the list after loading to filter.

    If you have it, but it cannot be activated using 'Always enable' or "Ask to activate": You may need to update. I recommend using the help inside your product Adobe (Reader or Acrobat) menu to check the updates.

    Any progress?

  • My laptop can not download and open online pdf files

    Hello

    My computer (WINDOWS 7 ULTIMATE {32 Bit}) done an update on February 27, now I can't open or download files special PDF Online.

    I tried to run the system restore point, but it does give me a DATE option that I want to restore.

    He gave me this option date March 3, 2015 only.

    Help, please!

    Hello
    Thanks for posting your questions about Microsoft Community.
    To help you better could you please clarify a number of things like:
    1. you try to download a .pdf file as an attachment to an email or a Web site hyperlink?
    2. What is the default browser installed on the computer?
    3. what actually happens when you try to download\open a pdf file?
    4. What is the management software pdf documents by default (such as Adobe reader or NitroPDF) installed on the machine?

     
    However, assuming you are using Acrobat or Adobe Reader on a system that includes a browser, you configure automatically the browser to open PDF files in the browser window. Acrobat and Adobe Reader install the ActiveX plugin files allow you to use Internet Explorer or AOL to open PDF files.
     
    If an application is installed, but do not open the PDF files in the browser window, then work through the following steps to configure the browser:
    To open PDF files in a browser window, the ActiveX folder should contain the following files: AcroPDF.dll, AcroIEHelper.dll and pdfshell.dll.
     
    ActiveX controls must be in: program files Files\Adobe\Acrobat\ActiveX
    If one of these files is missing, then repair Acrobat or Adobe Reader by choosing Help > repair Acrobat Installation or reinstall the application.
     
    Make sure that you use a version of your web browser, Acrobat and Adobe Reader supports, such as Internet Explorer. Supported for Adobe Acrobat 8, Adobe Reader 8 browsers are Internet Explorer 6.0, 6.0 SP1, Internet Explorer 7.0, Firefox 1.5 or later, Mozilla 1.7 and AOL 9.

    To make sure that the Windows registry provides the information that your web browser should display PDF files, restart Windows. If the Windows registry is not updated after the installation of Acrobat, then the web browser can not find the references it needs to access the PDF files on the web.

    Reinstall Acrobat or Adobe Reader.

    To ensure that the correct information of the plug-in is added to the Windows registry, reinstall Acrobat or Adobe Reader.If you want the browser to open PDFs in a separate Acrobat window, then configure the browser to use Acrobat or Adobe Reader as a helper application. Then, when you select a PDF file in Internet Explorer or AOL, the browser opens the PDF file in an Acrobat window instead of the browser window.
     

    To configure the browser to use Acrobat or Adobe Reader to open PDF files:
    1. close your web browser.
    2 start Acrobat or Adobe Reader.
    3 Choose Edition > Preferences.
    4. Select Internet in the list on the left.
    5 disable the display option IN the browser, and then click OK.
    6. restart Internet Explorer or AOL.

    Finally,.

    And there is also a possibility that the file association to open pdf files was damaged for some reason, then we will have Adobe Acrobat or Adobe Reader as default program and check if that helps. Please refer to:

     
    Note: The next time you select a link to a file PDF, the browser may prompt you to open or save the file. If you choose to open the file, then the browser opens the file in the support application that you specified. If you choose to save the file, the browser downloads the file to the hard drive.
     
    I hope this helps.
    Please get back to us with the required information, and we would be happy to help you.
     
    Kind regards.
  • Disable the opening of PDF files in the browser.

    Hi guys,.

    I'm deploying DC to my environment, but only one requirement is disable the opening of PDF files in I.e.

    The only work to date is to * manually * disable the Adobe PDF Reader add-on in IE11.

    I tried:

    1. GPO to disable Adobe PDF Reader. The add-on comes as disabled, but a PDF file will always open in IE.

    2. the HKCU entry for bBrowserIntegration = 0. It makes no difference.

    The second step is the only one I've ever used for reader XI and it satisfied my needs. Someone at - it run in this yet? It's really weird that manually disabling the addon works (all PDFs pop out of drive) but if I re - enable and disable then via GPO, the opening of PDF files in the browser.

    Hi christopherh31260325,

    Please provide detailed information about your question.

    Could you please try to uninstall and reinstall MS Reader from the link mentioned below:

    Adobe Acrobat Reader DC install for all versions

    Then, try to disable the opening of PDF files in the browser after you follow the instructions as indicated in the link of doc KB:

    Reference: Acrobat Help. Display PDF in browser. DC to Acrobat, Acrobat Reader DC

    Let me know if it helps.

    Kind regards

    Ana Maria

  • AF:goLink to open a PDF file

    My version of JD is: Studio Edition Version 11.1.1.6.0

    I'm trying to open a pdf file in a new window of the tab

    < af:goLink text = ' #{point.» Description} ".
    Binding = "#{backingBeanScope.NewPage.GL1} '"
    ID = "gl1".
    destination="file:///C:/01-0007-0.pdf".
    targetFrame = "_blank" / > ""
    < / af:carouselItem >


    When I copy and paste paste this url "file:///C:/01-0007-0.pdf" the file appears, but when I run the application and click on GoLink nothing happens!

    What is worong? What do I do?

    Something like

    public void sayHello(FacesContext context, OutputStream out) throws IOException {
            File file = new File("C:/01-0007-0.pdf");
            FileInputStream fis;
            OutputStreamWriter w = new OutputStreamWriter(out, "UTF-8");
            byte[] b;
            fis = new FileInputStream(file);
            int line;
            while ((line = fis.available()) > 0) {
                    b = new byte[line];
                    int res = fis.read(b);
                    w.write(b, 0, b.length);
                    if (res == -1)
                        break;
                }
                w.flush();
        }
    

    Arun-

    Not tested

Maybe you are looking for

  • My Mac is hacked! Encryption help please!

    My Mac Pro is hacked, and this is confirmed by the engineers. Because the Mail app and even online ISP mail did not work if good PSI hunted hackers. I found files fragmented on 240 and 480 GB Intel SSD drives into the slots of the T2 drive: files nam

  • failed to connect to the SMTP server

    I can't send mail in ThunderBird sometimes. I use 31.5.0 version but I was wrong this problem in older versions either. It is said:"The message could not be sent because the server name of the SMTP server connection failed. The server is may be unava

  • File permissions denied

    I don't have permission to open the My Documents folder. When I request information on the record, it is said, you have Custom Access. When I tried to fix the permissions by the owner with abilities of reading and writing, I became locked with no way

  • Satellite A200 shows weird coloured horizontal lines

    These multicolored horizontal lines with different lengths appear on my laptop.Soon they jump all over the place, and then the screen turns off. I get the blue screen saying something went wrong and restart my computer... I don't know what the heck i

  • Tecra 9100: Unable to connect external monitor to the APR III Plus via DVI

    HelloI have a laptop Tecra 9100 that I try to use with an Advanced Port Replicator III (APR3 +) to connect to an LCD flat screen widescreen Dell via the DVI connector, but so far without success. All other connections on the APR3 + operate without pr