Batch Conversion of PDF to Postscript

I've been trying write a script for Batch conversion of PDF to PS files, using "silent" printing. I'm apparently missing something, because acrobat keeps crashing after executing the script (and the .ps files are not being created). Its also still prompting me for a filename. Not really sure of the syntax for keeping the same filename? I'm new to java script, so I'm sure its something I have wrong. My code is below, if anyone can help me out. I'm using Acrobat 7.0.9
this.print ({bUI: false,bSilent: true,bShrinktoFit: true,});
var pp = this.getPrintParams();
pp.interactive = pp.constants.interactionLevel.automatic;
pp.printername = "Xerox Docuprint 92C NPS PS2 C1";
pp.filename = "c:\temp\$filename$.ps";
this.print(pp);
Thanks

Why are you calling the print method twice?
Your syntax in the first call to print is in error. You have a comma after bShrinkToFit: true which is telling the JS interpreter to expect another argument.
Use this for filename (not the capital N in filename ... use proper case for property names):
pp.fileName = "/c/temp/" + this.documentFileName + ".ps";
Also, when printing to PostScript you shouldn't specify a printer name. Use this (again, note the proper case for properties):
pp.printerName = "";
It says exactly this in the documentation for the fileName property of the PrintParams object. I suggest you read the documentation relating to the methods you're trying to use ... always a good place to find answers.
> When printerName is an empty string and fileName is specified, the current document is saved as a PostScript file.
Although it may not consider C:\temp a "safe path" (I can't remember off the top of my head). You'll want to read the documentation regarding JavaScript "safe paths". If it is still prompting you for a filename it is most likely ignoring your path due to security restrictions.

Similar Messages

  • Batch conversion from pdf to Word

    How do I create an action or batch processing step that will convert a large number of pdf files to Word?
    I can convert a large number of files TO pdf, but it seems like you can't easily export pdf to Word. I tried downloading one of the actions on the Adobe web site that claimed to do this, but it says the file is corrupt.
    I have 15,000 pdfs in a directory and I want to convert them to Word (they have already been OCR'ed using the batch mode).
    Surely there is a straightforward way to do this?
    BTW: I apologize if this is the wrong community, but I couldn't find a better place to post this question.

    Dear Gilad D,
    Thanks very much. I can make this work. This is a big help.
    What I really would have liked is a command line tool on the Mac, like textutil, that allows this:
    pdf2word in_file.pdf out_file.pdf
    It is amazing how hard it is to do such simple command line things in this era of GUIs. For those of us who operate on large piles of data, command line interfaces are indispensable.
    MVP: You are correct. Even Apple's Automator seems to choke when you give it too many files.
    The only drawback of this approach is that the Action doesn't seem to descend the directory tree (like selecting files from finder will let you do). The reason I actually need a command line tool is that the pdf files are scattered about a file system with other pdfs that I don't want to convert. However, I can script around this.
    Thanks very much!!!

  • Batch conversion of Microsoft word to PDF?

    Hi Gang,
    I'm not sure which forum to put this in, but I've been all over google and can't find a solution. I'm hoping someone here has a suggestion.
    Does anyone know a way to do a batch conversion of MS word to PDF? I installed adobe acrobat pro, and it looks like it will do batch conversions, but only of post script files, not MS word. Which is a waste, because if I can save the files as post scrip, I might as well just save as PDF.
    I also tried acrobat distiller, but it tells me it can not read the file type.
    I know how to print, save to pdf for a single file, but I'm trying to streamline this process.
    I'm not familiar with command line or scripting... I was hoping for an app.
    Anyone have ideas?
    thanks
    Ethan-

    Hi Ethan
    Have a look at creating a WorkFlow with Automator which comes with your Mac.
    You should be able to modify one of the batching routines in Automator to open folders of Word files and print to .pdf.
    Get onto the Automator forum and see what specific assistance they can offer:
    http://discussions.apple.com/forum.jspa?forumID=1261
    Peter

  • How to turn off "Adobe PDF settings for Autodes AutoCAD documents" dialog box between pages of a batch conversion?  There is a check box for this purpose, but it is grayed out, and of course unusable?!

    How to turn off "Adobe PDF settings for Autodes AutoCAD documents" dialog box between pages of a batch conversion?  There is a check box for this purpose, but it is grayed out, and of course unusable?!

    How to turn off "Adobe PDF settings for Autodes AutoCAD documents" dialog box between pages of a batch conversion?  There is a check box for this purpose, but it is grayed out, and of course unusable?!

  • Batch create multiple pdf's while using epilogue.ps for setting initial view and opening bookmarks

    Hi,
    I'm trying to batch create multiple pdf's from word files, and use the epilogue.ps file for setting the initial view and opening the bookmarks panel, but i keep getting no satisfying result.. i'm probably missing something fundamental.
    I've read some forum posts and adobe help posts explaining this, so i'm pretty sure this would be possible?
    Reference:
    http://help.adobe.com/en_US/acrobat/X/pro/using/WS58a04a822e3e50102bd615109794195ff-7f0f.w .html  see advanced panel options
    http://help.adobe.com/en_US/acrobat/using/WS58a04a822e3e50102bd615109794195ff-7f14.w.html
    System: Windows 7
    Acrobat: Acrobat X professional
    i've searched for and found a way to overwite the epilogue.ps file and have inserted the following:
    %  Insert your custom PostScript here...
    [ /PageMode /UseThumbs
    /Page 1 /View [/Fit ]
    /DOCVIEW pdfmark
    After that i checked my Adobe Acrobat preferences, and in the categorie 'Convert to Pdf' i selected 'Microsoft office word' in the select area 'Converting to pdf'.
    Clicked 'Edit settings' to allow creating a joboptions file (field: 'adobe pdf settings') which has the option 'Use epiloque.ps and prologue.ps' checked in the advanced section.
    So now i thought i would have everyting setup to create my pdf's, however, my view isn't changed to fit, nor are there any bookmarks or in this case thumbs (i used /useThumbs) visible.
    Did i miss something obvious? Is there a better way to test this? Any help would be appreciated!

    i like it about that ok in how to open my site

  • QT movie batch conversion in iPhoto library

    hello everyone,
    i would like to ask for some suggestions on the following scenario: our iPhoto lib has grown rather big after 2 years of using a 720p HD camera. upon evaluating size to quality it appears that one can live with a smaller size movie format, such as the AppleTV 960x540 m4v, which plays better on laptops and lesser machines and also fits well with iMovie presets - in all, quite an acceptable compromise, but most consumer HD cameras have either 1080p or 720p shooting modes. as said, for home use, one can implement the 960x540 standard without much loss of quality for better use flexibility, especially if you employ a Mac Mini to a HD TV as we do, but the clips have to be re-saved.
    so here is the question - how to convert multiple movie entries in the iPhoto library to Atv format, without loosing metadata, such as date and time? QT obviously puts the current data/time on the new m4v file. i did try several things with limited success - Automator can do this batch conversion (but no custom one, this is how i got to the Atv format in the first place); once you select the movies in an iPhoto event, go 'show in finder' - they appear highlighted in the Finder window. chances are they will be in in the same folder, A converts them to desktop or any given location, then you re-import the files to iPhoto, compare the date and time to the original, hit the 'batch change', adjust date/time and delete old files.... but a bit time consuming altogether.
    would there be any Automator workflow or AppleScript to ease the task in larger batches, since one can filter all movies in a smart album? or anything else for that matter? tnx in advance!

    Bruce:
    Do you still have an untouched copy of your V2 library folder? If so, copy it to your Pictures library replacing the one you've tried to updated. Then download and run BatChmod on the iPhoto Library folder with the settings shown here, putting your administrator login name, long or short, in the owner and group sections. You can either type in the path to the folder or just drag the folder into that field.
    Now launch iPhoto and see if the upgrade will go thru successfully.
    Also you might try rebuilding the V2 library with iPhoto 2 before copying to the Pictures folder.
    If you don't have copy of the library folder then run BatChmod as mentioned before and launch iPhoto.
    Do you Twango?
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've written an Automator workflow application (requires Tiger), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

  • Batch Processing of PDF files to JPG

    i'm having this aweful issue of PFG to JPG conversions
    Now the files are in pdf format and their sizes are quite large, round 15000px height maybe
    I only want my jpg files to be 700px high, for this once my pdf files have been opened in photoshop, i created an action for this, that part is ok
    I tried batch conversion, using actions as well, but it's still not that automatic because the pdf window still pops up every time a new pdf is being opened on photoshop asking me for how high i want my pdf file. so if i have 600 pdfs (i do!) it's 600 times i have to type in 700 px in the height box. 
    Plus the pdf files have been partitioned into folders and subfolders, the actions also have a problem: they don't save it in the same folder as from where i opened them.
    is there any way out of this ?

    There is a script called PDF Processor you can try.
    The last one listed is the one you want (most up to date)
    http://ps-scripts.com/bb/viewtopic.php?f=10&t=1882&sid=4756172e6aed44b1195bbee6ce4b9367
    Put the script in your photoshop>presets>scripts folder and the script should then
    be under File>Scripts>Pdf Processor.
    MTSTUNER

  • Batch print to pdf

    Hi
    I've been trying for some time now to figure out how to turn 6000 html files into pdf in the exact same way that using File - Print... "Adobe PDF" - Print creates PDFs. unfortunately File - Print only works on one file at a time. And so far every batch conversion i've attempted doesnt create the same clean output that printing to pdf does. at the moment i'm wondering if there's some setting in acrobat that might be responsible, but i'm here to ask if there's some way to code the process of printing to pdf (File - Print... "Adobe PDF" - Print creates PDFs) so i can make it work on my 6000 files.
    Any help or direction would be appreciated. despite spending days on this i really dont know what i'm doing.

    Are you doing this on a desktop or server? What OS platform? Are you comfortable w/any programming languages?
    Leonard

  • Deleting Extension while exporting to Pdf or Postscript only hide it

    Hi all,
    I need to be able to delete the "ps" or "pdf" extension while exporting to a pdf or postscript file in the printing menu on macosX.
    When i try to delete the extension in the saved name, it quote the "hide extension button" and when unquoting the "hide extension" button, the extension re-appears.
    How can i change this issue?
    Thanks in advance.
    Julien.

    Welcome to the forums Julien!
    I'd be very curious as to the "need" to do this, but it appears you're 100% correct. It seems you can only rename it after the fact to lose the .ps or .pdf.

  • Save as PDF and Save PDF as PostScript options in the Printer dialog are not supported.

    I downloaded Indesign CS3 trial and liked everything about it until I attempted to print to postscript and got that message. Nothing I have tried has helped. I have seen in various forums that others are having the same problem, but haven't found any solution offered. I am running Tiger 10.4.10 on a new Intel Imac with 3G ram. This is a procedure I use very often in my workflow, and have never had this problem with CS2 on my PC or other Macs. Is there a solution? I downloaded the .1 update and installed that and it didn't change anything.

    PLEASE SOMEONE HELP ME.
    Its the first time Im using print booklet option to save my file. I have the same problem when trying to save as pdf and get the
    "The Save as PDF and Save PDF as PostScript options in the Printer dialog are not supported."
    I'm trying to save a .pdf of a booklet of a facing pages document of A4 size each facing page for a whole size A3, then hope to let the pages be correctly arranged by inDesing, then print and staple.
    Meaning pages will be like this - Page #60 left side [of the A3] - page #1 right side [of the A3] , page # 2 right side[of the A3] - page #59 left side[of the A3] etc...
    I CANT DO IT. I tried to follow Melvin Thompson , but when I choose save .ps and open it in preview all I see is independent a4 pages and just the left ones , .. How can I save my file as .pdf ready to be printed in a3 ?
    I really appreciate any help.

  • Need advice on software for batch conversions

    Hi,
    I have a need for some software that will help me batch convert images in Photoshop CS3. I run Windows XP SP2. The computer has 2.40GH and 1GB of RAM.
    I do product photography and the main output to clients is a cd with their images in multiple file types and sizes. Up until now, I've been using Extensis Portfolio 7 to do this most efficiently. For some unknown (to me) reason, since I've upgraded to CS3 and use LightRoom for initial screenings of images, some of the edited tiff images don't want to convert in Portfolio. I've also noticed that if I try to view them in Windows Explorer, the problem tiffs won't preview as thumbnails and when clicked on, I receive the message "drawing failed." Do you have any idea of what that means? I tried looking it up under Help, but that doesn't seem to be covered.
    Unfortunately, Extensis no longer supports my version of Portfolio, I asked the guys at the NAPP help desk and to be brief, they weren't helpful either. I'm reluctant to buy the update to Portfolio if there's another less expensive program that can help me with just the batch conversion function. That's really all I've been using Portfolio for.
    Why is this a more complicated problem? I have been told by one client that when she tried opening the tiff images I placed on her cd that they wouldn't open and at first I thought she just inexperienced, didn't have the right software on her MAC, whatever, now I susupect that there may be something fatally wrong with the tiffs. They open just fine on my computer as long as I am opening them in the CS3 that created them. And the weird thing is that most of the images from the shoot are just fine. I tried using another raw image of the same object and going through the whole editing process and had the same problem. I'm so puzzled and wondered if someone where you are could provide any clues.
    I've spent hours and hours trying to puzzle this out on my own and I can't seem to see any differences between the images that seem to work just fine and the ones that don't work.
    Any ideas you might have or referrals to someone else who might be able to help me figure this out and fix it would be so great.
    Thanks for reading this,

    Thanks for your response.
    Any suggestions on places to post the file?
    To answer your question on why not just use the batch action in PS:
    I could and have, but the Portfolio option just made it much more streamlined for the large number of images I have to convert at one time. Often, they are not uniform in dimension. As I see it there are 3 variables I have to convert for:
    file type, tiff and jpeg
    file size, 300 ppi vs 72 ppi
    file dimensions, various sizes
    As I have experimented with the PS batch conversions I can only work with one or two of these 3 at a time. Portfolio let me deal with all 3 at once. So, if I convert from tiff to jpeg with PS batch conversions, I can adjust for the file dimensions but then I have to go back each time and individually adjust the file size. When I have 20 or 30 images, that gets to be time consuming and aggravating.
    I tried opening the problem images in the Paint utility and got the message "this is not a valid bitmap file or its format is not currently supported." The files I can open in Paint are the same ones that open in Portfolio.
    Is it possible that when these files are loaded into LightRoom, that something is being converted without my request? The newest variable in the equation has been my addition of LightRoom into my workflow.
    Any ideas are welcome!

  • I purchased the Adobe pdf Pack to combine 50 PDF files to one and when I select them from my folder it claims "the files are not in a format not supported for conversion to PDF".  They already are pdfs, what am I doing wrong?".

    I purchased the Adobe pdf Pack to combine 50 PDF files to one and when I select them from my folder it claims "the files are not in a format supported for conversion to PDF".  They already are pdfs, what am I doing wrong?

    Moved to Adobe PDF Pack (read only)

  • How can I perform the conversion of pdf files in Cyrillic script to Word files in Cyrillic script. The pdf file is too small for me to read right now. Julyan Watts

    How can I perform the conversion of .pdf files in Cyrillic script to Word files in Cyrillic script. The .pdf file is too small for me to read without a magnifying glass, and the document is more than one thousand pages.

    This answer was not helpful. First of all, I could not find "tech specs"
    anywhere on the Acrobat 11 homepage. And secondly I purchased this software
    for the specific purpose of converting .pdf files to Word. It was only
    after I had completed the purchase that I learnt that Acrobat does not
    permit the conversion of .pdf files in Cyrillic to Word files  in Cyrillic.
    I feel that Acrobat should have provided this crucial information before I
    allowed my credit card to be debited. That is why I  am now asking for my
    money back. But thanks for your attempt to solve my problem, even if it was
    not successful.
    Julyan Watts

  • How to batch print multiple PDFs in Mac OS X?

    Does anyone know of any new software that allows one to batch print multiple PDF files with a print dialogue for the first file, followed by dialogue-less printing for the rest?
    I work for an architect's firm and we often find ourselves printing dozens of A1 PDFs, going through the print dialogue window for each file.
    We used to be able to batch print when Preview.app could open multiple PDFs in one window; it lost this capability in a regression when it gained bookmarks and we've been living in batch print stone age ever since.
    (A desktop printer doesn't work by the way)

    Lamont E wrote:
    Open one of the PDFs in Preview then drag the rest of the files into the sidebar. Print the resulting file. If you don't want to save it as a single PDF just select 'Don't Save' when you exit.
    Wow! I've been asking this question repeatedly for a couple of years now and you're the first person to mention this. Thanks a lot. There will be some happy campers in our office, I tell ya.
    I missed it because all the large PDFs we create include a table of contents and you have to switch to thumbnail view before you can drag and drop additional PDFs.
    With the type of files we produce It takes 30 seconds or so to add 8 files together, so it's not ideal but it's a lot faster and more convenient than Acrobat Pro or printing each file separately.
    Another option is to open the printer window and drag all the files into it. They will print automatically with no dialog box.
    This doesn't work because you can't choose the size of paper you want to print to.
    Thanks again, your first post too.

  • Conversion from .pdf to .docx: I have converted a text in Slovenian in .pdf, but all the accents are missing in the converted .docx. version

    Conversion from .pdf to .docx:
    I have converted a text in Slovenian in .pdf, but all the accents are missing in the converted .docx. version.
    Does Adobe have a converter for texts with European-language accents, or shall I cancel my subscription?

    Subscription for what: ExportPDF or Acrobat?
    [topic moved to Acrobat.com Services forum]

Maybe you are looking for

  • Can't delete file from eternal hard drive

    I am trying to erase files on my external hard drive (I replaced it with a Time Capsule which is working fine) and am having difficulty erasing one file. All of the other files deleted just fine. When I went to delete the offending file, a new file c

  • I've upgraded to FF4 uing windows 7 64-bit - won't open when click on shortcut, have tried to reinstall etc, prev ok with version 3+

    I've upgraded to FF4 uing windows 7 64-bit - won't open when click on shortcut, have tried to reinstall etc, prev ok with version 3+

  • Cannot import CR2

    I recently upgraded to Lightroom 3 from version 2.6. Along with upgrading Lightroom I installed Photoshop CS5. I am on a Windows computer, 64bit, Windows Vista. I am now unable to import my CR2 files using lightroom. I am given the error of the files

  • Not Enough Memorypboot: Install Problem PLZ HELP

    when i try to install on to my Intel 850MV pc, 2 120gb drives, first drive windows xp, second drive mepis linux , ntfs drive d:, and hopefully solaris 10. after i insert the dvd and boot, i grt the following msg: Not Enough Memorypboot: CDROM Read Er

  • About OO ALV

    hi, all   I use the OO ALV to display the data, and edit the currency data.   But when i save the currency data to internal table, the data is difference with   the display. Display data = internal table * 100.   Thanks for your help!