Command line / batch processing

To be honest, I've only ever used acrobat to read pdfs. That's it. But now I'm trying to put together a packet for work from a bunch of pdfs. Basically, I'll end up with 10+ pdf files with multiple pages each, but I only want my packet to have usually just one page out of each of the original pdfs.
That doesn't seem so clear... I start with a bunch of multi page pdfs. Find the page I want, rename the file to "pageIWantNumber OriginalTitle.pdf" (ie "4 ee_5401_33428").
Then, later on, I want to print out only the selected pages, like in my ie only page 4 from that pdf. Now if I have to just print these to printer that's ok but not ideal.
Ideally I'd like to end up with either multiple pdf files with only one page (so the multiple page pdfs get cut down to only one page, but there are still a bunch of them). And/or then concat them all together to get a multipage single pdf that has each single page from the original multiple page pdfs.
It's not as complicated as it is to explain I don't think.. Hopefully you guys understand. My goal is to automate this, using the space in the filename as a delimiter or something so I can just get all of these done really quickly.

I found this in another post:
Geo Kaiser - 2:25pm Jan 25, 08 PST (#1 of 3)
Have you looked at the "Print 1st Page" batch process?
The script for that command is:
/* Print 1st Page */
/* This sequence prints the first page of
each document selected to the default printer.
/ this.print
bUI: false,
nStart: 0,
bSilent: true
So you can ceate a new batch process and copy the 1st page script and then add the "nEnd" parameter:
/* Print Pages 1-5 */
/* This sequence prints the first six pages of
each document selected to the default printer.
/ this.print
bUI: false,
nStart: 0,
nEnd: 5,
bSilent: true
Which is very similar to what I want to do, but I need to pull off the nStart value from the file name somehow. So "6 4 2 ee-325" would produce something like:
"nStart:2, nStart:4, nStart:6" or something.
Doing this through a .bat file of some sort would be ideal, so maybe I could do the file name parsing through the .bat file and then use a command line interface to adobe to get this done?
ie:
acrobat.exe filename.pdf -print 2
acrobat.exe filename.pdf -print 4
acrobat.exe filename.pdf -print 6

Similar Messages

  • Photoshop Elements 7 Command Line Batch Processing?

    I program in C# or VB .NET using Visual Studio 2008.
    Q. Can I program or write Photoshop command line batch processing scripts?
    I need to take several hundred photos and convert them as follows:
    1. Import .jpg
    2. Resize image
    3. Convert to layer
    4. Drop-shadow & resize canvas
    5. Rotate-arbitraty (variable 3 deg cw - 3 deg ccw)
    6. Save for use in web as .gif (transparent background)

    You might be better asking in the SDK forum or Elements forum.
    But if it was me I would use JavaScript where all you have listed is possible.

  • Discoverer 10g Command Line Batch Mode

    Hi all,
    Discoverer Desktop Client 10.1.2.48.18
    I want to run a batch of Workbooks and export the query outputs to MS Excel files using a command line batch job. I am trying to confirm whether it is possible to include multiple Workbooks in my batch request and also whether I can produce log files for each individual export.
    I have created a Command File (cmdFile.cmd) as follows:
    /connect username/password@sid /open H:\Discoverer\afr1019.DIS /sheet ALL /export xls H:\Disco10gOutputs\afr1019.xls /batch
    /connect username/password@sid /open H:\Discoverer\ag0521.DIS /sheet ALL /export xls H:\Disco10gOutputs\ag0521.xls /batch
    And to run this command file I run the following command:
    C:\oracle\disco10g\bin\dis51usr.exe /cmdfile H:\Disco10gOutputs\cmdFile.cmdHowever the only output file is the last entry in my Command File i.e.ag0521.xls
    Can anyone explain this phenomenon please?
    Kind regards,
    Gary.

    Hi,
    You will not be able to export more that one workbook using a single Discoverer export. You need to use multiple command files, for example, create a .bat file containing:
    C:\oracle\disco10g\bin\dis51usr.exe /cmdfile H:\Disco10gOutputs\cmdFile1.cmd
    C:\oracle\disco10g\bin\dis51usr.exe /cmdfile H:\Disco10gOutputs\cmdFile2.cmd
    And then have each export in a separate cmdFile.
    Hope that is clear.
    Rod West

  • File Adapter OS Command Line After processing (UNIX)

    Hi guys,
    I want to run only one line after message processing:
    compress -f %f
    It must be compress seeing as this is the way we use it on our legacy system where it adds the extension .Z.
    It seems crazy to write a shell script for only one line. Is there any way to run this line without using a shell script and if so should I run it in some additional characters?
    Also if this isn't possible, please show me an example of how the shell script would look like, and where on the XI server this shell script should be saved.
    Thanks a million!
    Anneke

    Hi Anneke,
    Check this blog by Sameer
    /people/sameer.shadab/blog/2005/09/21/executing-unix-shell-script-using-operating-system-command-in-xi
    Should help u out

  • How do I process user command line arguments inside of the Sequence Editor?

    Using TestStand 4.0, how would I go about storing "extra" command line arguments processed from the /runentrypoint command in the Sequence Editor specifically?

    djdewitt -
    TestStand 4.2 does not have this feature; however, we do have an internal issue (#163169) to track this request. You can actually get the commandline passed to the TestStand Sequence Editor using the below psuedo code in a sequence; however, currently the TestStand Sequence Editor displays a prompt when it does not recognize a custom token on the command-line and there is no way to suppress this.
    Locals.AppMgrRef = RunState.Engine.GetInternalOption(InternalOption_ApplicationManager);
    Locals.CommandsRef = Locals.AppMgrRef.CommandLineArguments;
    Locals.CountNum = Locals.CommandRef.Count;
    For i=0 to Locals.CountNum - 1
        Locals.CommandString = Locals.CommandRef.Item(i);
    End
    One suggestion is to use a batch file to write the commands to a dedicated text file and then launch the sequence editor. You can then use a sequence in the sequence editor to read from the file.
    Lastly, I just tried something and I do not necessarily recommend this, but I noticed that the Sequence Editor does not prompt when using the /goto token, so if I use the below command-line, it seems that no prompt appears, the goto command does nothing, and the psuedo code accesses the command-line tokens: 
    "C:\PathToApp\SeqEdit.exe" /goto "location tokens that do nothing" /run MainSequence "C:\PathToSequenceFile\GetCommandLineArgs.seq"
    Keep in mind that NI does not necessarily support this but it does seem to work for now.
    Scott Richardson
    National Instruments

  • Slow processing time, via Command line, with Reader

    I'm using Reader 9, via command line, to process PDFs in a 3rd party application and it's taking much longer to process files this way than with Acroplot or Ghostscript.  Is there a way to improve this processing time?
    thanks

    Ladies and gentlemen.....I have solved my problemo!
    The reason why the rest of the reports were getting the 'could not open file.' error was due to the fact that each discoverer instance launched was
    trying to access the same standard log file simultaneously.
    I modified each cmd file to write logging info to individual files: eg
    /logfile "H:\Projects\DRP Import Modelling\Automation\input2_log.txt"
    Now that's there's no contention with logging, the reports are firing off beautifully in parallel :)
    I am definitely having a beer this evening!
    Thanks for everyone's input...kept me on the righteous path :)

  • Automated Purge functionality using runjob command line prompt?

    We are currently running scheduled jobs through a command line interface using various batch scripts.  We are calling the runjob command.
    My question, is there a Purge command prompt that we could include in these scheduled jobs to automate desired purges?  We don't want to use the runopsjob command because this is taking away from our ability to view data in our created results books.
    Thanks,
    Jordan

    Hey Mike,
    So let me layout the situation we are currently in.  For our end-users, we generate results books showing data quality consistency issues between 2 systems.  Those results books may have upwards to 100 tabs that the users will go into and analyze for what exactly is causing the discrepancy.  Along with those results books, we populate Dashboards that will give a high-level understanding of what pages in the results books need attention as well as track our improvement overtime to present to upper management.
    Our issue is that our storage space isn't sufficient for the large quantity of processes and records being ran and populated in EDQ.  Therefore, we want to set up an automated purge schedule that we can use and incorporate with our command line batch scripts where we run the RUNJOB command.  This almost seems as if it should be consider an enhancement request to either allow RUNJOB to have an automated purge schedule functionality or allow RUNOPSJOB to populate results books and dashboards.
    What are your thoughts around this and what advice would you have moving forward?
    Thanks,
    Jordan

  • How to run report on command line with user parameter?

    Hi,
    How do I run oracle report on command line (batch) with pre-set User Parameter values ? e.g. :P_1 ='SYSDATE' , :P_2 = 'DEPT_NO'
    Thanks

    Hello,
    If you are using rwrun :
    rwrun report=myreport destype=file desname=c:\temp\myreport.pdf desformat=pdf P_1='SYSDATE' P_2='DEPT_NO' userid=scott/tiger@dbalias
    If you are using rwclient , just add server=<reports server name> :
    rwclient server=myrepsevrername report=+myreport+ destype=file desname=c:\temp\myreport.pdf desformat=pdf P_1='SYSDATE' P_2='DEPT_NO' userid=scott/tiger@dbalias
    Regards

  • Batch processing images of various sizes

    I'm trying to create 125 pixel square thumbnail images using a batch process and I'm having trouble getting it to work consistently with images that have different aspect ratios. I think I know why it's working the way it is, but I don't know how to work around the function. Here is what I'm doing that doesn't work when the image proportions change:
    1. Resize image to 125 pixels high using the "constrain proportions" option.
    2. Resize canvas to 125 pixels wide, thus cropping the sides to create the square image.
    Then I have another process that does the same thing with images in portrait orientation. The problem is, I have some images that are 640x480, for example, and some that are 640x360. If I create the command using a 640x480 image, the 640x360 images are skewed when run through the batch because the "resize image" step is actually setting the dimensions of the image, rather than maintaining the proportions of that particular image. I thought about setting the canvas to a square first, but since not all my images are the same dimensions, I'm not sure how to account for that.
    Anyone have any thoughts? I also have Photoshop, but as a novice, I've found Fireworks to be a little more intuitive for some of these basic commands, particularly batch processes.
    Any help would be appreciated. Thanks so much!
    Jeremy

    It seems tricker than one might expect to create square thumbnails!
    I'm a little confused by the results you're describing. When I try using Modify > Canvas > Canvas Size to crop a document, the result appears in the History panel as "Crop Document". If I select that step and choose "Copy Steps to Clipboard", then paste the results in a text file, I get something like this:
    fw.getDocumentDOM().setDocumentCanvasSize({left:16, top:0, right:141, bottom:125}, true);
    This reveals that the canvas is being cropped according to a specific bounding rectangle that may or may not be a great fit for all the other images being processed (depending on their widths). For a more foolproof result, a rectangle like {left:0, top:0, right:125, bottom:125} would be a better choice; however, aesthetically, I'd personally prefer that images be cropped from the center, not the left side.
    If I had something better to suggest here, I would. It might be worth checking out Photoshop to see if this type of operation is any easier. Here's one online tutorial on the subject: http://demosthenes.info/blog/347/PhotoShop-Batch-Processing-Generating-Image-Thumbnails-vi a-Automated-Crop-&-Resize

  • Batch processing for f4vpp

    Is it possible? Whenever I try f4vpp -i *.* or *.f4v, it returns an error that it can't find the file. It's a real pain manually converting any large number of files.

    This command should batch process all of the .F4V files in your current directory:
    for %i in (*.f4v) do f4vpp -v -i %~ni.f4v -o %~ni.mp4

  • Q. Any command-line options for Digimarc and Elements 7 batch file processing?

    Q. Any command-line options for Digimarc and Elements 7 batch file processing?

    Are you a digimarc subscriber? You would be better off asking them, if so.

  • Could not call batch from command line processing

    I am experiencing a strange scenario where I am able to run the FR report by scheduling a batch in HFM and that creates RecRecon successfully. I am trying to do this as a batch script by using the command line script ScheduleBatch.cmd <xml file> <server name> <user name> <pass word>.
    This fails to create the report and I see an error message as below
    "Problem encountered in 'EMERALD/Admin/RecReport01'
    Error executing query: The member user Point of view for Year doesn't exist in this application"
    Can any one of you help me recover this issue?

    answered by support

  • 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, NY

    Acrobat 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.

  • Run App Engine through command line but have it show up in Process Monitor

    We are trying to run Application Engine through command line and have it show up in the Process Monitor.
    We have successfully ran the Application Engine through command line. We also can successfully run the Application Engine through PIA.
    Only when you run the AppEng through PIA it goes through the Process Scheduler and shows up in the Process Monitor.
    We would like to be able to do this through command line as well. Has anyone done this before?

    I'm not sure if it is (easily) doable.
    => Fire a process through the front end appl is nothing but insert few rows in process scheduler tables settings (PSPRCSRQST, PSPRCSQUE), then the process scheduler is taking information from there every x seconds and eventually run the command (on the process scheduler server) keeping an eye on the process result in the tables to post the result.
    => Fire psae through command line (or pssqr) bypass the process scheduler, you can run it from any client... so even without any clue about Process Scheduler server or even without Process Scheduler at all (cf. the very first AE running during an installation is VERSION without anything else than the client).
    So finally, your AE program has no clue where it should run outside the client you are fired the command from (i.e. on the batch server as it is running when you are fired the same AE through the front end application), nothing more about the process scheduler configuration file, and where the output files should be posted.
    Maybe not by running the AE from the command line, but by simulating the actions as it would be from the front end application, for instance by inserting in the tables whatever you want to run... but it sounds odd. Probably some developer might have done this before... but this should be reconsidered by Peopletools version/patch level (or through CI ?)
    Nicolas.
    added the last paragraph
    Edited by: N Gasparotto on May 21, 2010 2:46 PM

  • Running reports via command-line with /batch option

    Hi,
    I have created a batch file which runs, and exports the results of 7 different discoverer reports with /batch option.
    Contents of batch file:
    c:\orant\discvr4\dis4usr /cmdfile "H:\Projects\DRP Import Modelling\automation\DRP Model Input1.txt"
    c:\orant\discvr4\dis4usr /cmdfile "H:\Projects\DRP Import Modelling\automation\DRP Model Input2.txt"
    c:\orant\discvr4\dis4usr /cmdfile "H:\Projects\DRP Import Modelling\automation\DRP Model Input3.txt"
    c:\orant\discvr4\dis4usr /cmdfile "H:\Projects\DRP Import Modelling\automation\DRP Model Input4.txt"
    c:\orant\discvr4\dis4usr /cmdfile "H:\Projects\DRP Import Modelling\automation\DRP Model Input5.txt"
    c:\orant\discvr4\dis4usr /cmdfile "H:\Projects\DRP Import Modelling\automation\DRP Model Input6.txt"
    c:\orant\discvr4\dis4usr /cmdfile "H:\Projects\DRP Import Modelling\automation\DRP Model Input7.txt"
    Sample of a cmd file the bacth file runs:....
    /connect user/password@oraprd /apps_responsibility "BIS Super User"
    /open "H:\Projects\DRP Import Modelling\Dev\Intransit Extract.dis"
    /sheet 1 /export xls "H:\Projects\DRP Import Modelling\automation\Intransit Input.xls" /batch
    The batch file runs ok and processes each report in sequence, and creates the excel export one after the other.
    However, I need to process the 7 reports in parallel, so changed the batch file to process in own thread :
    start c:\orant\discvr4\dis4usr /cmdfile "H:\Projects\DRP Import Modelling\automation\DRP Model Input1.txt"
    start c:\orant\discvr4\dis4usr /cmdfile "H:\Projects\DRP Import Modelling\automation\DRP Model Input2.txt"
    start c:\orant\discvr4\dis4usr /cmdfile "H:\Projects\DRP Import Modelling\automation\DRP Model Input3.txt"
    start c:\orant\discvr4\dis4usr /cmdfile "H:\Projects\DRP Import Modelling\automation\DRP Model Input4.txt"
    start c:\orant\discvr4\dis4usr /cmdfile "H:\Projects\DRP Import Modelling\automation\DRP Model Input5.txt"
    start c:\orant\discvr4\dis4usr /cmdfile "H:\Projects\DRP Import Modelling\automation\DRP Model Input6.txt"
    start c:\orant\discvr4\dis4usr /cmdfile "H:\Projects\DRP Import Modelling\automation\DRP Model Input7.txt"
    The reports kick off at the same time and I can see 7 dis4usr.exe processes running via task manager
    Problem:
    The first reports runs and exports ok.
    All the others dis4usr.exe processing stops with the following error pop-up:
    ! Could not open file. OK
    Question:
    Can you only process reports sequentially via command line mode with /batch option?
    If not...what am I missing...its driving me insane :)
    All asistance is greatly appreciated. Thanks

    Ladies and gentlemen.....I have solved my problemo!
    The reason why the rest of the reports were getting the 'could not open file.' error was due to the fact that each discoverer instance launched was
    trying to access the same standard log file simultaneously.
    I modified each cmd file to write logging info to individual files: eg
    /logfile "H:\Projects\DRP Import Modelling\Automation\input2_log.txt"
    Now that's there's no contention with logging, the reports are firing off beautifully in parallel :)
    I am definitely having a beer this evening!
    Thanks for everyone's input...kept me on the righteous path :)

Maybe you are looking for

  • Tabular form on a view :ORA-01446: cannot select ROWID from, or sample...

    Hi, I have two tables CUSTOMERS =========== Name Null Type ====================== CUST_UID NOT NULL NUMBER(4) CUST_NAME VARCHAR2(50) ITEM_PRICES =========== Name Null Type ====================== IP_UID NOT NULL NUMBER(4) IP_ITEM_DESC VARCHAR2(50 IP_C

  • IPod shows up in finder, not in iTunes.

    Alright, so I've got a 40GB 4G iPod. I originally used it with a PC, but recently upgraded the harddrive and RAM of an old 466 GHz clamshell iBook and am using that as my primary computer. Transfering my music came with its own problems, but they hav

  • My at@t service won't switch to my new phone

    I just upgraded to the new iphone 4s and all the apps info and everything synced but my at@t service won't switch to the new phone? 

  • Crystal Report-BW Query free characteristics missing

    Hello, I am working on a crystal report against BW query, I am using SAP menu to build the report. I see that free characteristics not coming into the crystal report. Question1: Is this an issue or is it designed to work this way? Question2: As an al

  • Pre requisite for Release Cancell

    Hi All, We are using Release strategy for PO/Contracts and have mantained different release groups.Also the codes assigned in each group has prerequisites in sequence of hierachy levels of the releasing authorities. This works fine as unless the prev