[AS CS3] Printing PostScript

Hi-
I am trying to set the postscript printing settings within the script rather
than relying on the user to have there print style set correctly. I am
having trouble with the paper height and paper width settings. It errors
saying it expected a number or string. As far as I can tell I am giving it
a number.
When I was using a print style, I was able to set the paper height and paper
width just fine.
Any ideas?
Karen Nielsen
R&D Specialist
1101 Frontage Rd NW
Byron, MN 55920
[email protected]
tell application "Adobe InDesign CS3"
tell front document
set ruler origin of view preferences to page origin
set zero point to {0, 0}
set DocProps to bounds of page 1
set myPageHeight to item 3 of DocProps as real
set myPageWidth to item 4 of DocProps as real
set PaperHeight to (myPageHeight + 0.25) as real
set PaperWidth to (myPageWidth + 0.25) as real
End tell
set theStyle to make printer preset with properties {name:"Karen", use
document bleed to print:false, bleed top:0.125, bleed bottom:0.125, bleed
inside:0.125, bleed outside:0.125, color output:composite leave unchanged,
page position:centered, flattener preset name:"[High Resolution]", print
layers:visible layers, print page orientation:portrait, download PPD
fonts:true, PostScript level:level 3, mark offset:0.125, crop marks:true,
font downloading:complete, OPI image replacement:false, scale height:100,
scale width:100, send image data:all image data}
tell document 1
tell print preferences
set active printer preset to theStyle
set printer to postscript file
set print file to (PrinergyFolder & myJobNumFinal & "_"
& VerCode & ".ps") as Unicode text
set page range to (item i of myPageList as string)
set paper size to custom
set paper height to PaperHeight
set paper width to PaperWidth
set data format to binary
end tell
print without print dialog
end tell
End tell

