Acrobat 9 Batch Processing - Get PDF filenames from folder?

Hello,
Can anyone provide me with an example with how to use Batch Processing (when set to a specific folder/files) to get a list of filenames in that folder? I haven't been able to find any examples online. There doesn't seem to be any built in batch sequences that automatically do this so I assume it will need to be done with javascript?
Ultimately, I need to automate a process (I was hoping to create a batch sequence to accomplish this) that will allow me to prompt a user to pick a source folder of PDFs and then based on that selection, run a Javascript that I create which will merge all PDFs in that folder into a new PDF, apply some crop setttings to each page, and then prompt the user where to save the merged PDF?
Has anyone ever done anything like this? I would love to see an example of how this might be able to be achieved.
Many thanks in advance.

Have you tried to create a test batch process (now called Actions)?  Actions in Acrobat 10 has the "merge all files in folder" option, and batch processing in previous versions has always included a page crop commad as well as an option for asking the user where to save the file.
There are lots of examples and articles on this topic at http://www.acrobatusers.com
Thom Parker
The source for PDF Scripting Info
pdfscripting.com
The Acrobat JavaScript Reference, Use it Early and Often
Then most important JavaScript Development tool in Acrobat
The Console Window (Video tutorial)
The Console Window(article)

Similar Messages

  • Print PDF file from folder using SSIS

    Is there a way in SSIS to print pdf file from folder?
    ANy help much appreciated.

    One method is calling Adobe Acrobat Reader exe from Execute Process Task within SSIS passing the document path as the argument
    The command and arguments will look like this
    http://geekswithblogs.net/JeremyRamos/archive/2013/10/22/print-ssrs-report--pdf-from-sql-server-agent-or.aspx
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • How to get all images from folder in c#?

    I am trying to get all images from folder. But it is not executing from following:
     string path=@"C:\wamp\www\fileupload\user_data";
                string[] filePaths = Directory.GetFiles(path,".jpg");
                for (int i = 0; i < filePaths.Length; i++)
                    dataGridImage.Controls.Add(filePaths[i]);
    Please give me the correct solution.

    How to display all images from folder in picturebox in c#?
    private void Form1_Load(object sender, EventArgs e)
    string[] files = Directory.GetFiles(Form1.programdir + "\\card_images", "*", SearchOption.TopDirectoryOnly);
    foreach (var filename in files)
    Bitmap bmp = null;
    try
    bmp = new Bitmap(filename);
    catch (Exception e)
    // remove this if you don't want to see the exception message
    MessageBox.Show(e.Message);
    continue;
    var card = new PictureBox();
    card.BackgroundImage = bmp;
    card.Padding = new Padding(0);
    card.BackgroundImageLayout = ImageLayout.Stretch;
    card.MouseDown += new MouseEventHandler(card_click);
    card.Size = new Size((int)(this.ClientSize.Width / 2) - 15, images.Height);
    images.Controls.Add(card);
    Free .NET Barcode Generator & Scanner supporting over 40 kinds of 1D & 2D symbologies.

  • Batch processing / Creating Pdf from multiple folders

    Need to convert some 50 folders each containing 100 jpg files into pdf. Up to now I made this via "Create pdf" each folder separately.. I tried to do this as a whole via "batch processing" but the sequences in there do not foresee the automatic creation of these folders. Any solution to this ?
    Am working with Adobe Acrobat 8.0 Pro and Windows Vista Ultimate
    Thks

    can you move all the folders to a main folder then you can have the batch point to the main folder then create another folder for the pdf to go into.

  • Batch process crop Pdfs in background

    Hello
    Have read various posts on here, and from what I read I'm not sure it's possible... but thought I'd ask!
    I am using Acroboat XI Pro and after each print production cycle, I have a huge batch of PDFs with printer marks/bleeds etc which I want to crop by batch process down to A4.  In our previous version of Acrobat we could configure the action, point it to a source folder, and run the action, saving the cropped files into a separate processed folder. Easy.
    Using Action Wizard, I haven't been able to find a way to specify a destination folder - and running the Wizard either prompts us to overwrite the source file, or I can add a Save action and rename the file. This isnt ideal as we ideally want to retain the same naming convention.
    I guess I could rename the files, then use Bridge to strip the added prefix out - but want to avoid over-complicating what used to be a one-click process :-(
    Can anyone let me know if they have found a way around this.
    Much appreciated
    Sharon

    Change the Save command to "Save to local folder" (by clicking the arrow icon next to it), and then select where you want to save the edited files.

  • Image Sequences and Batch Processing: Can opening files from different folders as image sequences be set up as an action for batch processing?

    I have an ongoing series of tasks that necessitates opening the contents of a series of folders as image sequences.
    I'm used to setting up some fairly complex actions, including ones that are intended to be applied to all of the contents of materials in various subfolders, but for some reason I cannot get an Open-with-Image-Sequence-Checked action to set up in a way that will batch process correctly.
    Complicating matters is that the file prefixes (i.e., the letters before the sequential numbers) and the folders will always have different names from the last time the process had to be carried out.
    The steps I would like the action to carry out would be the following:
    1. Open Subfolder 1 - that is, Photoshop shouldn't be looking for a specific folder. It's just *any* subfolder to the current parent folder.
    2. Select first file in sequenced set of files.
    3. Open as an image sequence.
    4. Open Subfolder 2.
    5. Select first file in sequenced set of files.
    6. Open as an image sequence.
    ...rinse and repeat until Photoshop runs out of subfolders to check.
    Am I asking the impossible?
    Thanks!

    I'll look around there,  because I had posted something about this and was told to look here ps-scripts - Browse /Image Processor Pro/v3_0 at SourceForge.net  
    then this is the image here:
    is the result I received.  Granted I'm new to using scripts and actions for image processing large amounts of files.  

  • Get pdf filename during initialize:

    I wonder to get the pdf filename during initialize, may i know is it possible?
    Thanks your concern.
    Tham

    ASFileSysOpenProc is not suitable. It is used for the opening of all
    files, not just PDF files, and you do not provide it for the standard
    filesystem: it is a standard part of Acrobat.
    Since it is documents you are interested in, rather than files, you
    would want to look at the document related callbacks (CosDoc, PDDoc,
    AVDoc). I can see why you wouldn't find it though, the Acrobat API
    documents are breathtakingly awful, ever since someone had the bright
    idea of replacing a human editor with a programmer generated file.
    You need to use the PDDocDidOpen notification (notification is the
    buzzword here, not callback), registered with
    AVAppRegisterNotification. Try documents from an older version of the
    SDK, the Acrobat 8 SDK is beyond a joke.
    Aandi Inston

  • Acrobat Batch Processing...

    I am created one batch process in the acrobat 6 for open the pdf file and save it as Word .doc file and close the pdf file, now i want to run this acrobat batch file from other application that is i want to run this batch file by using .net..... Is it possible? reply me......
    Thanking You,,
    Thirusanguraja V

    No, that's not possible.

  • Batch Processing Mass PDFs to Word. Constant "Save As".

    I have a huge amount of files to convert from PDF to MS Word for my job. I understand how to do a batch process using Action Wizard, however, the process has been painful because it has to actually open up every single document to convert.
    Before it moves to the next file it asks, "Save As" for every document which is taking forever and I need to meet deadlines.
    Is there a way around this?? I am using Windows 7 with Adobe Acrobat Pro XI 11.0.07.79
    Thanks

    If it goes into Not Responding and then comes back, don't worry at all. This is working properly.
    Many people think that "Not responding" always means some awful thing has happened and it must be fixed. No, you've just asked it to do something that takes a long time, and it's so busy that it doesn't respond when Windows asks if it is free for more work.
    It's a hint from Windows that something MIGHT be wrong, but not if it does finish and come back to normal.
    It also isn't the computer that goes "not responding", it's a single app. You can run other apps. But you certainly can't make Acrobat do something else while this is happening. It is a simple interactive tool designed for light use, so it isn't expected to be used for thousands of files.

  • Applescript: filenames from folder to append to csv

    For my bookkeeping I need to scan and store my receipts as a PDF file, but transfer some information (like amount and category) to an Numbers (Excel)-sheet as well. I'm using TextExpender to include al information needed for the Numberssheet inside the filename, which looks something like this:
    UIT4,20130401,23,categoryA,.pdf
    I want to transfer all the pdf-filenames in the folder to append to a csv file, so I get:
    test.csv
    UIT4,201304001,23,categoryA
    UIT5,201305002,25,categoryB
    UIT2,201306001,22,categoryA
    etc.
    I can import the csv in Numbers and all is well.
    My question for you is how can I use applescript to get all the pdf-filenames in a folder to append to a csv-file?
    I've tried this modified script by Pierre L, but I get a error regarding the ending of the file??
    set theFolder to choose folder
    set theTextFile to POSIX file "/Users/user_name/Desktop/test.csv" -- for example
    set theText to read theTextFile
    tell application "Finder"
        set theFileNames to name of files of theFolder whose name extension is "pdf"
        repeat with thisName in theFileNames
            try
                set xx to (text 1 through 2 of thisName) as integer
                set theNewFileName to paragraph (xx + 1) of theText
                if character 3 of thisName is "-" then
                    set theNewFileName to theNewFileName & character 4 of thisName
                end if
                set name of file thisName of theFolder to theNewFileName & ".pdf"
            end try
        end repeat
    end tell
    If you'd like to help out, that would be great!

    Or perhaps you could write the replacement for "_" into ";" in the Applescript itself.
    That's pretty easy using AppleScript - that way you could leave the file names intact and just change them before writing the data to the file. There are several ways of doing this and, unless you really want, I won't delve deep into the process of using text item delimiters, but an example script is below.
    - the script lets me choose a folder in a dialog box, is it also possible to direct it to a pre-specified folder?
    Of course. The first line is the one that triggers the Choose Folder dialog:
    set theFolder to (choose folder)
    You can just change this to any folder on disk by providing its path:
    set theFolder to "Macintosh HD:Users:username:Desktop:My folder"
    and making sure you tell the Finder that this represents a folder path:
              set theFiles to every file of folder theFolder whose name extension is "pdf"
    (note the addition of the 'folder' keyword.
    - is it possible to let the script create a new CSV-file named OUT4_[current date].csv?
    Yes, but....
    The third line in the script creates the output file.
              set csvFile to open for access (file ((path to desktop as text) & "my.csv")) with write permission
    You can call it whatever you like - replace 'my.csv' with the desired file name. Just be careful in putting formatted dates into filenames since characters like the '/' in '11/24/2013' will be confusing since the / is used as a directory delimiter ('11/24/2013' would normally indicate the file called '2013' inside the '24' folder that is inside the '11' folder). Date formatting in AppleScript can be tricky, but its certainly do-able. How do you want it formatted?
    Revised script that incorporates replacing underscores with commas:
    set theFolder to "Macintosh HD:Users:you:Desktop:Some folder"
    tell application "Finder"
              set csvFile to open for access (file ((path to desktop as text) & "my.csv")) with write permission
      set eof csvFile to 0 -- remove this line to append data
              set theFiles to every file of folder theFolder whose name extension is "pdf"
              repeat with eachFile in theFiles
                        set fn to name of eachFile
                        set csvData to my replaceChars(fn, "_", ",")
      write (csvData & return) as text to csvFile
              end repeat
      close access csvFile
    end tell
    on replaceChars(inputFileName, oldChar, newChar)
              set {tid, my text item delimiters} to {my text item delimiters, oldChar}
              set newfilename to text items of inputFileName
              set my text item delimiters to newChar
              set newfilename to newfilename as text
              set my text item delimiters to tid
              return newfilename
    end replaceChars

  • How can i get pdf files from my ipad to my pc?

    Please help im so lost, i need to get a pdf file from my ipad to my pc but it doesnt work with workspaces. I really need it for uni.

    If you are running the Adobe Reader app on your iPad you can upload your pdf to .crobat.com and then download it to your laptop
    On your iPad open your PDF in the Adobe Reader app
    Select the save icon in the top toolbar - looks like a doc with a wrench)
    Select 'Save to Acrobat.com'
    Select the 'Get Started' button
    Enter you Adobe ID and password
    Your file should be saved up to Acrobat.com
    Go to your PC
    Launch your internet browser
    Open https://files.acrobat.com/
    Log into Acrobat.com with the same Adobe ID as you used on your iPad
    Your file should be available
    Select the file and select the Download icon
    You can download the file to your hard drive
    Another option is
    Go to you PC
    Launch Adobe Reader
    Select File > Open
    From the Open Dialog select the dropdown arrow beside 'Open from online Account' - select Acrobat.com
    You will be prompted to enter your Adobe ID and Password
    You should then see your PDF in the listings
    Select to open
    Once open you can save to your desktop
    hope this helps
    Susan

  • Getting PDF filename with unicode chars

    Hello,
    I'm trying to write a plugin that gets the file path of the current active document. The code looks like this:
    AVDoc avDoc = AVAppGetActiveDoc();
    PDDoc pdDoc = AVDocGetPDDoc(avDoc);
    ASFile file = PDDocGetFile (pdDoc);
    ASPathName filePath = ASFileAcquirePathName (file);
    This works fine for most documents, but for documents with unicode characters in the name each unicode character is replaced with '.' in filePath. For example, if the document is "测试中文关键词搜索!@#$%^&().pdf", then filePath becomes ".........!@#$%^&().pdf". Am I missing something required to get unicode filenames?
    Thanks.

    You were right, the plugin was getting a char* from ASFileSysDisplayStringFromPath. I removed that and added this which seems to have fixed my problem:
    ASText pathText = ASTextNew();
    ASFileSysDisplayASTextFromPath(ASGetDefaultFileSys(), filePath, pathText);
    wchar_t *pathString = (wchar_t*)ASTextGetUnicode(pathText);
    Thank you!

  • Batch Process increases file size from 230kb - 5044kb

    I'm currently using Acrobat 7 Professional.
    I want to use the "Batch" process to re-convert pdf documents that were watermarked using the batch process. We're talking 1000+ documents.
    The reason we need to re-convert them is because the watermarked documents are taking more than 4min/page to print, if it prints at all.
    I've manually re-converted a few of the documents using "print to pdf", kept the file size at 230kb and with no printing issues.
    However, since we have 1000s of these documents to do, most with multiple pages, this would be a very time consuming project.
    I've "Batched" "print to pdf" and it also takes care of our printing issues, however, the file size has jumped to 5044kb. Having literally thousands of files to do - this is an issue on our file server.
    I've done multiple tests with adjusting the pdf settings in the batch process... some work (and again the file size is large) - some don't allow for printing or slow it way down again.
    I understand that it's a "layer" or "transparency" thing that's slowing the printing process and when I mess with it in the batch process, it takes care of the printing issues but not the file size.
    Can someone help me please??? I've been working on this for a couple days now and I'm at my limits.
    How can I batch process that will flatten layers but give me a manageable file size?
    Your help would be GREATLY appreciated - Michelle

    I don't know if it can help here, but don't I recall that wayyyy back in Photoshop 7.0 the last File - Save As you have executed sets the JPEG quality for batch File - Save As commands?  I am not sure when the "Override Action Save-As Commands" became functional, but try this:
    1.  Uncheck "Override Action Save-As Commands".
    2.  Remove the "File - Save As" step you have recorded in your action.  The action should NOT save the file.
    3.  Save any old JPEG file at the quality level you prefer, just to set the "memory" of the quality level.
    4.  Run the File - Automate - Batch, specifying input and output folders there.
    I'll bet it will work.
    -Noel

  • Batch Process: Add Alpha Mask From File

    I did a search for this, but couldn't find anything.  If there is something, please feel free to send me in that direction.
    I use Photoshop a lot for my 3D work.  Usually, when I render an image sequence out, I have the mask saved in the alpha channel.  Unfortunately, ZBrush doesn't allow me to do that, and instead saves the mask out as a separate image.  I need to add the alpha mask to the color plate file.  Is there any way to do this with batch processing?
    --Andrew

    AndrewRaz wrote:
    Thank you for your response.  I guess for now, I'll just add the masks by hand, since I don't know scripting at all.
    It would be worth asking in the Scripting forum. There may be something available, in which case you just copy the file into the appropriate folder in PS and it's there on the menu to use.
    Scripting forum.

  • Batch processing a PDF file with photoshop droplet

    hey, ive been trying and trying to make a photoshop droplet where i can drop a pdf on it and it will apply a "levels" (cmd+L on mac) change to all of the pages and re export it as a pdf.
    .....i know how to record actions and create droplets but there are issues with the number of pages of the pdf and the name of the pdf
    if you can figure out method for this and share that would be AWESOME!

    Which version of Audition are you using? The latest ones allow you to specify where the batched files are saved and also if any Prefix or Postfix are added to the file name. These are all under Export Settings in the Batch Process pane. However you must have the Export box ticked to give you access to the settings.

Maybe you are looking for

  • Touch up tool

    Hi there, there is a problem I come across quite often with the Touch up tool in adobe acrobat 8 professional which is remove/add characters from a document. Specifically this time I am trying to remove a dot from a bullet list which partially disapp

  • How can I drag and drop a Tidal job into another group?

    How can I drag and drop a Tidal job into another group? In Tidal Help, it says- In the Jobs pane, press and hold the Ctrl key and at the same time right-click and either individually select individual jobs within a job group or drag your mouse cursor

  • TS3297 iTunes library.iTl cannotbe read because ity was created by new version

    upgraded from OSX 10.5.7 to OSX 10.6.8; when opening iTunes it ask for OK in terms; oked; when I went to open itunes it gave a message"iTunes can not be read because it was created by a newer version of iTunes"

  • Wrong result of query

    I have these two queries which differ each other only for the order of conditions (...and...and...and), and give different results as below. I think this is a bug and I'm afraid this kind of mistake can affect random any similar SQL query on which I'

  • Lightroom opens Photoshop CC opens backup copy on external disk not copy on MacHD????

    When using Edit In function form Lightroom (latest) the backup version of PS CC on an external is being opened rather than the app on Mac HD....... Why would this happen??