*bold*Automated Batch Printing

How do i code automated batch printing.
I had no idea how to start and I had read up most online help on Google but still I can't figure out how to do automated batch printing in Java
I am required to read a folder consists of multiple RTF files.
Its easy to read a single RTF file and print it but how do i read a folder and print everything .
Another problem would be that the printing done should have courier font and alignment in the RTF file however i had tried different way to read and print the data in the RTF file ,which I could only get either courier font with no alignment or not courier font with alignment , i need both of the courier font and alignment to suit an external application RightFax.
Thus I had thought of a way to direct print the RTF files from folder , an example will be the application SilentPrint how can i call the window's or Microsoft's office print services ? or is it even possible for Java?
Thanks a lot if help is provided , at least a little clue of where to start?
or u at least tell me whether is it possible to code automated batch printing in java ? like what SilentPrint can do
Edited by: yarmageddony on Oct 30, 2007 1:36 AM

Thanx again for the clue for runtime.exec
runtime.exec cant help you print but by searching i found the usage of desktop
which is what i want exactly for batch printing :)
java.io.File folder = new File("Z:\\BTSS Log\\Fax\\Y2007  M10  D25");
     File[] listOfFiles = folder.listFiles();
     for (int i = 0; i < listOfFiles.length; i++) {
     if (listOfFiles.isFile()) {
     try {
     de.print(listOfFiles[i].getAbsoluteFile());
     File fi = new File("Z:\\BTSS Log\\Fax\\Y2007 M10 D25\\Deleted");
     fi.mkdir();
     listOfFiles[i].renameTo(new File("Z:\\BTSS Log\\Fax\\Y2007 M10 D25\\Deleted",listOfFiles[i].getName().toString()));
     } catch (IOException e1) {                                                     // TODO Auto-generated catch block
     e1.printStackTrace();
System.out.println("File: " + listOfFiles[i].getName());
} else if (listOfFiles[i].isDirectory()) {
System.out.println("Directory: " + listOfFiles[i].getName());
}hope my code helps other who are looking for batch printing in folders as there isnt much help online out there ^^
Edited by: yarmageddony on Oct 30, 2007 3:59 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Similar Messages

  • Automated/batch printing job?

    Hi all,
    We are using BW 3.5 and I was wondering if there is a way to set up an automated batch print job. (ie. let's say that once a month a report is generated automatically, is there a way to tell BW to print that report automatically at a given time without user interaction?)
    Thanks for any help you can offer and points will be awarded to helpful replies.

    How would I go about doing that?
    From the research I've done, I believe background printing can be done using BEx Broadcaster in BI 7.0 but not BI 3.5. Is this accurate or is there another way to accomplish this in BI 3.5?
    Thanks.

  • Adobe Reader PDF Batch Print

    Question:
    Is it possible to build a batch printer using the SDK and libraries
    available with Adobe Reader?
    Environment:
    Win XP and Win 7
    Client machine install
    Adobe Reader - required version can be installed
    VB6 or C# .NET
    Experience To Date:
    The ActiveX control works fine for loading/displaying a PDF, and
    a single file with any number of pages can easily be printed via
    automation.  The print process does not cause the application
    to pause until the printAllFit method completes.  The LoadFile
    method on the next file returns True even if the current file is
    still being printed and, therefore, the next file does not load.
    General Comments:
    Anybody else find it a bit odd that the SDK documentation is
    not a single, down-loadable PDF file?

    I do that in Perl
    (but it is no problem to translate the code into VB or C++)
    http://blogs.perl.org/users/rtillian/2011/10/batch-printing-on-command-line-via-print-driv er.html

  • Automated batch doesn't work in photoshop & from Bridge

    Hi all,
    Automated batch from  Bridge  tools>photoshop>batch  Photoshop cs5 stops working. Automated batch also doesn't work in photoshop. Automated actions work in Photoshop. All other Photoshop process work  from Bridge. I use a PC with windows. This happens even with files I was  previously able to do an automated batch with Photoshop. It doesn't  matter what the file extension is. This has only recently begun  happening for no apparent reason.

    First, given what you've written, it's important to ask:  48 x 48 what?  Details matter.  48 x 48 pixels?  Inches?
    Beyond that, yes, I believe the Image Size dialog interacts with us a little differently than it used to.
    Whether it's a positive or negative design change I can't say.  They're trying to pack a lot of functionality in there, and it might take a little getting used to...  It does seem deterministic:
    If you want to keep the physical print size the same and increase the pixel density - i.e., upsample the  image - you would have to choose physical dimensions.  Try this:
    1.  Change the units to inches.
    2.  Change the ppi value and press OK.  This resamples the image.
    On the other hand, if you want to keep the pixel count the same, but just change the ppi value so that it matches a particular kind of display, how would you do it?  Try this:
    1.  Change the units to pixels.
    2.  Change the ppi value and press OK.  This changes the metadata.
    Are you trying to assume what leaving the units set to percent means?  To me it says "xx % of the pixel count".
    -Noel

  • I was automating batch images but now when I do it is trying to save each raw photo as a jpeg

    I was automating batch images but now when I do it is trying to save each raw photo as a jpeg, how do I make it stop or is it a bug?
    The destination is marked "none". I've been doing this correctly all day so I don't know why it has started doing this! Help please

    Due to the current unavailability of clairvoyants and mind-readers in the forum, we respectfully request you supply sensible, complete details.
    BOILERPLATE TEXT:
    Note that this is boilerplate text.
    If you give complete and detailed information about your setup and the issue at hand,
    such as your platform (Mac or Win),
    exact versions of your OS, of Photoshop (not just "CS6", but something like CS6v.13.0.6) and of Bridge,
    your settings in Photoshop > Preference > Performance
    the type of file you were working on,
    machine specs, such as total installed RAM, scratch file HDs, total available HD space, video card specs, including total VRAM installed,
    what troubleshooting steps you have taken so far,
    what error message(s) you receive,
    if having issues opening raw files also the exact camera make and model that generated them,
    if you're having printing issues, indicate the exact make and model of your printer, paper size, image dimensions in pixels (so many pixels wide by so many pixels high). if going through a RIP, specify that too.
    A screen shot of your settings or of the image could be very helpful too,
    etc.,
    someone may be able to help you (not necessarily this poster, who is not a Windows user).
    Please read this FAQ for advice on how to ask your questions correctly for quicker and better answers:
    http://forums.adobe.com/thread/419981?tstart=0
    Thanks!

  • HT2488 Batch Printing and Edit on circumstances?

    So I make binders on a regular basis and am just getting into scripts and FileMaker Pro and all sorts of happy things. I was wondering if it was possible to do a list of commands with Automator.
    What I want to do is have Automator run a workflow, but with selected files, not predetermined files. For instance, I do not want to have to go into the workflow and drag and drop the files in every time. I just want to select them and then go to the services option under the Finder menu.
    Then I want to edit them in Preview, but I want the edits to be automatic. Specifically, any PDF file with an odd number of pages gets a blank page inserted at the end and any PDF file with an even numebr of pages does not (this is so that I can do a batch print and do double sided with a printer that cannot do double sided so odd sides first, then even sides).
    Then it should print the batch as a PDF and ask me where to put it, and finally print the PDF it just saved doing odd sides only, then waiting, then even sides only.
    Is this possible with workflow, an dif not what can do this?
    Thank you for any assistance, I can't find anything that will allow for this to go faster unless I write a script that does all this for me, which I might end up doing...as soon as I learn how to.
    -Kristof

    What actions are in the in the workflow that did print without the dialog? Since that one worked with a single item, you might try the *Dispense Items Incrementally* action from http://automator.us/leopard/downloads/index.html

  • Batch printing and/or converting

    I'm new to automator and can only get this to partially work. I'm looking to print the MS Word docs in a certain folder in a batch. I'm gathering that this cannot be done.
    The flow is:
    Get Specified Finder Items (points to the folder)
    Get folder Contents
    (open finder items)*
    Print Finder Items
    What happens is each file is opened one by one and the print dialogue button comes up, so I'd have to sit and click for each doc. Exactly what I'm trying NOT to have to do.
    *The other flow I had was the same only w/that additional line "open finder items" in it, it opens all the files, but only prints the last one that opens - and does so w/o the print dialogue. There has to be a way.
    I've looked into batch converting them to .pdf files then batch print those, which I think is possible, but I don't understand how to do this. I've searched on this and been pointed to the CUPS thing - doesn't work for me, the pdf printer is NOT there as an option after an install. The whole apple script and automator things are new and foreign to me. I know they are powerful tools, but this seems like it should be simple
    Running OSX 10.5.8
    If somebody can point me to a thread that explains this it would help (in layman's terms if possible).
    Thank you.

    What actions are in the in the workflow that did print without the dialog? Since that one worked with a single item, you might try the *Dispense Items Incrementally* action from http://automator.us/leopard/downloads/index.html

  • Is there a way to automatically add the filename in the page header when batch printing text files directly from finder?

    hello, i have 80 text files (docx). the finder preview works great and i can open them in pages.
    I need to batch print them from finder:
    I select all the documents > drag on printer's icon> printer puts them in queue ( after an on the fly pdf conversion)  ad starts printing.
    BUT
    i need the filename printed on each page  ( in hearder or footer) , not only the regular text content.
    Do you know if there is a workaround?
    thank you
    Tullio

    If that section has an ID or NAME attribute then you can add that to the URL (#anchor) that you want to reload.
    See View > Page Source
    https://support.mozilla.com/en-US/questions/774792#answer-128100

  • I can't batch print to any printer on any of my iMacs

    I have 5 iMacs 2.4 GHz Intel Core 2 Duo,  4 GB 667 MHz DDR2 SDRAM, on 10.10.2 Yosemite. Before this week, I could open a PDF file, select any amount, 1-1000, drag into my print queue and all my files print, in correct format, on my printers. I use this method of printing throughout each day for my work. I have files of over 500 PDF drawings that I need in some cases. Opening each file up and going through the printer process like that is way too tedious and pointless imo. Please don't offer me an app that can do this for me, Adobe Reader has worked flawlessly up till now. Now, after I send my PDF's to queue, my printers start spooling up, then I get this message: cgpdftops quit unexpectedly. I have NEVER seen this error. I have been able to batch print with no issues at all for the past 2-3 years. It makes no sense that all of a sudden, it stops working.
    I have already done the following:
    1. Reinstalled all printers and drivers.
    2. Restarted all iMacs after reinstallation
    3. Updated Adobe Reader and Java SE6
    4. I have spent 45 mins on the phone with Apple Care Customer Support.
    5. I have booted into Safe Mode and managed to batch print PDF's of a web page I saved, as the Apple Care rep told me to do, but NOT PDF's from Adobe Reader. Why she thought saving a web page as a PDF was the same as what I do for work, I have no clue, but her method didn't solve a single thing.
    All of my PDF's come through in Adobe Reader. That is how all the GC's send me ll of my drawings and plans. If anyone can please provide some insight for me on how to get this issue fixed, that would be greatly appreciated.
    The 3 main printers I am attempting to print to are:
    1. OKI C6100 in Standard 8.5 x 11 Letter    
    2. HP LaserJet Pro 200 in Standard 8.5 x 11 Letter
    3. Oce Plotwave 350 in 18" x 24" Arch C Wide Format

    Jintymcginty61,
    there’s not enough information yet to answer your question. Which version of OS X is installed on your MacBook Pro?

  • Batch Print Images in Their Original Dimensions CS5?

    How can I batch print multiple images that have various dimensions and have them printed at their original dimensions? I used to be able to do this in CS3 but now I'm using CS5 Creative Suite in Windows 7, all the images are printed at the same dimensions. Any help would be greately appreciated.

    Then again it may have to do with the images you recorded the action with. It might have been small and center images was checked so the offsets are large. I do not know the answer I don't Batch print and have not create actions with print steps.  You may want to try to recorde the action a bit differently. Open a document (image) then go through the steps to print it. That is Open the print dialog and select the printer and set up its defaults paper and orientation like landscape from paper tray 8.5 x 11.  After doing that don't print just exit the print dialog.   You may want to download my crafting action package there is a utility script that will rotate protrait images to lanscape you may want to include in you action and an other long side print size it you want to fit the image to the paper. Any way when you record the action print step record menu File>Print One Copy.   Print One Copy does not record anything about size.
    http://www.mouseprints.net/old/dpr/JJMacksCraftingActions.zip
    Contains:
    Action Actions Palette Tips.txt
    Action Creation Guidelines.txt
    Action Dealing with Image Size.txt
    Action Enhanced via Scripted Photoshop Functions.txt
    CraftedActions.atn Sample Action set includes an example Watermarking action http://www.mouseprints.net/old/dpr/WM900x600.jpg
    Sample Actions.txt Photoshop CraftedActions set saved as a text file. This file has some additional comments I inserted describing how the actions work.
    12 Scripts for actions

  • Batch Printing with File Names in Photoshop CS5

    How can I batch print hundreds of images with the file name on each of the print? I also need them to be printed at their original dimensions, which mean they should not be scaled when printed to papers.  Any help would be greatly appreciated. Thanks.

    Thanks for your response, Noel. However, the images to be printed at their actual dimensions and resolution (300ppi). This is so that we can see how their qualities are going to be when they are printed the actual publication, which is at 300ppi.
    What I used to be able to do in CS3 is creating an action in Photoshop that contains a print command with "label" or file name option on. Then I ran the script through the batch command in Bridge. However, in CS5, when I tried to same method, all of the images are printed at 1/2 an inch while they are actually 3-5 inches at 300ppi. Therefore, I am trying to another method that would give me the same result.

  • Batch Printing with Desktop Printer

    I have been batch printing with a desktop printer to a ethernet connected xerox phaser printer. The files are doc files that I drop onto the desktop printer to automatically print anywhere from 10-30 files at a time. I either use TextEdit or Pages as the default program for the files so I do not have to deal with the print dialog box that comes up with Microsoft Word. My problem is that if I send 20 files for example, only a certain number of them will actually print and the job of printing all of them is not completed. It appears random. Sometimes it may get through 5 and othertimes 15 files before it stops. There is no error message and it seems as if everything was sent to the xerox printer fine...
    Any advise would be appreciated

    I spoke with Xerox support. They suggest typing your printers IP address in a browser, clicking on PROPERTIES, select GENERAL from the file menu on the left, then select PRINTER DEFAULTS. Change Timeout Settings from a default of 120 to 999.
    Apparently the printer drops info if it takes longer than a specific duration so if there is network traffic or a large number of files are being sent all at once.
    I just changed my settings so we shall see if this works

  • Can I batch print PDF files with Adobe Acrobat Reader X

    can I batch print PDF files with Adobe Acrobat Reader X?  I have tried from Windows Exploer (Windows XP) and it looks like the files are opening but they do not print.
    Pat

    Very strange!  What is your installed Reader version?
    Try disabling Protected Mode in Adobe Reader [Edit | Preferences | Security (Enhanced)].

  • We have an applescript that will batch print InDesign CS6 files from a folder to a laser printer using an InDesign print preset. The script does not work in OS X Yosemite. The script errors out with the print preset. Any thoughts?

    tell application "Finder"
      activate
      set thefolder to choose folder with prompt "Select a Folder with InDesign Files to be Printed" as text
      set thePath to thefolder as text
      set the selected_items to every item of folder thefolder
      if the selected_items is {} then
      beep
      display dialog "Please select a folder with InDesign files before running this script." buttons {"Cancel"} default button 1
      end if
      repeat with aFile in selected_items
      tell application "Adobe InDesign CS6"
      activate
      with timeout of 600 seconds
      set user interaction level of script preferences to never interact
      open aFile
      tell document 1
      tell print preferences
      set active printer preset to "Catalog Pages"
      set page range to all pages
      end tell
      print without print dialog
      close saving no
      end tell
      end timeout
      --might need this delay
      --delay 10
      set user interaction level of script preferences to interact with all
      end tell
      end repeat
      tell application "Finder"
      activate
      display dialog "Batch Printing is complete!" giving up after 5
      end tell
    end tell

    Hi
    After I put a small delay in as shown, your code ran fine, tested on about twenty ID files, using ID CC 2014, OSX 10.10.2
    tell document 1
    delay 0.5   -- delay added
      tell print preferences
      set active printer preset to "Catalog Pages"

  • A solution for batch print PDF documents

    Dear,
       I use a command line to auto print some PDF documents as below:
       C:\>AcroRd32.exe /h /t PDF_file_name printer_name
       the printing is no problem.
       But when I use the command line to print a large number of PDF files, there are a problem, for example:
       There are 3 PDFs that I want to print, they are 1.pdf, 2.pdf and 3.pdf
       I sent command one by one like below.
      C:\>AcroRd32.exe /h /t 1.pdf printer_name
      C:\>AcroRd32.exe /h /t 2.pdf printer_name
      C:\>AcroRd32.exe /h /t 3.pdf printer_name
      But the hard copy from the print are:
      first print: 1.pdf
      2nd print: 3.pdf
      3rd print:  2.pdf
      what can I do for this case, I want to get the output seq. will be 1.pdf, 2.pdf, 3.pdf.
      Thanks.

    KingPool's snarky response notwithstanding (he appears to have some financial interest in “pushing” sales of PrimoPDF), your need is real and your observations do correspond to the reality of printing. The fact is that when you use spooling under Windows, the application program actually can complete spooling of the file to the printer before that spooled output is ready to be actually transmitted to the device. The print process is a multiple step, asynchronous process.
    To absolutely force printing in an exact order as per your scenario, go to the printer's Properties and select the Advanced tab. The printer is probably currently set to Spool print documents so program finishes printing faster with either the Start printing immediately or the Start printing after last page is spooled option selected. Change that to the Print directly to the printer option and then press OK. This will force printing in the order that you specify. Note however, that this forces Reader to wait as the document is fully printed and then terminate. You should reset that spooling option when you are done with this batch printing operation to regain system performance.
    Alternatively, another approach you could try would be to hold the particular print queue before running your commands. Then, after ascertaining that all the print jobs are on the queue and ready to be printed, release the queue. The jobs should print in the order queued. And finally, if there still is a mis-ordering of the jobs, after holding the entire queue, put a hold on all the jobs, release the printer queue, and then release the jobs in desired order.
              - Dov

Maybe you are looking for

  • Backup/Restore from PC Suite with N71 worthless

    Hi, I have used Backup from PC Suite (Version 6.82.22.0) to backup my N71 data before I gave the N71 to a repair shop. The N71 camera was not working. After four weeks I got a N71 replacement. A brand new N71 with a different serial number which is n

  • JDBC Adapter-Implicit COMMIT--Need to have 1 Transaction

    Hi, I am on XI 3,SP9. We are trying to delete all the records from the table first and then Insert Records into the table. I have definted seperate Statements for the Database Table Delete and INSERT in my XML Schema for the Receiver JDBC Adapter. Th

  • Bad dunning run in FICA

    Hi. we use IS-utilities. We had a dunning run in which we were expecting to get almost 10,000 SVNs (pre termination notifications) but we only got 370 of them. I checked the dunning proposal and activity runs and everything is okay. The back. jobs al

  • Populating multiple text fields from a database table...

    I have a database table with several fields e.g. drawing_no, title, date_entered etc..I have a form that has the same fields. I want to be able to input a value into drawing_no field, and have it retrieve all the other values from the database - if t

  • Multiple menu items != multiple event handlers?

    I'm developing a program whereby a user can rate how much they like certain images when displayed on screen. The bulk of the work is done, but my rating mechanism (first attempt at one) is currently a right-click pop-up menu with the values 1-10 in t