Having the same issue with custom page sizes (CS3/10.5.5). This is not the same issue that is resolved by using "Defined by driver" in CS3 apps. That problem affected Fiery-based RIPs and was introduced with Leopard.
MacFixIt.com (http://www.macfixit.com/article.php?story=20080917093457409) is running a story on it with some success stories. I've already restarted CUPS, reinstalled the printers, repaired disk permissions and tried the "Defined by driver" approach (that doesn't work so well when you want to print custom page sizes to a platesetter or large format).
Next is reinstalling CUPS (http://www.cups.org/ddk/software.php), then reverting back to 10.5.4 (if I can figure out how).
All the while, Apple will blame Adobe and the printer driver, Adobe will blame Apple and the printer driver, and our prepress grinds to a halt.

Similar Messages

  • Print postscript script giving error on .print(false) JS CS3

    I found this example here:
    Olav Kvern, "Need script for printing Postscript files (ID CS2)" #4, 19 Nov 2007 4:45 pm
    But if the ID doc has a blank page an error on the myDocument.print(flase); will occur.
    The message I'm getting is:
    The configuration was invalid or the user cancelled. Please try the same operation in the user interface to see more detailed information.
    Once you get rid of the blank or add something to the blank the error is gone. Does anyone know how to stop the error if a user adds a blank page?
    Cheers.

    Thanks priyan, Olav,
    I will try your suggestion priyan. If I can check the page itme and get back a null result I should be able to get the for loop to skip to the next page correct?
    Olav hope you don't mind but I made a slight change to give the user an option to print a specific page if required. Just a warning the script does not check that the number you enter is part of the doc. So if you doc range is from pages 19 to 24 and you try and print page 2 it will error.
    For anyone else out there that finds this useful you can also change the browse option to a drop menu and set the paths for output. This will speed up the process if you have set paths.
    Anyway here is the alteration.
    //PrintEachPageAsPS.jsx
    //An InDesign CS3 JavaScript
    //Prints each page of an InDesign document as a PostScript file to
    //a selected folder.
    main();
    function main(){
    if(app.documents.length != 0){
    //Display a "choose folder" dialog box.
    var myFolder = Folder.selectDialog ("Choose a Folder");
    if(myFolder != null){
    myExportPages(myFolder);
    else{
    alert("Please open a document and try again.");
    function myExportPages(myFolder){
    var myPageName, myFilePath, myFile;
    var myDocument = app.documents.item(0);
    var myDocumentName = myDocument.name;
    var myDialog = app.dialogs.add();
    with(myDialog.dialogColumns.add()){
    staticTexts.add({staticLabel:"Base name:"});
    staticTexts.add({staticLabel:"Print only this page:"});
    with(myDialog.dialogColumns.add()){
    var myBaseNameField = textEditboxes.add({editContents:myDocumentName.substring(0,4), minWidth:160});
    var myPageNumberField = integerEditboxes.add({editContents:"", minWidth:80});
    var myResult = myDialog.show({name:"PrintEachPageAsPS"});
    if(myResult == true){
    var myBaseName = myBaseNameField.editContents;
    var myPageNum = myPageNumberField.editValue;
    //Remove the dialog box from memory.
    myDialog.destroy();
    //Specify PostScript file and device-independent PostScript.
    myDocument.printPreferences.printer = Printer.POSTSCRIPT_FILE;
    myDocument.printPreferences.ppd = PPDValues.DEVICE_INDEPENDENT;
    if (myPageNum > 0){
    myPageName = myPageNum+ "";
    myDocument.printPreferences.pageRange = myPageName;
    var myRegExp = new RegExp(":","gi");
    myPageName = myPageName.replace(myRegExp, "_");
    myFilePath = myFolder + "/" + myPageName + "_" + myBaseName + ".ps";
    myFile = new File(myFilePath);
    document.printPreferences.printFile = myFile;
    myDocument.print(false);
    }else{
    for(var myCounter = 0; myCounter < myDocument.pages.length; myCounter++){
    myPageName = myDocument.pages.item(myCounter).name;
    myDocument.printPreferences.pageRange = myPageName;
    //The name of the exported files will be the base name + the page name + ".pdf".
    //If the page name contains a colon (as it will if the document contains sections),
    //then remove the colon.
    var myRegExp = new RegExp(":","gi");
    myPageName = myPageName.replace(myRegExp, "_");
    myFilePath = myFolder + "/" + myPageName + "_" + myBaseName + ".ps";
    myFile = new File(myFilePath);
    document.printPreferences.printFile = myFile;
    myDocument.print(false);
    alert("Done!");
    else{
    myDialog.destroy();

  • Problem: Illustrator CS6 - print PostScript (fuzziness and blurring edges of vector objects)

    Hello,
    Earlier to print to the printer Develop Ineo+ 451 used the program Illustrator CS3. In connection with the transition to Windows 7 (64bit), was bought by a new version of Illustrator CS6 64bit. Unfortunately, when printing from Illustrator CS6 (price lists, business cards, labels) on a PostScript printer were detected problems, which were not in previous versions of Illustrator CS3.
    A comparison of the print quality of the two programs Adobe Illustrator CS3 and Adobe Illustrator CS6, made on a PostScript
    The software used on the computers:
    1st PC: Windows XP SP2 (32bit), Adobe Illustrator CS3 (32bit), the driver Generic 50C-2SeriesPS v3.0.16.0 (32bit).
    2nd PC: Windows 7 SP1 (64bit), Adobe Illustrator CS6 (64bit), the driver Generic 50C-2SeriesPS v3.0.16.0 (64bit).
    Printer: Develop Ineo+ 451 (PostScript).
    Drivers are available for download on the site www.chansi.ru
    link http://download6.konicaminolta.eu/develop/public/&&BDV&RU&sw&&&&&0&&&0&&0&&0
    (to choose Product Ineo + 452, for download tested version of the printer driver).
    Because after using the new version of the driver, the print quality was not satisfactory, then for the correctness of the comparison experiment, already used driver version 50C-2SeriesPS v3.0.16.0 has been selected.
    When you print from the program Adobe Illustrator CS6, a printer PostScript, you can see fuzziness and blurring edges of vector objects, small text becomes fuzzy and difficult to read. If you print from a program Adobe Illustrator CS3 (using the same version of the driver), there are not such problems and the print quality is quite satisfactory.
    The settings in the dialog box "Print" of Adobe Illustrator and the print settings in the dialog boxes of the PostScript printer driver of Develop Ineo+ 451, were chosen exactly the same for both versions of the programs Adobe Illustrator CS3 and Adobe Illustrator CS6 on both operating systems!!!
    (1) - http://hostingkartinok.com/show-image.php?id=ce3339ac2057e91a77a77b93ba129db2
    (2) - http://hostingkartinok.com/show-image.php?id=0be6ec6a3e9d214b107525aedc59b7cb
    P.s. Sorry for my English, use http://translate.google.ru/ and the help of friends

    What's the explanation for the following sequence?
    1. Paste as Smart Object, at moment after pasting and before clicking the commit icon (no transform was made) in options bar. The object is rendered pixel-perfect.
    2. After the commit. The object is poorly rendered with gray pixels which should be white.
    3. Press Cmd+T for transform mode. The object is rendered pixel-perfect again.
    4. After canceling transform mode, the object is poorly rendered again.

  • Placed QuarkXpress 7 eps into InDesign CS3 prints with slanted type

    any suggestions to fix?

    placed QuarkXpress 7 eps into InDesign CS3 prints with slanted type
    The problem may be in the HP print drivers.
    Printing to Epson printers works, printing to HP 132, 5000 or 2200 produces slanted type, even at Adobe.
    Printing to disk as a Postscript printer and then printing the ps file using the pdf printer works fine.
    Roger

  • Printing postscript files

    I have been able for years to print postscript files (*.ps) stored in a desktop folder by dragging them to the desktop printer (HP 4600) in os 9.
    New to Tiger, I find the same approach leads to two problems:
    the files are printing in reverse order (i.e., files "A.ps", "B.ps", "C.ps" when dragged to the printer print in the order of "C.ps", "B.ps", "A.ps". This will not do.
    Second, the printer has a duplex unit installed and is set to use it, but the pages are not printing back-to-back, only one side per page.
    I am at a loss as to how to make it do what I want (and what it used to do).
    I doubt I am in need of special software, and I do not want to convert to PDF files.
    Can anyone direct me to the answers (or better yet, just give me the answers)?
    Thank you.

    Yes, I really need a PS file. Here's the procedure: I create a newsletter in Adobe InDesign. I print to a booklet using a printer designated for creating direct-to-plate. It automatically generates a postscript file. What happens is that the file is created properly and I always check it through Adobe Acrobat Professional to be sure there are no errors. There is either something in the InDesign procedure or in the Adobe Distiller that converts the halftone files incorrectly. The type comes out okay, but anything with grayscale imaging or with screens comes out in solid black or white, no "dots" if you will. I don't know if I am explaining myself properly, but I am a commercial printer and I use this procedure to create the plate I use to print the job on my press.
    Does this make any sense to you?
    Carol

  • Distribution of InDesign CS3 Print Presets

    Is there a way to "mass" distribute InDesign Print Presets for InDesign CS3?
    Have a large list of Print Presets saved on a server. Would like to "push" them out to over 20 production Macs with CS3, using something like Apple Remote Desktop. Each Print Preset that exists on the server are also on one specific Mac. Each has a unique name. But can NOT find these names when doing a search on the Mac. Where are they actually being stored?

    The CS3 print presets are stored in the ID Preferences (~/Library/Preferences/Adobe InDesign/ Version 5.0/InDesign Defaults).
    Here is a link to an InDesign Secrets article which talks about how to export the presets to a .prst file:
    This article covers CS and CS2, but I'm guessing it's the same for CS3.

  • My Ricoh Aficio MP 2500 only prints postscript stuff when connected to my OS X Yosemite

    My Ricoh Aficio MP 2500 only prints postscript stuff when connected to my OS X Yosemite. When printing one page of something, ten pages or so of machine language will print out.  It is on my home network and the IP address is correct.
    Thanks for any help.

    This can also happen when you use a Postscript driver but the printer does not support Postscript. According to the Ricoh Australia web site the MP2500 supports PCL standard while Postscript is optional. So it would be safe to assume that you don't have the Postscript kit and that's why you are getting all those pages with Postscript commands.
    One thing you can do is remove this printer from Printers & Scanners and add again, this time selecting the Generic PCL Laser printer in the Use menu. Note that this printer is set to 300dpi by default, but you can change the resolution to 600dpi via the printer menu so that you get better looking prints.

  • CS2 vs CS3 printing to Epson 3800

    In trying to diagnose a Photoshop/11880 printing problem, I made some test prints to an Epson 3800 from the same test file. Andrew Rodney's "printer test" image includes very smooth color gradations R > M > B > C > G > Y > R. This image was printed from PS CS2, PS CS3 and Lightroom to the Epson 3800 on Epson Premium Semigloss Photo paper using Epson's Pro38PSPP profile. The CS2 and Lightroom prints were identical. The transitions in the color gradations were very smooth. The CS3 print was very close in overall color balance, but the transitions in the gradations were not as smooth, or gradual, especially between magenta and blue, and between green and yellow. Shouldn't prints of the same file from CS2 and CS3, using the same profile, look identical? The on-screen soft proofs in CS2 and CS3 look identical, but the prints do not.
    4 x 2.5 GHz PowerPC G5.
    4.5 GB RAM.
    OS X 10.4.11.
    Photoshop CS2 9.0.2
    Photoshop CS3 10.0.1.
    Lightroom 1.2
    Epson 3800, Driver Version 3.57
    Direct USB connection.
    Epson profiles are located in driver package (as installed).
    Epson Semigloss Photo Paper 250.
    Photoshop Manages Color, Epson Pro38PSPP profile.

    Yes, all settings were the same. I got official word from Epson today there are problems with CS3. Epson, Apple and Adobe tech people are meeting in a few weeks to find a solution. In the meantime, all printing from my Macs to the 3800 and 11880 will be from CS2 and Lightroom. Thanks for your input.

  • InDesign CS3 Print Booklet function

    I have an issue with InDesign CS3 Print Booklet Function.
    Certainly Print Booklet is not InBooklet by any stretch. It does however have to be an integral part of the InDesign Program(one of the reasons it is better than QuarkXPress).
    Print Booklet takes the age old practice of creating 4 page signatures for booklets of 4-page multiples and when you get to 12-16 pages it mysteriously inserts blank pages making non-4 page multiple booklets. I have had 12 page booklets made into 14 and 16 page booklets into 18 pages.
    Is there a fix for this issue forthcoming from Adobe, or has anyone discovered a workaround?
    I do not want to teach students that they have to go to PDF's and use another way to impose, when it is an important part of InDesign.
    Jack Mertes

    >I click Printer Settings to make sure I've got spreads selected and crop marks etc.
    Make sure you DON'T have the "print spreads" box checked when setting up to use Print Booklet.
    >make booklet makes low res pages in an InDesign file and Booklet CE 3.5 makes a new InDesign file up of individual PDFs but the pages are all out of order.
    I'm not sure what you mean by "make booklet makes low res pages." Are you referring to Dave's MakeBooklet.jsx script? That simply places the pages from an existing InDesign file into a new file in Printer spread order. It's up to you what sort of resolution any page element has in the original file, or what PDF settings you use to make a PDF from the new file. Perhaps you need to adjust your View > Display Quality setting?
    The pages in an imposed file SHOULD be "all out of order." You are looking at printer's spreads, not reader's spreads. Are they not in the correct order for printing?
    Peter

  • Printing problems with CS3- Prints dont match what is on screen

    My prints dont match what i am seeing on the screen when using CS3. I am using windows xp and printing on a epson 7800. I never had this problem before i started using CS3. I have calibrated my monitor.
    I have the standard version of CS3 not the extended.
    I read a arctical that CS3 prints darker then what is on your screen. The solution if you have CS3 extended is to increase lightness just before printing, but what if you dont have the extended version, what do you do?
    I couldnt find this topic on the forum here. I am sure others must have had this problem too. What is my solution?
    Thanks in advance
    KB

    There are a bunch of things that can affect the difference between what you see on screen and what you get in print. It is not enough to just look at calibration. Calibration is a starting point. Here are some things that may affect your result:
    * Your monitor type
    * Your PC type (laptops may not be best for image correction)
    * Your calibration device
    * The lighting in the area you work in
    * Choices made while calibrating
    * Proper setup for using the ICC profile (e.g., you aren't running conflicting software)
    * Proper color management setup
    * Smart choice in color space / working space selection
    * Sensible choices for any other color management changes (if any)
    * Careful use of on screen proofing settings
    * Sensible choice for color management in capture (on camera or with scanner)
    * Smart use of color profiling
    * Good choice of printing materials / inks (as applicable)
    * Good choice of equipment for printing
    * Proper maintenance of printing equipment
    I'm probably missing a few there, but I'll work on it. The best scheme I think is to keep things as simple as possible. Especially if you are having trouble, eliminate variables. When you get things working as you expect, then you can try to get a little more fancy. However, every variable you add will come with drawbacks in one form or another. Freeagent seems to make some sense here...
    Richard Lynch

  • Javax.print postscript support

    The DocFlavors supported by the print services I've queried using the javax.print package haven't included the specific Postscript DocFlavor. They all return the autosense DocFlavor though. Some of these printers will automatically detect and print postscript and some won't but I haven't been able to tell until I actually send the print job to the printer. How widely supported is postscript on current printers or where can I go to find this information? Are there other ways to determine programmatically what formats a printer supports?

    Hey how you find in answer for this yet please let me know as soon as possible thanks.

  • Print postscript files from flash cs3 to get vector information

    I've been playing around with some dynamic flash paintings
    and would like to export the vector information. I've tried
    choosing "print--save pdf--save pdf as postscript" I installed
    Adobe's PS drivers. I set up a virtual printer on localhost using
    AdobeDistiller. This is not working for me.
    I witnessed flash exporting vector information this way on a
    pc, but can't seem to get this working on a mac. The pc user
    downloaded and installed postscript drivers from Adobe and used a
    similar method.
    I'm on Mac OS 10.4.11
    Any ideas? This has been frustrating me for some time.
    Thanks ahead of time for the help!

    There are several ways to do this.
    The easiest one, I think, is exporting a FLV file from the Render Queue, picking in the Outpit Module one of the "Same as source (Flash 8 and Higher)" FLV presets, modified manually just to enable the "Encode Alpha Channel" checkbox.
    Because of a known limitation in the Flash authoring app, which can only handle embedded transparency information correctly when done in a certain way, it's strongly recommended after settting the FLV encoding options that you set the "Color" menu in the Output Module to "Straight (Unmatted)". Otherwise you may get ugly halos around certain elements.

  • CS3 print:output:color:separations problem

    I have InDesign CS3 running on XP SP1.  When trying to print an .indd file, the separations option under file/print/output/color is grayed out.  How do I set this so I can print separations?
    Thank you.

    The AdobePDF virtual printer is a postscript device, so if you have a full version of Acrobat installed you can print seps to PDF, then print the PDF.

  • Printing Postscript to File

    Hi All,
    I need to create a postscript file with embedded printer specific information (from Printer feature dropdown). This was easily done on OS 10.3.x.
    In 10.3.x, I can choose "Output Options" from the "Copies & Pages" pop-up menu, and select PostScript.
    While it is true that in Indesign you can print to Postscript, that option will not allow embbedding of printer specific options. The same is true with "Save PDF to Postscript".
    Any ideas will be appreciated.
    Many Thanks.

    Hi Eugenio:
    Thanks for the gentle correction. In the end, I found out that using colons worked just fine, despite my earlier statement, provided I had the full path.
    In earlier versions of the plugin, I started out building the path with this:
    b :WPCPrint Files:...
    This worked just fine until CS3. Now I must include
    b Macintosh HD:WPCPrint Files...
    I don't understand the difference, but suspect it may have something to do with Tiger.
    Take care.
    John
    P.S. I did take a quick look at the directory tree using the
    b pwd
    command and found out that the target folder may be reached through two separate routes:
    b WPCPrint Files/...
    and
    b Volumes/Macintosh HD/WPCPrint Files/...
    where the ellipsis means simply "continue on from here"
    in example #1, WPCPrint Files hangs off of the root. In example #2, WPCPrint Files hangs off of Volumes/Macintosh HD.
    R,
    John

  • CS3 Printing Custom Print sizes since update 10.5.5

    I'm running adobe CS3 on an intel 24"imac with all of the latest updates. When 10.5.5 was released I updated this computer. I used to be able to tell indesign to print a custom page size and type that information for the size on the indesign print dialog (not the page setup button on the print dialog). Now when I print from Indesign, I am able still able to type in custom page size but the printer only prints based on the default page size. It's as if indesign is not telling the postscript printer that there is a custom size. All other programs work correctly except for adobe products. I removed cs3 and re-installed it and that didn't help. I'm printing to a Harlequin rip 8.0. Thanxs.

    Having the same issue with custom page sizes (CS3/10.5.5). This is not the same issue that is resolved by using "Defined by driver" in CS3 apps. That problem affected Fiery-based RIPs and was introduced with Leopard.
    MacFixIt.com (http://www.macfixit.com/article.php?story=20080917093457409) is running a story on it with some success stories. I've already restarted CUPS, reinstalled the printers, repaired disk permissions and tried the "Defined by driver" approach (that doesn't work so well when you want to print custom page sizes to a platesetter or large format).
    Next is reinstalling CUPS (http://www.cups.org/ddk/software.php), then reverting back to 10.5.4 (if I can figure out how).
    All the while, Apple will blame Adobe and the printer driver, Adobe will blame Apple and the printer driver, and our prepress grinds to a halt.

Maybe you are looking for

  • How to back up Iphone to I tunes

    I will be purchasing a new iPhone (6 but not 6 plus), my existing phone is an upgraded 3G.  I want back up the old phone to ITunes so that I can retrieve my data and transfer it to the new phone.  What is the easiest way to do this?

  • Can I put multiple Creative players on the same

    Greetings,I love my Vision M (too bad it's discontinued now) and my girlfriend wants a V-Plus for Christmas. I currently have my library and software on my work laptop, as it's the fastest in the house. What sort of problems can I expect if I want to

  • Retained a/c balance mismatch

    when I view the closing balance of Retained earning a/c for the year 2009 it is 14,78,900.  But when I view the opening balance of the same account in 2010, it gives another figure 12,60,991.  Why this is so.  The closing balance in the previous year

  • con:async-request-queue

    Hi,           I've created the jms-queue, which was described in the manifest.xml, between the <con:async-request-queue> and <con:async-request-error-queue> -tags.           I've a problem with the async-request-queue... When I send a message, the me

  • My tables render differently in IE

    I created this in Tables since it's for an HTML email. It looks perfect in Firefox, but in IE I'm getting these white gaps of space on the column where the main content is. Does anyone know why? I was careful this time not to use any nested tables. P