Main Topics
Browse All TopicsHi experts,
what are the available command line switches for the Adobe Acrobat Reader versions? I would like to open a PDF document from the commandline, specifying the display zoom factor.
broesi
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
The document from sajuks' link describes the command line switches for the Unix version. Don't expect them to work for Windows.
You can find the switches that are supported in the Acrobat Developer FAQ (http://partners.adobe.com
This document describes the "Acrobat Open Parameters": http://partners.adobe.com/
The better way to specify the zoom factor is by setting it in the PDF file with Acrobat. This will, it will always open the same way, and you don't have to rely on command line parameters.
BTW: My comment regarding sajuks' link was about the first link. The second one just lists the parameters from the Developer FAQ.
khkremer,
that is almost exactly what I am looking for. The only problem is that this works only if I call acrord32.exe with the parameters (e.g. c:\program files\adobe\acrobat reader\acrord32.exe /n /s "mydoc.pdf")
It does not work if I just type 'mydoc.pdf /s /n' on the command line on Windows.
Is there any way to make it work without specifiying the path to acrord32.exe?
The point is this: my app is delivered with a set of pre-made PDF documents (so setting the zoom factor inside the PDF's is not an option here) I would like to launch. But I can't be sure if an Acrobat or Acrobat Reader is installed at all on the user's machines at all.
broesi
But then I still need to know what (Acrobat itself or 'just' the reader) is there and where it is (the app will be shipped to a lot of clients, all with different machines).
And if I knew that, I could just as well address the EXE right where it is...
Now, is there an easy way to find out if Acrobat/Reader is installed and if so, where?
broesi
You can check the file associations in Windows to see what application is installed to handle PDF files. This way you would know if Reader or Acrobat are installed.
If you want to ship this solution to customers, you should really think about setting the zoom setting as part of your "initial view" settings when you create the PDF documents, or in a separate step in Acrobat before you deploy the solution.
Just in case it's not clear: You can check the file associations in the registry.
When you set your file assocs for PDF, you can specify what action to perform when you open a file of this type. The default is something like this:
"C:\Program Files\Adobe\Acrobat 6.0\Acrobat\Acrobat.exe" "%1"
You can add your command line arguments to this line, and everytime you double-click on a PDF file, you will get the new settings.
However: I strongly suggest that you will not go this route. This means that you basically take over your customer's PCs. This will not be limited to just your PDF files, but will be active for all PDF files that they open on these machines. If you would do this on my system, you would definitely hear from me... And, I may no longer be one of your customers after that.
Again, the right way to do this is to modify the PDF files. YOu can do this by selecting the document properties (File>Document Properties), then select "Initial View" and set the "Magnification".
sajuks, the key you proposed only works if the current user has started Acrobat (or Reader) at least once. The better place to check is really in the file associations. This is set when the application is installed, and it does not require that it was run by the current user.
You can find this in HKEY_CLASSES_ROOT. The key .pdf points to the entry that handles PDF files. If this is set to AcroExch.Document, you have Acrobat installed. This entry contains all the information about how to process files of this type.
khkremer,
as I said, the PDF's I am shipping with my app (which is a VB6-program) are pre-made, so I can't change them. Of course changing the default file association is a no-go!
So I will probably look for an existing PDF file association and check if it is Acrobat or Acrobat reader.
The points go to khkremer, since the specified links showed me how to open an existing PDF with a certain zoom factor (I was searching Adobe's support area before, but couldn't find it myself...). But thanks to sajuks as well for your thoughts!
broesi
Are you actually opening the PDFs from within your application? If so, you can get the path to the PDF viewer from the registry, and then just use the full command line to open the files. This is a bit more involved as just asking Windows to open a certain file, but it will give you access to all the features.
I attempted to see default viewer in the Wind registry using java and jst.
Oddly it works in my JBuilder IDE, and from commandline but NOT from within a jar.
A known java bug mens that jar execution does NOT recognise classpath, so the jni dll cant be found. So I have reverted to "cmd|command start Fred.pdf"
Now for Linux... I suspect there is a default config file somewhere, but I will probably just try a bunch of commands until one woeks
kpdf
acroread
KGhostview
XPDF
GSview
XPDF
xpdf
Preview
Xpdf (why cant Linux types be precise about cAse , since Linux is?)
PSviewer
....etc etc
Link to the Accepted answer is now here:
http://partners.adobe.com/
Business Accounts
Answer for Membership
by: sajuksPosted on 2004-10-01 at 02:33:54ID: 12198319
Check this erguides/i mage/adobe .html
http://www.csb.yale.edu/us