Acrobat 7, Running a JS

I have never scripted for Acrobat, though I have done a lot of JS scripting for Photoshop. I have written a script that will do a page by page merge of two pdfs (ie one being the front side scan of a document and one the reverse side scan). It works fine.
What I would like to do is open the two pdfs, have the first document active, then run the script and away it goes, knowing that the front,ost pdf is where it gets the first page from. My problem is how do I set up the script so that it can be run from any open pdf, when I want to run it.
ie:
1. Open target pdfs for merging
2. Make sure the initial page pdf is on top
3. run script somehow (from menu, or button?)
Andrew

I've found a solution, using batch and requiring only 2 pdfs to be open, then creating the new merged pdf, and aborting the script when there are three pdfs open, so it only runs once:
function runonce() {
var d = app.activeDocs;
var path1 = this.path;
var doc1P = this.numPages;
if (d.length > 2) {
return;
for (var i=0; i < d.length; i++) {
if (d[i].path == path1) continue;
var path2 = d[i].path;
var newDoc = app.newDoc();
for (var i = 0; i < doc1P; i++) {
newDoc.insertPages({
nPage: newDoc.numPages -1,
cPath: path1,
nStart: i,
if (i == 0) newDoc.deletePages({nStart: 0});
newDoc.insertPages({
nPage: newDoc.numPages -1,
cPath: path2,
nStart: i,
runonce()

Similar Messages

  • Will adobe acrobat 9 run on windows 7 64 bit

    will adobe acrobat 9 run on windows 7 64 bit home premium

    Hi,
    You should be able to install Acrobat 9 on Windows 7 Home Premium 64-bit.
    Also, here is a link that lists the minimum requirement for Acrobat products for your reference: Tech Specs Acrobat
    Hope this helps.

  • Can we determine if Acrobat is running inside a browser?

    I'm looking for a javascript property or method to determine if Acrobat is running standalone or in the browser, as I'd like to use that to made certain of my custom toolbar buttons available or not.
    Is there anything available?
    Thanks -

    Here is the example from the Acrobat JavaScript Reference API: 
    Detect whether this document is in a browser or not.
    if ( this.external )
    // Viewing from a browser
    else
    // Viewing in the Acrobat application.

  • Hi, i have installed a creative suite design standard few weeks ago but adobe Acrobat not run. When i launch it, Acrobat always ask me to accept "license agreement". Thanks for help

    Hi, i have installed a creative suite design standard few weeks ago but adobe Acrobat not run. When i launch it, Acrobat always ask me to accept "license agreement". Thanks for help

    http://www.interworks.com/blogs/rclapp/2011/07/20/adobe-acrobat-asking-accept-eula-after-u pdating-1010

  • How to Hide Acrobat When Running VBA Code

    I am using Acrobat 9.
    My project adds text to Acrobat fillable fields using VBA written in Access 2003. I take records from my Access database, and populate it into different Acrobat Forms based on the field name in the Acrobat Form. I am able to do this, but there is one problem.
    The problem is that as the code runs through populating text in the Acrobat Forms, Acrobat opens up each form, and makes it visible to the user. It populates quick, but it is still visible. I want this to run in the background, or at least be minimized in the windows taskbar. The users should not not know which form the Application is updating. It should be hidden or invisible. That is the goal at least :)
    I know which line in the code causes it to Maximize, but if I remove that line, I receive an error about No Document Currently Open in Acrobat Viewer.
    Here is the snippet of the code I am using. Any help would be greatly appreciated.
    Dim gApp As Acrobat.CAcroApp
    Dim avdoc As Acrobat.CAcroAVDoc
    Dim gPDDoc As Acrobat.CAcroPDDoc
    Const DOC_FOLDER As String = "C:\Trial"
    Dim x As Boolean
    Set gApp = CreateObject("AcroExch.App")
    Set gPDDoc = CreateObject("AcroExch.PDDoc")
    Set avdoc = CreateObject("AcroExch.AVDoc")
    'Hides Acrobat - So Far So Good
    gApp.Hide
    Dim FormApp As AFORMAUTLib.AFormApp
    Dim AcroForm As AFORMAUTLib.Fields
    Dim Field As AFORMAUTLib.Field
    'Open PDF that I choose. Acrobat still has not flashed on my screen
    x = avdoc.Open(DOC_FOLDER & "\trial.pdf", "temp")
    'Acrobat Now Pops up on my screen. However, I get an error without this line. avdoc.Show works the same as Maximize it seems.
    avdoc.Maximize(1)
    'Hides it again, right after it opens. This creates a flash
    gApp.Hide
    Set FormApp = CreateObject("AFormAut.App")
    'If the Maximize line is not there, this is where I receive error about document viewer
    For Each Field In FormApp.Fields
    If Field.Name = "Sample_FieldName" Then
    Field.Value = TextToUse
    End If
    Next
    Please let me know if you can think of a way to keep Acrobat hidden. Thank you.

    Use standard VB/Windows features to minimize the app.

  • Is there a PF Restriction Remover for Adobe Acrobat 10 running in a Windows 7 operating system?

    Is there a PDF Restriction Remover for Adobe Reader version 10 running on on a Windows 7 operating system?

    To remove a password, you would have Acrobat (not Reader). Go to File > Properties, set No Security. Enter the password when prompted.

  • How to uninstall Acrobat Standard X while Acrobat is running (Silent) - Property to handle this???

    We have several thousand customers where we need to remove Acobat Standard X from the computers to install an update.  However, some customers may leave the product running even if they aren't using it.  Now if you run the uninstall with a /qb you get a prompt saying that the application is running, there is an option to ignore, but I can't seem to figure out how to "click" that using commandline options.  There must be a property that handles that, right?  Thanks.

    Sabian, I know how to kill a process running that isn't my problem (In fact personally I think it is easier in PowerShell than what you mentioned), I'm trying to have as little impact to the customer as possible.  My comments above were purly to point out Adobe has some work to do with their MSI's, if this isn't possible, since other software companies can clearly get around this problem with no ill effect.
    Here is one solution for anyone else wondering what can be done:
    Create a pop-up/message box as part of the deployment stating they need to close out of Adobe or it will close in a specific time frame.  Once the OK button is clicked or the time expires, it forces a kill command (In PS that would be Stop-Process), then go onto the install.
    The only problem with this is first customers will contact the helpdesk because even with an e-mail lets face it, people don't read their e-mail. Second, there is potential for data loss if people choose to ignore the message.  (If they choose to ignore it, well that is on them in my opinion).  Thanks.

  • Not able to deactivate old computers to make Acrobat Pro run...HELP!

    I have adobe acobat pro, and just got a two new computers to replace two that died. We now can not use our acrobat pro, it tells us we need to open up another program like Photoshop. I am assuming it wants me to deactivate my old machines, which is not possible since the hard drives are dead....what would I do to fix this?

    Hey schwerind,
    It's not possible to deactivate the license from a computer with dead hard drives.
    You might try installing Acrobat on a new computer and if it asks for a serial number, then visit Contact Customer Care to seek further assistance related to your product activation.
    Regards,
    Anubha

  • Problem with Acrobat Reader running under Paralles Desktop 4

    If I try to save a file as .PDF under MS-Word 2007 I get the answer that the reader is not installed whether it is insalleld. If i choose install now I get the Information that I can repair or remove the reader. Can anybody help me to fix this problem.

    Post your question in the forum for Adobe Reader.

  • PDF Printer and Acrobat fail to open or run or anything else.

    Hi
    Adobe Acrobat Standard 9 has been installed on this TS2008 (VM) server for over a year without problem until recently.
    To start, the Adobe PDF printer stopped creating PDFs. When it worked a user would print and the PDF (creation) progress bar dialog box would open and the Adobe Distiller icon would appear in the taskbar (swirling) and a PDF would be created. Now we get the progress bar but no Distiller icon and no PDF is created.
    Then Adobe Acrobat Standard (editor) failed to open any PDFs. We installed Adobe Acrobat 9 reader which opened PDFs for a while and now that has stopped working.
    After many uninstalls, reinstalls, reg cleans we decided to open a case with Adobe who told us that Acrobat 9 is not supported on Server2008. The customer purchased Adobe Acrobat X.
    We installed Acrobat X (in terminal server mode) and all was well for around 24hrs and then it all stopped working again.
    I have since uninstalled reinstalled again. I created 1 PDF and after that the progress bar just hangs. We performed a controlled user logon to the server and all was going well until one user logged in and he isnt able to open Acrobat to read or edit PDFs.
    There are no events logs which appear to directly relate to this. We were concerned about a HpBIDI driver which no longer errors but we do have a large amount of EventID 7036, ServerControl Manager Eventlog provider and EventID 4 SpoolerWin32SPL.
    We have since been back to Adobe Support who advised us to unplug the network cable which we cannot do as its a hosted VM (with no access to the the VM console). He then asked us to remove the server from the Domain which we can't do as this is a single live server. They intend to come back to me!
    We are really at a loss here for idea's, can anyone please provide some clues?
    Thanks

    Hi billu54860732,
    Try running the Repair command from under the Help menu to see if it corrects the problem.
    The probable cause of the error is, multiple processes of Acrobat/Reader running in the background.
    If 'Repair' doesn't resolve the issue kindly follow the steps mentioned below and check, if it helps.
    1) Press CTRL+ALT+DEL together
    2) Go to the Task Manager
    3) Go to Processes in the Task Manager and kill al the processes related to Acrobat/Reader.
    4) Launch Reader/Acrobat (It should launch without an error).
    To further isolate the issue you might want to run Acrobat/Reader in an environment where no other services are running.
    This can be achieved via "MSCONFIG"
    1) Click on start type run
    2) Type MSCONFIG in the run prompt
    3) Go to services and click on hide all Microsoft services
    4) Click disable all
    5) Go to the startup in configuration window and disable all startup items
    6) Restart your system
    7) Launch Acrobat/Reader
    If, it is launched without an error, a service on your system is conflicting with Acrobat/Reader.
    Let me know if issue persist.
    Regards,
    Aadesh

  • I get this message when I try to open .pdf files in Mozilla: There is a problem with Adobe Acrobat/Reader. If it is running, please exit and try again. (1014:1014)

    What can I do to get this to work?

    We were getting the same error on a Win 7 machine which had Acrobat 7 (running in compatability mode) and Reader X installed.  When the user was trying to open the link from an email the error 'There is a problem with Adobe Acrobat.....(0:521) would appear and the pdf would not load.
    Investigating the problem I can across an article to uncheck the option "Display PDF in browser" (in the application choose Edit -> Preferences -> Internet).  Undertaking this procedure in Acrobat Reader X however, I could not uncheck this and the path the app was showing was for Acrobat 7!?!
    Therefore, opened Acrobat 7 and undertook the same procedure.  Unchecked the "Display PDF in browser" (in the application choose Edit -> Preferences -> Internet) which I was able to do, saved and closed the application.
    Rechecked Acrobat X and the "Display PDF in browser" could be deselected and the path was now for ..\Reader 10.0\Reader\AcroRd32.exe
    Retried the original email with the link to the pdf and it now opens without error.
    Not too sure if this will help but just thought I would share.

  • There is a problem with Adobe Acrobat/Reader. If it is running please exit and try again. (0:521)

    There is a problem with Adobe Acrobat/Reader. If it is running please exit and try again. (0:521)
    Although I have found other threads in this forum relating to this error - none of the fixes appear to work. I've not found precisely the same error number (0:521), might I need a different fix for this? Has anyone else had the same error?
    Just to note, this appears to be an issue with Internet Explorer 8 on Windows 7 while viewing pdfs 'in-browser' i.e. using the plugin. Other versions of IE on other machines and FF on the same machine work fine on the same pdfs. It also works if you right click the pdf, download and view it in Acrobat Reader 'locally'.
    Any help greatly appreciated, I'm stumped.

    We were getting the same error on a Win 7 machine which had Acrobat 7 (running in compatability mode) and Reader X installed.  When the user was trying to open the link from an email the error 'There is a problem with Adobe Acrobat.....(0:521) would appear and the pdf would not load.
    Investigating the problem I can across an article to uncheck the option "Display PDF in browser" (in the application choose Edit -> Preferences -> Internet).  Undertaking this procedure in Acrobat Reader X however, I could not uncheck this and the path the app was showing was for Acrobat 7!?!
    Therefore, opened Acrobat 7 and undertook the same procedure.  Unchecked the "Display PDF in browser" (in the application choose Edit -> Preferences -> Internet) which I was able to do, saved and closed the application.
    Rechecked Acrobat X and the "Display PDF in browser" could be deselected and the path was now for ..\Reader 10.0\Reader\AcroRd32.exe
    Retried the original email with the link to the pdf and it now opens without error.
    Not too sure if this will help but just thought I would share.

  • Acrobat X1 fails to open or run

    I purchased and installed Adobe Acrobat X1 a couple of weeks ago.Now it will not open or run. Any ideas out there??
    P.S.  now comes up with 'Acrobat failed to connect to a DDE server'   what that all about......

    Hi billu54860732,
    Try running the Repair command from under the Help menu to see if it corrects the problem.
    The probable cause of the error is, multiple processes of Acrobat/Reader running in the background.
    If 'Repair' doesn't resolve the issue kindly follow the steps mentioned below and check, if it helps.
    1) Press CTRL+ALT+DEL together
    2) Go to the Task Manager
    3) Go to Processes in the Task Manager and kill al the processes related to Acrobat/Reader.
    4) Launch Reader/Acrobat (It should launch without an error).
    To further isolate the issue you might want to run Acrobat/Reader in an environment where no other services are running.
    This can be achieved via "MSCONFIG"
    1) Click on start type run
    2) Type MSCONFIG in the run prompt
    3) Go to services and click on hide all Microsoft services
    4) Click disable all
    5) Go to the startup in configuration window and disable all startup items
    6) Restart your system
    7) Launch Acrobat/Reader
    If, it is launched without an error, a service on your system is conflicting with Acrobat/Reader.
    Let me know if issue persist.
    Regards,
    Aadesh

  • Acrobat X plugin running in Browser cannot save pdf files locally

    Hi,
    I have a Digital Signature plugin written for Acrobat X and it handles both signature creation and verification. When a PDF with digital signatures is opened in a browser (specifically IE8, IE9) acrobat X runs in browser mode and it calls our digital signature plugin. Our plugin then saves the online PDF to local disk using the following Acrobat X SDK method:
    PDDocSave()
    This normally works fine without any problems under windows 7. However, there are some cases where the PDF does not get saved at all. In that case, if we try running Internet Explorer using "Run as admin", saving starts to work again. From this we have concluded that the saving functionality of our plugin requires Internet Explorer to be run as admin.
    Problem is that, for users without admin rights this behavior is not ideal.
    We have also noted that, if we try to save the PDF opened in a browser using the default save feature of acrobat X, then the save goes through successfully.
    Question is, how can we make our plugin to save the pdf the same way acrobat X does when run under browsers?  What options do we have?
    My system specs: Windows 7 64bit,   Acrobat X v.10.1.4 (occurs in 10.1.1 through 10.1.4),    IE9. 
    Thanks in advance.

    My question is then how is acrobat itslef able to save the same pdf locally at the same destination without any problems. I am assuming it is using the same save api itself.
    If acrobat itself can do it, why cant a plugin running inside acrobat X.
    And if the plugin cannot achieve the same behavior as acrobat then can we conclude that for a digital signature plugin running inside acrobat X which is running in browser mode to open a PDF:
    - Acrobat X itself and the plugins which run inside it behave differently when saving an online pdf locally. And there is no way for the plugin to achieve the same behavior as acrobat itself in this regard.
    - There is no way (either programmatically or otherwise) for the digital signature plugins, to save online PDFs locally, without either running the browser 'as admin' or adding the website, hosting the online PDF, to Trusted websites list of acrobat X.
    - User of acrobat X plugin has to either run the browser 'as admin' or add the pdf hosting website to Trusted websites list to save the opened PDF locally.
    Please confirm if my conclusions are right. And in cases they aren't please explain why. Thanks for you prompt replys.

  • Acrobat 8 Pro will not open without other Adobe Suite program running

    I am running Acrobat Pro 8 on a new Mac (OS X 10.5.4) and it used to work just fine without CS3 installed. Now, all of a sudden (without me changing anything) it refuses to open a pdf saying that another Adobe Suite program must be open for acrobat to run. Don't have any other programs installed to open, really annoying because I want to read pdfs!!!!!!!!!!!!!!

    This is odd. Normally you get that message if, and only if, Creative
    Suite is installed. In the case where Creative Suite is installed, you
    have to run some other CS application, once, to get the licensing
    done.
    Maybe someone installed a demo of CS3, something like that. Check for
    other Creative Suite applications, even if they weren't expected.
    Aandi Inston

Maybe you are looking for

  • Management and creation of realms

    I have the following situation and problem: i have a realm that is, for example, mydomain.net. In this realm i have inserted people who have to use OCS (that don't belong to my company) registered into a group and also people of my company registered

  • Incorrect URL on Calendar List Event in Overlay View

    Hello, We're using Standalone SharePoint 2010 installation. The agency I work for has a Clerical Staff calendar list. This is the principal calendar staff use so it has several other calendars overlaid in the list view. One such calendar was Voluntee

  • Skype not using default browser

    I recently uninstalled Skype to revert to an older version to get rid of the horrible "Skype Home" splash screen. While I found "Skype Home" useless and irritating, it was nothing compared to what I found out when I finished uninstalling. These days

  • Documents to be posted

    Is there any possibilty in the system to have flexibility in document numbering scheme and can it be alpha numeric. sorry if this may be a very basic question. thxs Vsaxena

  • Korean character set

    Hi all, I am having a problem like, My project uses the J2EE Application Model, The problem is , if i made a entry to the site(project) in korean character set, the characterset was broken and gets stored into the database.I am using the korean chara