How to execute My Javascript code from command line or through perl or VB
Hi Forum,
I am a new bie, just 2 days old to acrobat and javascript, and I am basically a perl developer
Here with I have created a small script to merge two pdf
// Create a new PDF document:
var newDoc = app.newDoc();
// Insert doc1.pdf:
newDoc.insertPages({
nPage : -1,
cPath : "/d/sathish/1.pdf",
// Insert doc2.pdf:
newDoc.insertPages({
nPage : newDoc.numPages-1,
cPath : "/d/sathish/2.pdf",
// Save the new document:
newDoc.saveAs("/d/sathish/myNewDoc.pdf");
My code is working fine and merging properly,
Is there any way to execute this script through commandline or using some other scripting languages like perl or through VB
My objective is to automate the merging process without any manual intervention, I don't want to open acrobat manually to execute this javacript, i want to automate that process too,
Please suggest me which will be very helpful to me,
Thanks in advance
Thanks & Regards
Sathish V.
Hi Sathish,
did you find a solution for this? I am looking for the same thing. I want to write a program(perl, batch script, etc.) which could automatically convert pdf to excel without any manual intervention.
I have the acrobat javascript which could achieve this, but it can only be executed in arobat consolt. I need it to be able to get executed in a script to automate the processing.
thanks
Warren
Similar Messages
-
How to execute an ODI package from Command Line
Please can anyone help me to know how to execute an ODI package from the command line without creating a scenario from the package.
Appreciate your help.
Thanks
BYou can't. Create a scenario and then execute that from the command line.
-
How to run a 10g report from command line ?
Good Afternoon,
Please advise if there is a way to run a 10g report from command line.
We use 6i right now and our job scheduler runs reports using "D:\ORADEV6I\BIN\RWRUN60.EXE ..." executable in batch mode on a separate server. We plan to migrate to 10g Database, Forms, Reports. Is there a way to keep this functionality and create a "command" to address an report server and run a report?
Thank you,
DmitriSteps to take.
(1.) In command prompt type RWSERVER SERVER=repserver1 to star the rep server.
(2.) If you get "Javaw.exe The procedure entry point psoasyn could not be located in the dynamic link library orapls10.dll." error do one of the following
(a.) Type the full name for the server. D:\OracleDevR2\bin\rwserver SERVER=repserver1
or, if it does not work
(b.) Add D:\OracleDevR2\bin to the system env. variable PATH
(3.) Start OC4j
(4.) Now you can access the jobs using URL like:
http://192.161.11.143:8890/reports/rwservlet/showjobs?server=repserver1
where 192.161.11.143 is your machine's IP address. -
Execute a stored function from command line
Hello,
I have a db stored function and I need to execute it from command line. I've tried by this way:
(I need to connect with sys credentials)
sqlplus sys/mypwd@mydb AS SYSDBA @myfile.sql
and myfile.sql is:
exec myschema.sf_test;
but I get this error:
ERROR at line 1:
ORA-06550: line 1, column 7:
PLS-00221: 'sf_test' is not a procedure or is undefined
ORA-06550: line 1, column 7:
PL/SQL: Statement ignoredYou can use exec command for the execution of a procedure with out bind variable, but for a function always use bind variable.
Function should return a value, so you must have to assign the function return value to a variable.
like given below(or simply query the function using select statement)
Method 1
======
variable v1 number;
exec :v1 := t_func;
Method 2
======
declare
x1 NUMBER;
begin
x1 := t_func;
end;
SQL> create function t_func return number
2 as
3 begin
4 return 0;
5 end;
6 /
Function created.
SQL> exec t_func;
BEGIN t_func; END;
ERROR at line 1:
ORA-06550: line 1, column 7:
PLS-00221: 'T_FUNC' is not a procedure or is undefined
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
Method 3
======
SQL> select t_func from dual;
T_FUNC
0
Regards
JJ -
How to open an online pdf from command-line
Hi,
I'm trying to get my application to open a pdf file from an url like http://xxxx.dk/xxx.aspx?CID=xxx
it work from inside adobe reader so the pdf file is a functionel file, but when i try to open it from command line like: AcroRd32.exe /n /A "pagemode=none" "http://xxxx.dk/xxx.aspx?CID=xxx" i keep getting an error telling me "There was an error opening this document. The filename, directory name, or volume label syntax is incorrect"
does anyone have an idea of what i need to do? i could also make a public test if someone needs to see the issue "live"it works with the browser, so no problems there.. i just wanted the pdf file to open in adobe reader instead of browser window, as it opens from a windows application.. but perhaps i need to look more into merging a embedded pdf viewer in the application instead..
-
How to run Report Builder Report from Command line
Hello,
Can Oracle Report Builder Report (run time report) run from Command line ( SQL prompt or Shell script).
Quick response will be appreciated.
Thanks,
AtifHi Atif,
please see Note 74648.1 on Metalink.
Monica -
How to export and import database from command line?
I am trying to export my old database into new server.
However, I want to export and import that database from command line.
Is it possible?
Thanks.
SZI used this command
exp username/password@database full=y
my export log file is as follwing:
Connected to: Oracle8i Enterprise Edition Release 8.1.5.0.0 - Production
With the Partitioning and Java options
PL/SQL Release 8.1.5.0.0 - Production
EXP-00037: Export views not compatible with database version
EXP-00000: Export terminated unsuccessfully -
How to execute a javascript directly from a c++ plugin?
I have created a photoshop plugin. I need to execute a javascript from the plugin itself. I am able to execute the script if I write the script in a seperate jsx file and execute it using its path(filename). But I need a method to execute script if that script is there as a string within the plugin code. Thanks
Hi,
On what data 'ExecuteScript' works?
Could you develop a filter which creates layers, applies on them some actions using Photoshop's filters (Using 'ExecuteScript') and then continue to work on them?
Thanks. -
How to automatically run javascript code from Captivate 3?
Howdy everyone,
My company uses a custom webpage to display the finished SWF files generated by Captivate 3. This page has menu buttons on the side that link to other videos that are related to the video being watched.
We want to add a little bit of spice to the menu, and highlight the next video in the series after the current SWF has finished playing.
Now I know that Captivate 3 will launch a Javascript code when either a button is pushed, a text box is used, or a clickbox is activated, but we are looking for a way for Captivate 3 to launch a Javascript code apart from user input. Any suggestions?Hi there
One of the options you have available when Captivate finishes playing a movie is to Execute JavaScript. Perhaps use that?
Click Edit > Preferences...
Cheers... Rick
Click here for Adobe Certified Captivate and RoboHelp HTML Training
Click here for the SorcerStone Blog
Click here for RoboHelp and Captivate eBooks -
How to log BIAR export/import from command line
Hello
Can anyone please tell me how to log the actions during the import (or export) of a BIAR file when it is executed from the command line
OR
If this type of logging is enabled by default then can anyone tell me where the log files would typically be found
Best regards and thank you
Patrick
C:\Program Files\Business Objects\common\4.0\java\lib>
java -jar biarengine.jar MyCMSImport.propertiesHi,
We can get the log files for the actions that happen during the import / export via Import Wizard.
Complete these steps to create a log file:
1. Create the following Windows system variables:
BO_TRACE_CONFIGDIR = C:\Botrace
BO_TRACE_CONFIGFILE = C:\Botrace\BO_trace.ini
BO_TRACE_LOGDIR = C:\Botrace
2. Copy the BO_trace.ini file to the c:\Botrace folder.
3. Run the Import Wizard and then view the BO_trace.ini file in the c:\Botrace folder.
Additional Information
The following are the default values in the BO_trace.ini file:
active = true;
importance = xs;
size = 1000000;
keep = true;
Hope this helps.
Regards,
Deepti Bajpai -
How to start OracleOraDb10g_home1iSQL*Plus service from command line (PC)
After installing 10G, I now have a service with this name: OracleOraDb10g_home1iSQL*Plus
I need to be able to start/stop the service from windows 2000 command line,
BUT "net start OracleOraDb10g_home1iSQL*Plus" DOES NOT WORK.
Adding quotes around the service name does not solve the problem either.
Both attempts give "The service name is invalid" errors.
Can anyone provide a solution?
THANKS!Sorry, but none of the suggestions works. Thanks for trying though.
1) Renaming the service only changes the display name, and then when you use "net start", it errors with: "The service name is invalid"
2) call isqlplus start errors with "isqlplus is not recognized as an internal or external command..."
3) You cannot execute isqlplussvc.exe directly either.
Any more suggestions? -
How to send e-mail attatchement from command line
Hi,
Is it possible to send an e-mail with some attatchment like a .zip file through command line in iPlanet messaging Server 5.2.
Please let me know the procedure.,
Thanks
RajeevI suggest you try blat.exe from www.blat.net
I use it regularly to send myself statistics and logfiles from servers without any client. Can be automated in a script.
Eli -
How could execute acrobat plug-in in command line?
I am using acrobat plug-in to develop my own application.
But I don't want to launch acrobat plug-in feature through acrobat menu item.
Is it possible to launch acrobat plug-in(.api) with command line or outside acrobat?There is no way to do it from the command line, but you can establish
whatever form of IAC/IPC between your plugin and your external application
as you wish. COM - DDE - IPC - named pipes - shared memory - shared files
- etc.... -
How to export an environment variable from command line ?
Hello,
I have build a python application which run some processes(or executable or other python scripts) using subprocess.
i.e.
subprocess.call(["xyz.py"], shell=True, stdout=log_file, stderr=log_file)
Above call throws an error as "xyz.py is not recognized as an internal or external command." I added the location of xyz.py into path variable inside a batch script which I used to run before running the script.
set PATH=D:\path of xyz:%PATH%
But As subprocess executes a script into anther child shell, This setting is not available in child shell (or sub-shell) used by python script.
How can I make this PATH setting available to sub-shell also ?Rather than going into much details I have used explicit path by referring only one environment variable of the shell where application is running.
i.e. As xyz.py will be in a specific location of my repository, I am setting path of root_dir:
set root_dir=<path_of_root_dir>
And then,
subprocess.call([os.path.join(os.environ['roo_dir'], 'dir', 'xyz.py')], ...) -
How can i change printer settings from command line
hello
i want to use command that changes printer to print grayscale or color
the best i find is to use: rundll32 printui.dll,PrintUIEntry
but i cant find color settings there
i would like your help with that
thanks alot !We may have to wait for an update. Aside from changing the country, I'm not sucre this can be done. There is no Health App in the System preferences and no way to modify from within the app. Weird.
If you go to Language & Region under general settings and choose any other country, you will get Metric. I have the opposite problem. I live in a Metric country and want my health app to be in lbs and inches which is what I am used to.
Maybe you are looking for
-
I rebooted my macbook pro recently and downloaded mountain lion. Afterwards iPhoto dissapeared and I canr seem to restore it. Any suggestions?
-
Need help forcibly ejecting a CD. I've tried *everything*
Hello all, I attempted to burn an ISO to a brand new CD-RW disc on an Intel 1.86Ghz Mac running OS X 10.4.6. Unfortunately, after preparing the file to be written, OS X produced an error dialogue about the CD being unable to be written to (it had don
-
Error when trying to install Oracle BPEL Process Manager
I'm receiving this when trying to install Oracle BPEL Process Manager setup.exe has encountered a problem and needs to close. We are sorry for the inconvenience. If you click in the details, I can see: Error signature AppName: setup.exe AppVer: 0.0.0
-
Iphone speaker broke. Will warranty cover it.
Recently my iphone's plastic cover which covers the speaker broke off of the left side and now that speaker is not protected and the speaker itself is visible and can be damaged.. Will apple cover this problem in the warranty.
-
I received a new office computer and all of my programs were to be moved over. I do not have my PDF converter. How do I get that back on?