Acrobat reader command line switch - password
Hello everybody,
I am a developer for macromedia director applications.
I need to open a password protected PDF-file from within a
director-projector-application with any suitable
xtra-extension (not the
problem discussed here!).
all I would need is the complete command line for acrobat
reader to do
this.
A complete list of command line switches for Acrobat Reader
would be helpful
in respect to further needs.
where can i get this.
By the way, the solution for Windows and Mac OS would be
welcome. Are they
the same?
Thanks
Peter Grambitter
Hello everybody,
I am a developer for macromedia director applications.
I need to open a password protected PDF-file from within a
director-projector-application with any suitable
xtra-extension (not the
problem discussed here!).
all I would need is the complete command line for acrobat
reader to do
this.
A complete list of command line switches for Acrobat Reader
would be helpful
in respect to further needs.
where can i get this.
By the way, the solution for Windows and Mac OS would be
welcome. Are they
the same?
Thanks
Peter Grambitter
Similar Messages
-
Acrobat Reader command line problem
In windows xp professional I'm programatically creating a batch file and executing it (shell command in visual basic) to convert pdf files to Microsoft xps.
The batch command looks like this one:
"C:\Program Files\Adobe\Reader 10.0\Reader\AcroRd32.exe" /t "D:\MyDir\Microsoft XPS Document\x.pdf" "Microsoft XPS Document Writer" /t "D:\MyDir\Microsoft XPS Document\x.xps".
When the user logged in on the machine is an administrator, acrobat reader does the operation silently. When a normal user (not belonging to administrators group) is logged in on the machine, acrobat reader opens the save as dialog window requiring user interaction.
The normal user has full control over the destination directory. I already tested giving the normal user full control over AcroRd32.exe and over cmd.exe with no success. I also tried in visual basic 2008 executing the command through System.Diagnostics.Process.Start with the exact same curious results.
Can someone help.
Thank you.Hi.
I couldn't find a solution within Adobe for the problem I reported Oct 9, 2012, so I went to a fallback solution aimed to complete the needed stages. I'm posting here the visual basic 2008 code I wrote then. It is not a graceful solution and has some coarse code but was designed as part of an application that must keep processing files without user intervention. The procedure "followAcroRd32PDFtoXPS" must be called after the execution of a batch command like the described in the previous post:
Module fallback
Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Integer
Declare Function FindWindowEx Lib "user32" Alias "FindWindowExA" (ByVal hwndParent As Integer, ByVal hwndChildAfter As Integer, ByVal lpszClass As String, ByVal lpszWindow As String) As Integer
Declare Function GetDlgCtrlID Lib "user32" (ByVal hDlg As Integer) As Integer
Declare Function SendDlgItemMessage Lib "user32" Alias "SendDlgItemMessageA" (ByVal hDlg As Integer, ByVal nIDDlgItem As Integer, ByVal Msg As Integer, ByVal wParam As Integer, ByVal lParam As String) As Integer
Declare Function PostMessage Lib "user32" Alias "PostMessageA" (ByVal hwnd As Integer, ByVal wMsg As Integer, ByVal wParam As Integer, ByVal lParam As Integer) As Integer
Const WM_SETTEXT = &HC
Const BM_CLICK = &HF5
Function FileInUse(ByVal filepath As String) As Boolean
Dim f001 As Integer
If System.IO.File.Exists(filepath) Then
Try
f001 = FreeFile()
FileOpen(f001, filepath, OpenMode.Binary, OpenAccess.ReadWrite, OpenShare.LockReadWrite)
FileClose(f001)
Catch
Return True
End Try
End If
End Function
'outpfile <-- path to the XPS Document to be created
'starttime <-- system date and time when the batch command line was executed
Sub followAcroRd32PDFtoXPS(ByVal outpfile As String, ByVal starttime As System.DateTime)
Dim p As System.Diagnostics.Process, q As System.Diagnostics.Process, proc() As System.Diagnostics.Process
Dim i As Integer, j As Integer
Dim l As Long, memusage() As Long
Dim t000 As System.DateTime
Dim t999 As System.DateTime
Dim hwnd As Integer, lObjhWndTB As Integer, lObjhWndBu As Integer
Dim nIDDlgItem As Integer
Dim resu As Integer
dim maximumacrobatwaittime = 60 'seconds
dim memoryusageinactivity = 12 'seconds
dim acrord32pdftoxpstimelimit = 12 'seconds
'Identify necessary Adobe Reader process
t000 = DateTime.Now
Do
System.Threading.Thread.Sleep(1000)
i = 0
For Each p In System.Diagnostics.Process.GetProcesses
If LCase(p.ProcessName) = LCase("AcroRd32") Then
If Not p.StartTime < starttime Then
ReDim Preserve proc(i)
proc(i) = p
i = i + 1
End If
End If
Next
If i > 0 Then Exit Do
t999 = DateTime.Now
If DateDiff(DateInterval.Second, t000, t999) > maximumacrobatwaittime Then
Exit Sub
End If
Loop
'Identify necessary window
t000 = DateTime.Now
Do
System.Threading.Thread.Sleep(1000)
hwnd = FindWindow(vbNullString, "Save the file as")
If hwnd <> 0 Then
Exit Do
End If
t999 = DateTime.Now
If DateDiff(DateInterval.Second, t000, t999) > maximumacrobatwaittime Then
Exit Sub
End If
Loop
'Send click message to button save
t000 = DateTime.Now
Do
System.Threading.Thread.Sleep(1000)
lObjhWndTB = FindWindowEx(hwnd, 0, "ComboBoxEx32", "")
If Not lObjhWndTB = 0 Then
nIDDlgItem = GetDlgCtrlID(lObjhWndTB)
resu = SendDlgItemMessage(hwnd, nIDDlgItem, WM_SETTEXT, 0, outpfile)
If resu > 0 Then
lObjhWndBu = FindWindowEx(hwnd, 0, "Button", "&Save")
If Not lObjhWndBu = 0 Then
resu = PostMessage(lObjhWndBu, BM_CLICK, 0, 0)
If Not resu = 0 Then
Exit Do
End If
End If
End If
End If
t999 = DateTime.Now
If DateDiff(DateInterval.Second, t000, t999) > maximumacrobatwaittime Then
Exit Sub
End If
Loop
'Adobe Reader eventually will enter inactivity after printing to XPS Document
ReDim memusage(0)
Do
System.Threading.Thread.Sleep(1000)
ReDim Preserve memusage(UBound(memusage) + 1)
For Each p In proc
p.Refresh()
memusage(UBound(memusage)) = memusage(UBound(memusage)) + p.WorkingSet64
Next
If Not UBound(memusage) < memoryusageinactivity Then
j = 0
l = memusage(UBound(memusage))
For i = UBound(memusage) - 1 To UBound(memusage) - memoryusageinactivity + 1 Step -1
If l = memusage(i) Then j = j + 1
Next
Select Case j
Case memoryusageinactivity - 1
Exit Do
Case Else
End Select
End If
Loop
'Wait for the new XPS Document
t000 = DateTime.Now
Do
System.Threading.Thread.Sleep(1000)
Select Case My.Computer.FileSystem.FileExists(outpfile)
Case True
If Not FileInUse(outpfile) Then Exit Do
Case Else
End Select
t999 = DateTime.Now
If DateDiff(DateInterval.Second, t000, t999) > acrord32pdftoxpstimelimit Then
Exit Do
End If
Loop
'Kill Adobe Reader process
For Each p In proc
p.Refresh()
Try
p.Kill()
Catch ex As Exception
End Try
Next
'Kill eventual MS Windows error reporting system process
For Each p In System.Diagnostics.Process.GetProcesses
If LCase(p.ProcessName) = LCase("WerFault") Then
If LCase(p.MainWindowTitle) = LCase("Print driver host for 32bit applications") Then
For Each q In System.Diagnostics.Process.GetProcesses
If LCase(q.ProcessName) = LCase("splwow64") Then
Try
q.Kill()
Catch ex As Exception
End Try
End If
Next
Try
p.Kill()
Catch ex As Exception
End Try
End If
End If
Next
End Sub
End Module -
Need a command line switch to close Acrobat Catalog Index batch file
I am looking for help with a command line switch. I am VERY new to scheduling tasks and writing scripts.
Our office created an Acrobat Catalog Index that needs to be updated on a regular basis. I created a .bpdx file as follows:
\\dept\SPDintelshare\Analysis\2nd Hand Transaction Logs\Secondhand Transaction Logs.pdx /rebuild
This runs via Microsoft Task Scheduler from a .bat file as follows:
"C:\Program Files\Adobe\Acrobat 9.0\Acrobat\Acrobat.exe" "C:\Documents and Settings\cutrone0999\Desktop\PawnIndex.bpdx"
The batch runs just like it is supposed to, but it won't close when it is finished re-building. I have tried using EXIT at the end of the .bat file and that doesn't work. I also tried a force close for acrobat.exe and that doesn't work either. The problem is that if I log off my computer the batch will run as scheduled and when I log back on in the morning the scheduled task shows 'running' and I have to end it. Then I have to re-start my computer or I can't open any Adobe documents.
If I leave my computer logged on, the batch runs as scheduled and when I log back on in the morning I have to close the dialog boxes showing the index re-ran and then close Adobe.
I would appreciate any suggestions. I have googled this every way I can think of and I'm not finding any results that are helpful. Thank you in advance!
Paula Cutrone
Lead Crime Analyst
Onondaga Crime Analysis Center
Syracuse, NYAcrobat can be opened by a Windows batch process, but a Windows batch process can not trigger a batch process/Action within Acrobat. It is possible with MacIntosh's Apple Script to open a PDF and run Acrobat JavaScript but not interact with Acrobat's Batch Processing or Acrobat's Actions. Note that opening a BPDX file is different than opening an Acrobat Seq file.
The catalog/index scheduled update is not part of Acrobat "Batch Process" or "Action". The running of rebuilding of the catalog/index is controlled by the values within the BPDX file. So if one opens the BPDX file with Acrobat and a catalog/index is scheduled to be rebuilt or past the scheduled date and time, then the catalog/index build is submitted for precessing by Acrobat..
Now the issue is how to close Acrobat after this processes has completed. Since Acrobat does not communicate with the Windows OS system, the Widows scheduled process has no way to know when this task has completed. Even though one can use JavaScript to test the status of a submitted Catalog/Index build/rebuild there is no communication of the submitted catalog job unless quired by Acrobat JavaScript. If you check the Acrobat JS API Reference you will see there are 2 possible results for a catalog/index rebuild, a completed rebuild and a termination with errors. One of these should require additional action.
Further, a recent update to Acrobat JavaScript has added restrictions to using JavaScript to "closeDoc" method which may need to be addressed.
It is also possible to open an FDF file and add/run JavaScirpts within a PDF, and again this is different than running a "Batch Process"/"Action" in Acrobat. -
Does Adobe Acrobat 7.0 have command line switches?
Currently I use Create PDF from Multiple Documents to cobble together a PDF I need to make every once in a while. Are there command line switches to insert pages? Something like:
acrobat -insert mydoc.pdf put_in_this_doc.pdf
I didn't see any mention in the help but thought maybe I was overlooking it.No, there are no command lines to do anything like this. Acrobat
supports OLE automation for programmers.
Aandi Inston -
Compare two pdf files using adobe acrobat through command line
Does anyone know how to compare two pdf files using adobe acrobat through command line. I want to do this via command line because we want to compare hundreds of file every day through some automated windows tasks.
If command line option is not available in acrobat, then is it feasible to make use of acrobat javascript API to do this task?
Any kind of help will be greatly.Command-line: Not possible.
JavaScript: Possible, but very limited. Basically the only thing you can do is simulate clicking the Compare Documents button. The rest has to be done manually.
However, it *might* be possible to automate this process a bit more using a plugin. Ask over at the Acrobat SDK forum for more information... -
Can i print a file using thunderbird with command line switch
Trying to automate printing task. I have a folder with 1000's and 1000's of eml files that need to be printed using thunderbird.
I am able to get the command line switch to open the file in thunderbird.
But what i really want is to print these files directly using thunderbird without opening the file in GUI.
Thanks
Dennisonส่งจาก จดหมายของ Windows
จาก: Pat Willener
ส่งเมื่อ: จ. 5 มกราคม 2558 6:15
ถึง: thang dinhvan
How can I print a file with mixed page orientation in windows 8.1?
reply from Pat Willener in Adobe Reader Touch for Windows 8 - View the full discussion
I have a win 7 and a win 8.1 computer. I have a file which contains both landscape and portrait pages. The file prints correctly with the mixed orientation from the win 7 pc, but will only print with either landscape or portrait on the win 8.1 pc.
I am using Adobe reader XI on the win 7 pc and adobe touch on the win 8.1 pc
If the reply above answers your question, please take a moment to mark this answer as correct by visiting: https://forums.adobe.com/message/7064031#7064031 and clicking ‘Correct’ below the answer
Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
Please note that the Adobe Forums do not accept email attachments. If you want to embed an image in your message please visit the thread in the forum and click the camera icon: https://forums.adobe.com/message/7064031#7064031
To unsubscribe from this thread, please visit the message page at , click "Following" at the top right, & "Stop Following"
Start a new discussion in Adobe Reader Touch for Windows 8 by email or at Adobe Community
For more information about maintaining your forum email notifications please go to https://forums.adobe.com/thread/1516624. -
Modifying Job Settings in Distiller to invoke command line switch
Beginning in the 8.1 update, there were directory restrictions put in place that can be disabled using the '-F' command line switch. We have an in-house application that creates postscript files utilizing CCITT G4 compression that need this switch to be in place in order for the files to normalize properly.
Is there a way to modify the job settings in such a way that the command line switch is incorporated and therefore invoked every time a postscript is distilled using that setting?
Thanks in advance for any help,
JimHi,
Here is the script to turn off time machine
do shell script "defaults write /Library/Preferences/com.apple.TimeMachine AutoBackup -bool false"
Change false to true to turn it on. -
Can an Access 2013 accdb file be encrypted using command line switches?
Can an Access 2013 accdb file be encrypted using command line switches?
I found all the command switches, but nothing about encrypting. And I've searched online and found nothing.
Can this be done?
Thanks!Hi Sharon2000,
I think you could try the Database.NewPassword Method (DAO) in the VBScript file, and you could get more information about it from the link below:
#Database.NewPassword Method (DAO)
https://msdn.microsoft.com/en-us/library/office/ff844754.aspx
Here is a simple demo to achieve your issue.
Best Regards,
Edward
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey. -
Optical Drive Power software command line switch
Hello!
Are there any command line switches for the "Optical Drive Power" - TPSODDCtl.exe software? This software is part of toshiba power saver package. I would like to set it up to turn off my optical drive power on windows startup.
Thanks,
MilosHello Milos
I use Toshiba notebook over 10 years now and something like this is not known to me. I think the answer to your question you can get from Toshiba software development department only.
I don't believe you will ever get any info about it. -
Preview in Browser - Browser command line switches
Need to add a command line switch to the browser for the "Preview in browser" feature. DW's "Add Browser" and "Edit Browser" will not accept command line switch. Have created a Windows shortcut with the necessary command line switch, but DW will not allow a shortcut as a path to the browser either.
Anybody solved this yet?
p.s. Google's Chrome does not allow local session cookies (document.cookie ). A command-line switch of "-enable-file-cookies" will do the trick, though.
Thanks in advance.Need to add a command line switch to the browser for the "Preview in browser" feature. DW's "Add Browser" and "Edit Browser" will not accept command line switch. Have created a Windows shortcut with the necessary command line switch, but DW will not allow a shortcut as a path to the browser either.
p.s. Google's Chrome does not allow local session cookies (document.cookie ). A command-line switch of "-enable-file-cookies" will do the trick, though.
I haven't tried this, but try adding the switch directly to the Preferences. The Preview in Browser settings are stored here:
\HKEY_CURRENT_USER\Software\Adobe\Dreamweaver CS5\Browser Launch Menus
HTH,
Randy -
How does one specify command line switches for a Helper Application in Mozilla Firefox?
Greetings,
I would like to have a certain batch file to be executed when downloading torrent files unfortunately the Select Helper Application dialog does not allow to add command line switches. I did find a workaround to achieve this. In the Select Helper Application dialog browse to the folder which contains the batch file, type the file name including the file extension of the batch file and click on Open.
Though, this is not the way I would like to execute the batch file. I need to pass some additional command line switches to the command interpreter but I cannot seem to find a way how. Any suggestions or clarifications would be much appreciated.
Thanks for your time,
JoeriHi Joeri,
This is possibly slightly off topic for this forum as it relates to something more than the standard use of Firefox. Although I do not know the answer myself someone else may post later. Otherwise try somewhere else my suggestions are:
*The mozillazine fora tend to discuss a wider range of subjects and technical details <br/> http://forums.mozillazine.org/index.php
*Also it may be worth asking on the Add-on forum <br/> https://forums.mozilla.org/addons/
*Note a general information kb relating to downloads is
** http://kb.mozillazine.org/File_types_and_download_actions
** and for anyone with simpler questions [[Unable to download or save files]]
If you do solve this I hope you post back with the answer and a link to the relevant information.
Good luck with finding a solution, John -
Is there an iTunes.exe command-line switch/syntax reference list?
Is there an iTunes.exe command-line switch/syntax reference list?
I would like iTunes to automatically play my music (selectable/programmable) when I click on the iTunes icon.
Thank you in advance, ACJHi,
Thank you for posting in Windows Server Forum.
The switch /control indicates that you can take the control of the session which you have taken. Generally when we take remote desktop session we will already get the control of that session but in some case where some administrator will not give full access
or control of remote session to the user. At that if they know this option they can use to control that remote session.
Use command line parameters with Remote Desktop Connection
http://windows.microsoft.com/en-in/windows/command-line-parameters-remote-desktop-connection#1TC=windows-7
Hope it helps!
Thanks.
Dharmesh Solanki -
Hi
I cannot find the swtiches i can use from the command line to open / print / etc with acrobat.
an example would be: acrobat.exe /print /silent doc.pdf
Does anyone have the switches???
i need the switches because i need to write a script that bulk prints pdf docs.
thanks
PaulI can't say how reliable it will be, but they're documented here: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/DevFAQ_UnderstandingSDK.22.3 1.html
-
Hide command line ebs password
Hi All,
is there a way to hide command line password for apps user.
when start or stop ebs apps from command line, i have to type
$adstrtal.sh apps/apps
is there a way to hide this password.
Thanks in advance.Hi,
I do not think there is a direct way to do this. However, look at this document and see if it helps.
Note: 377858.1 - Use Encrypt To Prevent Apps Pwd Being Displayed In Log/Sql Script
https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=377858.1
Another option would be calling "adstrtal.sh apps/<apps password>" from some other script.
Regards,
Hussein -
Command line switch for silent install (-ms) no longer works for Firefox 35.0
In previous versions of Firefox, I've downloaded the full installer from https://www.mozilla.org/en-US/firefox/all/ and created a silent install package using the command line-
"FirefoxSetup35.0.exe" -ms /INI="configuration.ini"
drop the -ms and it installs (albeit not silently)
drop the /INI and it fails
that would indicate that the problem is the -ms switch. Any ideas?I found the related bug (looks like it will be fixed in Firefox 23)
*[https://bugzilla.mozilla.org/show_bug.cgi?id=890516 Bug 890516] - Embedded audio stopped working after installing FF 22
Maybe you are looking for
-
The Open Sound System is not working
I have installed and configured OSS following the Wiki, but I still get no sound. Any idea of what problem this is? Thanks in advance. Last edited by R_Rios (2009-09-22 21:26:31)
-
Markers Not Importing from Prelude CS6 to CC
Hello. I'm using Prelude CS6 and sending to files to someone using Prelude CC. The markers are not importing when he opens the files I've sent. We're only using Subclip markers. Neither of us are particularly familiar with Prelude and I hope it's a s
-
Can I keep HTML format in a resource bundle -properties file? Anybody has expirience?
-
I have a script that was working in V2 but fails in V3 when calling Set-Acl: Set-Acl : Cannot set the ACL because the method that it needs to invoke, SetSecurityDescriptor, does not exist Is there a different way to set file permissions in V3?
-
ITC - Build 1.x.x does not contain the correct beta entitlement.
Hi, I have a major problem when uploading Builds via the Application Loader (2.9.1) to iTC. - I use Flash CC 2014 to create my iOS Apps. - I recreated my certificates, p12 and mobile provisioning profiles. - I can Upload my Builds via Application Loa