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

Similar Messages

  • FAQ: Fix for Problem Printing PostScript "to file" Under Windows 2000

    PROBLEM
    A number of Acrobat users under Windows 2000 have reported a problem in which printing via the PostScript driver fails when printing "to file" instead of to a standard printer port (such an LPT, USB, TCP/IP port, or even Acrobat's internal port). Printing "to file" refers to the ability to check an option in programs such as FrameMaker or Microsoft Word that causes the PostScript that would have gone to a "real" printer port, to go to a specified file name, prompted for by the driver or application itself. The symptom of the failure may be either (1) no file produced and/or (2) a nondescript error message about "unable to print."
    Although we have not yet heard of this problem occurring under Windows XP, we have no reason to believe it couldn't given the extreme similarity in architecture and software components. If you are seeing this with Windows XP, please advise me of this via email and simply substitute "Windows XP" for "Windows 2000" for your purposes in this posting.
    CAUSE
    The problem is caused by a missing printing port named "FILE:" used by the driver whenever it, guess what, prints "to file." This port is automatically created when Windows 2000 is installed and normally would never disappear. What seems to be happening, based upon reports that I have received from several end users, is that under some conditions yet unidentified, uninstalling one version of Acrobat in preparation for installation of another (newer) version of Acrobat causes the "FILE:" port to be deleted from the system. This printing port deletion does not appear to be caused by any end-user error.
    Adobe's Acrobat Quality Assurance group has been alerted to the problem, but to date has been unable to internally reproduce the problem. We would appreciate any information from any user who encounters this problem in terms of exactly how the Acrobat Distiller printer instance was being used prior to an uninstall of Acrobat (for example, were you printing a FrameMaker book "to file" with the
    Acrobat Distiller printer instance for purposes of subsequently distilling the whole book manually?)
    FIX
    Fortunately, it is very easy to add the "FILE:" port back into the operating system:
    (1) Logon to Windows 2000 as a user with Administrator privileges.
    (2) Go to Start=>Settings=>Printers.
    (3) Select File=>Server Properties.
    (4) Click the "Ports" tab.
    (5) Click "Add Port".
    (6) Select "Local Port" and click "New Port".
    (7) In response to "Enter a port name:" respond "FILE:" (without the surrounding quote marks, of course) and click OK.
    (8) The "FILE:" port should now be in the list of available ports. You may close the remaining dialogs.
    At this point, printing "to file" should work correctly. Most likely, you will not see the problem reoccur unless you do another round of uninstalls of Acrobat.
    - Dov

    You need to download and install the ADPDF9.PPD printer description and use it instead of Device Independent.

  • README: Fix for Problem Printing PostScript "to file" Under Windows 2000

    PROBLEM
    A number of Acrobat users under Windows 2000 have reported a problem in which printing via the PostScript driver fails when printing "to file" instead of to a standard printer port (such an LPT, USB, TCP/IP port, or even Acrobat's internal port). Printing "to file" refers to the ability to check an option in programs such as FrameMaker or Microsoft Word that causes the PostScript that would have gone to a "real" printer port, to go to a specified file name, prompted for by the driver or application itself. The symptom of the failure may be either (1) no file produced and/or (2) a nondescript error message about "unable to print."
    Although we have not yet heard of this problem occurring under Windows XP, we have no reason to believe it couldn't given the extreme similarity in architecture and software components. If you are seeing this with Windows XP, please advise me of this via email and simply substitute "Windows XP" for "Windows 2000" for your purposes in this posting.
    CAUSE
    The problem is caused by a missing printing port named "FILE:" used by the driver whenever it, guess what, prints "to file." This port is automatically created when Windows 2000 is installed and normally would never disappear. What seems to be happening, based upon reports that I have received from several end users, is that under some conditions yet unidentified, uninstalling one version of Acrobat in preparation for installation of another (newer) version of Acrobat causes the "FILE:" port to be deleted from the system. This printing port deletion does not appear to be caused by any end-user error.
    Adobe's Acrobat Quality Assurance group has been alerted to the problem, but to date has been unable to internally reproduce the problem. We would appreciate any information from any user who encounters this problem in terms of exactly how the Acrobat Distiller printer instance was being used prior to an uninstall of Acrobat (for example, were you printing a FrameMaker book "to file" with the
    Acrobat Distiller printer instance for purposes of subsequently distilling the whole book manually?)
    FIX
    Fortunately, it is very easy to add the "FILE:" port back into the operating system:
    (1) Logon to Windows 2000 as a user with Administrator privileges.
    (2) Go to Start=>Settings=>Printers.
    (3) Select File=>Server Properties.
    (4) Click the "Ports" tab.
    (5) Click "Add Port".
    (6) Select "Local Port" and click "New Port".
    (7) In response to "Enter a port name:" respond "FILE:" (without the surrounding quote marks, of course) and click OK.
    (8) The "FILE:" port should now be in the list of available ports. You may close the remaining dialogs.
    At this point, printing "to file" should work correctly. Most likely, you will not see the problem reoccur unless you do another round of uninstalls of Acrobat.
    - Dov

    You need to download and install the ADPDF9.PPD printer description and use it instead of Device Independent.

  • 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

  • Difference in printing PostScript file via Preview and lpr?

    I have a PostScript file which prints entirely
    different from Preview than it does when printed
    via lpr, e.g., the fonts are different as well
    as the page rotation.
    I'd like the lpr output to be the same as when
    printed from Preview. Can I do that?
    Thanks in advance.

    Most PostScript printers have a number of default settings within their printer menu, such as default font, orientation, finishing options, etc. When you submit a PS file via Terminal to the printer, the spool file will be printed according to these settings.
    When you print from an application using a PS driver, these built-in settings will be over-ridden by those same values that are set in the driver. By opening the PS file in Preview, which will first be converted to a PDF so you can see it, and then printing this file, you have submitted this spool file with the default driver settings which are obviously different to those set in the printer.
    So, if you want your LPR output to be the same, you will need to check what the printer driver settings are defaulted to and then make changes to the printers internal PS values.
    PaHu

  • Printing postscript file from IDcs3 for Distiller

    I have just upgraded my mac to a MP 2.8 quad duo and hence to Leopard. I am running OS 10.5.2 and ID 5.02 so it is all up to date. I have cs3 design premium installed.
    When running IDcs3 on OS 10.4 in order to create a pdf for 4 color print I would print a ps file from IDcs3. I select postscript file as the printer option and then in the PPD field choose Acrobat printer.
    Now, having migrated to Leopard, the Acrobat option is no longer available in the PPD field. I have reinstalled Acrobat Professional to see if there was a problem with the printer profiles being installed, but that did not change anything.
    I would have thought that selecting a PPD of "device independent" should work, but with that option selected I am unable to select the page size options.
    How do I create postscript files from IDcs3 for Distiller?

    WRT/ PDF/X-4, be aware that the final PDF/X-4 specification was published only one month ago by ISO. What is supported by Acrobat 8.x and InDesign 5.x does
    not fully comply with that specification. The next major releases of Acrobat and the Creative Suite will provide full PDF/X-4 support.
    Note that PDF/X-4 provides for full color-managed PDF 1.6 with support for live transparency, JPEG2000 image compression, and layers for (for versioning/editioning printing).
    Although the current release of the Adobe PDF Print Engine is not an officially compliant reader of PDF/X-4 files, PDF/X-4 is the ideal PDF variant for same.
    In terms of Distiller, there are no plans to provide support for PDF/X-4 in the Distiller simply because the Distiller doesn't support live transparency. Although one could conceivably ruin transparency by flattening and then validate the resultant PDF file as conforming to PDF/X-4 -- there is no requirement for live transparency -- use of flattened transparency in PDF/X-4 is certainly against the spirit of the standard we put together and by disallowing its production directly from Distiller or allowing InDesign's PDF export to flatten transparency going into PDF/X-4, we hope to dramatically improve the situation vis-a-vis rendering of transparency for printing by keeping transparency "live" and at its highest level of abstraction until RIP time.
    - Dov

  • Cannot print postscript files on Fedora Core 6

    Hi all. I'm running FC6, and KDE and cups. When I try to print graphics from a Java application - ArgoUML - I get an error in the printer manager. Is this a java problem or bug or a Linux/cups problem? Or do I have to configure something?
    # java -version
    java version "1.6.0"
    Java(TM) SE Runtime Environment (build 1.6.0-b105)
    Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed mode, sharing)
    Regards & TIA

    Had you managed to print the same files, or are you talking about files you hadn't attempted to print? Are these PDF files forms that you are trying to fill and print in Reader?

  • How to Print Post Script Files

    Hi All,
    I am trying to make a utility software in foxpro that could print post script file on:-
    1) Post script printer
    2) Non Post Script printer
    Operating System Windows 95 & above
    Help is requested from all the community members
    Reagards
    Harsh

    PostScript printer - send it to the printer port e.g. LPT1: with a simple copy.
    Non-PostScript printer - you'll need to buy a PostScript RIP, or perhaps use Acrobat Distiller to convert the PostScript to PDF, then print the PDF with Acrobat's API - see the Acrobat SDK. (This is not possible with the free Reader).

  • How to print an Doc file(MS Word File)on a printer in JAVA

    Hi.I am Prakash.
    Folowing is the code that i have used to print an doc file on a printer. Problem is that , when i run this code it will provide me an printout of a doc file.,but not in well formate as the actual formate of the file. If any one tried this before plz help me.Thanks
    import java.lang.reflect.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.Graphics2D;
    import java.io.*;
    import javax.swing.*;
    import javax.print.*;
    import javax.print.attribute.*;
    import javax.print.attribute.standard.*;
    import javax.print.event.*;
    public class BasicPrint {
         JFrame frame;
         JButton btn;
         private boolean PrintJobDone = false;
         protected void MakeGui() {
              frame = new JFrame("PrintService");
              btn = new JButton("Cancel Print Job");
              btn.disable();
              frame.getContentPane().add(btn, BorderLayout.SOUTH);
              frame.pack();
              frame.setVisible(true);
         BasicPrint(String FileToPrint, String pMode) {
              try {
                   MakeGui();
                   File baseDir = new File("d:/doc");
    File outDir = new File(baseDir, FileToPrint);
                   // Open the image file
                   InputStream is = new BufferedInputStream(new FileInputStream(
                             outDir));
                   // Find the default service
                   DocFlavor flavor = DocFlavor.INPUT_STREAM.AUTOSENSE;
                   //DocFlavor flavor = new DocFlavor("application/msword", "java.io.InputStream");
                   //DocFlavor docFlavor = new DocFlavor("application/vnd.ms-word", "java.io.InputStream");
                   if (pMode != null && pMode.equalsIgnoreCase("PS"))
                        flavor = DocFlavor.INPUT_STREAM.POSTSCRIPT;
                   else if (pMode != null && pMode.equalsIgnoreCase("PDF"))
                        flavor = DocFlavor.INPUT_STREAM.PDF;
                   else if (pMode != null && pMode.equalsIgnoreCase("JPG"))
                        flavor = DocFlavor.INPUT_STREAM.JPEG;
                   else if (pMode != null && pMode.equalsIgnoreCase("GIF"))
                        flavor = DocFlavor.INPUT_STREAM.GIF;
                   else if (pMode != null && pMode.equalsIgnoreCase("PNG"))
                        flavor = DocFlavor.INPUT_STREAM.PNG;
                   else if (pMode != null && pMode.equalsIgnoreCase("PCL"))
                        flavor = DocFlavor.INPUT_STREAM.PCL;
                   else if (pMode != null && pMode.equalsIgnoreCase("RAW"))
                        flavor = DocFlavor.INPUT_STREAM.AUTOSENSE;
                   else if (pMode != null && pMode.equalsIgnoreCase("TXT16"))//****                                   *********
                        flavor = DocFlavor.INPUT_STREAM.TEXT_PLAIN_UTF_16;
                        System.out.println("****ACTIVE***");
                   else if (pMode != null && pMode.equalsIgnoreCase("TXTBE"))//****
                        flavor = DocFlavor.INPUT_STREAM.TEXT_PLAIN_UTF_16BE;
                   else if (pMode != null && pMode.equalsIgnoreCase("TXTHOST"))//***
                        flavor = DocFlavor.INPUT_STREAM.TEXT_PLAIN_HOST;
                   else if (pMode != null && pMode.equalsIgnoreCase("TXT8"))
                        flavor = DocFlavor.INPUT_STREAM.TEXT_PLAIN_UTF_8;
                   else if (pMode != null && pMode.equalsIgnoreCase("TXTASCI"))
                        flavor = DocFlavor.INPUT_STREAM.TEXT_PLAIN_US_ASCII;
                   else if(pMode != null && pMode.equalsIgnoreCase("TXTLE"))
                        flavor = DocFlavor.INPUT_STREAM.TEXT_PLAIN_UTF_16LE;                                        //*******
                   else if(pMode != null && pMode.equalsIgnoreCase("SEVICE"))
                        flavor = DocFlavor.SERVICE_FORMATTED.PRINTABLE;
                   String type = flavor.getMediaType();
                   System.out.println("Type ="+ type);
                   //IMPRIMIR prakashCV.doc TXT text/plain; charset="utf-16le"; class="java.io.InputStream"
                   System.err.println("* IMPRIMIR " + FileToPrint + " " + pMode + " "
                             + flavor);
                   PrintService dservice = PrintServiceLookup
                             .lookupDefaultPrintService();
                   PrintService[] services = PrintServiceLookup.lookupPrintServices(
                             flavor, null);
                   if (services == null || services.length < 1)
                        services = PrintServiceLookup.lookupPrintServices(null, null);
                   PrintRequestAttributeSet aset = new HashPrintRequestAttributeSet();
                   aset.add(new Copies(1));
                   aset.add(OrientationRequested.PORTRAIT);
                   // aset.add(MediaTray.MAIN);
                   aset.add(Sides.ONE_SIDED);
                   aset.add(MediaSizeName.ISO_A4);
                   PrintService service = ServiceUI.printDialog(
                             (GraphicsConfiguration) null, 60, 60, services,
                             (PrintService) dservice, (DocFlavor) flavor, aset);
                   if (service != null) {
                        // Create the print job
                        final DocPrintJob job = service.createPrintJob();
                        Doc doc = new SimpleDoc(is, flavor, null);
                        // Monitor print job events; for the implementation of
                        // PrintJobWatcher,
                        PrintJobWatcher pjDone = new PrintJobWatcher(job);
                        if (job instanceof CancelablePrintJob) {
                             btn.addActionListener(new ActionListener() {
                                  public void actionPerformed(ActionEvent evt) {
                                       CancelablePrintJob cancelJob = (CancelablePrintJob) job;
                                       try {
                                            cancelJob.cancel();
                                       } catch (PrintException e) {
                                            // Possible reason is job was already finished
                             btn.enable();
                        try {
                             // Print it
                             job.print(doc, (PrintRequestAttributeSet) aset);
                        } catch (PrintException e) {
                             e.printStackTrace();
                        System.err.println("* Impresion Realizada - Esperando ..");
                        // Wait for the print job to be done
                        pjDone.waitForDone();
                   // It is now safe to close the input stream
                   is.close();
              } catch (IOException e) {
                   e.printStackTrace();
              } catch (Exception e) {
                   e.printStackTrace();
              } finally {
                   try {
                        synchronized (BasicPrint.this) {
                             PrintJobDone = true;
                             BasicPrint.this.notify();
                   } catch (Exception e) {
                        e.printStackTrace();
         public synchronized void waitForDone() {
              try {
                   while (!PrintJobDone) {
                        wait();
              } catch (InterruptedException e) {
                   e.printStackTrace();
         public static void main(String[] args) {
              try {
                   //args[0]="t";
                   //args[1]="rr";
    //               if (args.length < 1) {
    //                    System.err.println("\nSintaxis:\n\n java BasicPrint FileToPrint [pMode]\n");
    //                    System.exit(0);
                   BasicPrint bp = null;
                   //if (args.length < 2){
                        //bp = new BasicPrint(args[0], null);
                   //}else{
                        //bp = new BasicPrint(args[0], args[1]);
                        bp = new BasicPrint("prakashCV.doc","SEVICE");                                                       //****/***
                   bp.waitForDone();
                   System.exit(0);
              } catch (Exception e) {
                   e.printStackTrace();
         class PrintJobWatcher {
              // true iff it is safe to close the print job's input stream
              boolean done = false;
              int lastEvent = 0;
              PrintJobWatcher(DocPrintJob job) {
                   // Add a listener to the print job
                   job.addPrintJobListener(new PrintJobAdapter() {
                        public void printJobRequiresAttention(PrintJobEvent pje) {
                             lastEvent = pje.getPrintEventType();
                             System.err
                                       .println("* La impresora requiere de su Atencion ! * "
                                                 + pje);
                             // allDone();
                        public void printDataTransferCompleted(PrintJobEvent pje) {
                             lastEvent = pje.getPrintEventType();
                             System.err
                                       .println("* Transferencia de datos a la impresora OK. * "
                                                 + pje);
                             // allDone();
                        public void printJobCanceled(PrintJobEvent pje) {
                             lastEvent = pje.getPrintEventType();
                             System.err.println("* Trabajo de impresion CANCELADO ! * "
                                       + pje);
                             allDone();
                        public void printJobCompleted(PrintJobEvent pje) {
                             lastEvent = pje.getPrintEventType();
                             System.err.println("* Impresion completa OK. * " + pje);
                             allDone();
                        public void printJobFailed(PrintJobEvent pje) {
                             lastEvent = pje.getPrintEventType();
                             System.err.println("* ERROR en la Impresion ! * " + pje);
                             // allDone();
                        public void printJobNoMoreEvents(PrintJobEvent pje) {
                             lastEvent = pje.getPrintEventType();
                             System.err
                                       .println("* No mas eventos de impresion * " + pje);
                             allDone();
                        void allDone() {
                             synchronized (PrintJobWatcher.this) {
                                  done = true;
                                  PrintJobWatcher.this.notify();
              /** Description of the Method */
              public synchronized void waitForDone() {
                   try {
                        while (!done) {
                             wait();
                   } catch (InterruptedException e) {
                        e.printStackTrace();
    }

    Hi Maxpkh
    Do you mean attachment? You can't do that with free Adobe Reader you need Acrobat to do this.
    ~Deepak

  • Can't print a PS file from FM8 in Windows 7 (64-bit)---Help!

    Hi, can someone help with this? I recently got a new laptop with Windows 7 (64-bit) & I use FrameMaker 8. I cannot install my previous PS driver as it says it's not compatible with this version, so I downloaded both the Xerox Global & HP Universal PS drivers (at different times of course to test)---both completely freeze my FM8 book and don't print. I have to completely close FM8 down.
    I saw some posts here about changing the PS Language Level from 3 to 2,but that  didn't work. The only Adobe PS print driver I could find on the site wasn't comatible with Win 7...
    What do I do, what print driver will work for both FM8 and Windows 7 (64-bit)? Would really appreciate the help. Thx!

    Hi! Thx for your quick reply! I am still unsure what to do tho---see my questions below in bold:
    Windows 7 comes with its own version of the standard PostScript driver. = Where is this driver? I have no idea how to find it, it doesn't show up in my Printer menu in FM?
    Given that PostScript generated by a driver can be highly device-specific, you need to install the driver as modified by the PPD file for the device in question. Most printer manufacturers in fact provide a PostScript driver installer that associates their printer's PPD file with the standard Windows Printer driver and subsequently creates what is called a PostScript printer driver instance for the particular device on the I/O port you designate. = ??? I've only updated a PPD file for watermarks and have no idea what this means...is there a step-by-step instruction for this? I just need to download a PS driver to select that works & doesn't freeze up my FM when creating a .ps file.
    The real question thus is exactly what are you trying to generate PostScript for? = I create a PS, & then use Distiller to create a PDF. This enables me to have a PDF that automatically has Bookmarks, the TOC/LOF/LOT & all corss-refs are hyperlinked, etc.
    If you are trying to create PostScript for distillation into PDF, Acrobat installs a PostScript driver instance of its own, labelled Adobe PDF, that is associated with the Acrobat Distiller PPD. = I have tried the Adobe PDF selection from my Printer menu in FM, but it freezes up FM and I have to close the whole program & no PDF generates.
    BTW, although you may be successful in installing and running FrameMaker 8 on Windows 7, in fact Adobe officially does not support FrameMaker 8 on Windows 7. = I don't know what to say---the upgrade is too expensive for some of us folks out here right now, so we all need to work with what we have for now!
    I appreciate your help, thank you.

  • Using Excel VBA to Print to PDF File?

    Hi, All !!
    I have an Excel VBA application that creates Excel reports.  These need to be sent external to our company in PDF format.  I've downloaded the Acrobat SDK and have found the VB sample for AdobePDFSilent.  Unfortunately, it appears that this is written for VB or VB.Net as I don't have any of the data types available that are created in the code.  However, from another forum, I've gotten some VB code that appears to do many of the processes included in the SDK sample.
    The code below doesn't give me any errors, but no PDF file is created.
    My VBA code
    Declare Function RegOpenKeyA Lib "advapi32.dll" ( _
        ByVal Key As Long, _
        ByVal SubKey As String, _
        NewKey As Long) As Long
    Declare Function RegSetValueEx Lib "advapi32.dll" Alias "RegSetValueExA" ( _
        ByVal hKey As Long, _
        ByVal lpValueName As String, _
        ByVal Reserved As Long, _
        ByVal dwType As Long, _
        lpData As Any, _
        ByVal cbData As Long) As Long
    Declare Function RegCloseKey Lib "advapi32.dll" ( _
        ByVal hKey As Long) As Long
    Sub TestPrintPDF()
        Dim strDefaultPrinter As String
        Dim strOutFile As String
        Dim lngRegResult As Long
        Dim lngResult As Long
        Dim dhcHKeyCurrentUser As Long
        Dim PDFPath As String
        Const dhcRegSz As Long = 1
    1    Workbooks.Open ("\\master\fnshares\bcbcm\Client Management\Client Services\New Account Fees\09 September 2010\3Q10 Rebate Ltrs\Infi\MacroTest\A02.xls")
    2    Select Case ActiveWorkbook.Sheets.Count
    3        Case 1
    4            Sheets(1).Select
    5        Case 2
    6            Sheets(Array(Sheets(1).Name, Sheets(2).Name)).Select
    7        Case 3
    8            Sheets(Array(Sheets(1).Name, Sheets(2).Name, Sheets(3).Name)).Select
    9        Case 4
    10            Sheets(Array(Sheets(1).Name, Sheets(2).Name, Sheets(3).Name, Sheets(4).Name)).Select
    11        Case 5
    12           Sheets(Array(Sheets(1).Name, Sheets(2).Name, Sheets(3).Name, Sheets(4).Name, Sheets(5).Name)).Select
    13      Case 6
    14         Sheets(Array(Sheets(1).Name, Sheets(2).Name, Sheets(3).Name, Sheets(4).Name, Sheets(5).Name, Sheets(6).Name)).Select
    15  End Select
    16  dhcHKeyCurrentUser = &H80000001
    17  strDefaultPrinter = Application.ActivePrinter
    18  PDFPath = ActiveWorkbook.Path & Application.PathSeparator 'The directory in which you want to save the file
    19  strOutFile = PDFPath & Left(ActiveWorkbook.Name, Len(ActiveWorkbook.Name) - 4) & ".pdf" 'Change the pdf file name if required. This should have the fully qualified path
    20  lngRegResult = RegOpenKeyA(dhcHKeyCurrentUser, "Software\Adobe\Acrobat Distiller\PrinterJobControl", lngResult)
    21  lngRegResult = RegSetValueEx(lngResult, Application.Path & "\Excel.exe", 0&, dhcRegSz, ByVal strOutFile, Len(strOutFile))
    22  lngRegResult = RegCloseKey(lngResult)
    23  ThisWorkbook.ActiveSheet.PrintOut copies:=1, ActivePrinter:="Adobe PDF"
    24  Application.ActivePrinter = strDefaultPrinter
    25  ActiveWorkbook.Close False
    End Sub
    From what I can determine, the lines 17 & 24 combined basically accomplish the same thing as the SaveandUpdateDefaultPrinter function in the SDK (get and save the current default printer and return it to that default after printing the PDF).
    Line 20 opens the Registry key for Distiller\PrinterJobControl which is done in part of the ConvertFile function in the following SDK code.
    SDK Code
                Dim objDistillerRegKey As Microsoft.Win32.RegistryKey = Microsoft.Win32.Registry.ClassesRoot
                Dim strDistillerSubKey As String = "SOFTWARE\\Adobe\\Acrobat Distiller\\PrinterJobControl"
                'Open Current User's Distiller Subkey for writing
                objDistillerRegKey = Microsoft.Win32.Registry.CurrentUser.OpenSubKey(strDistillerSubKey, True)
    Line 21 sets the Registry key for Excel with the name of the PDF file to output which also appears to be done in part of the ConvertFile function in the following code.
    SDK Code
               If (Not objDistillerRegKey Is Nothing) Then     'set reg key value for this app and file
                    objDistillerRegKey.SetValue(strAppPath, strOutputFile)
                    objDistillerRegKey.Close()
                End If
    I have verified, using RegEdit, that this Registry key does get set with the desired output filename.
    Line 23 prints the Excel file to PDF when done manually (this was recorded using the Excel Macro Recorder).  This should be comparable to the PrintToAdobePDF function in the SDK as below.
    SDK Code
        Private Sub PrintToAdobePDF(ByVal InputfilePath As String)
            'Prints InputFilePath to the AdobePDF printer.
            'Since we just gathered all this info programmatically,
            'this function assumes the file is present, that it has an
            'associated application and that the current user has print privileges.
            'Define properties for the print process
            Dim pProcInfo As New ProcessStartInfo
            pProcInfo.FileName = InputfilePath
            pProcInfo.Verb = "Print"
            'Make process invisible
            pProcInfo.CreateNoWindow = True
            pProcInfo.WindowStyle = ProcessWindowStyle.Hidden
            'start print process
            Dim pMyProc As Process = Process.Start(pProcInfo)
            pMyProc.WaitForExit()
        End Sub
    These are some of the statements I can't do because I don't have a ProcessStartInfo type.  What am I doing wrong or NOT doing that the PDF file is not created?  I hope I've described my situation in enough, but not too much detail.  Thanks for your help.
    Nate Brei

    Reinhard & Karl Heinz,
    Thank you both for your responses and willingness to work with me on this problem.  This is driving me crazy & is getting very frustrating.  It seems that I've tried everything that people have suggested (I've also posted on a VB Forum that I subscribe to) and I'm basically doing what works for everyone else but doesn't work for me.  I've got to be close.
    Reinhard, regarding your last post, it doesn't appear to be a one-time setting.  Everytime I come into the Printers Property box (even after I've printed a PDF document manually, that option about system & document fonts is ALWAYS turned on.  If it is a registry setting, please let me know how to turn it off.  I'm using Adobe Acrobat 9 Standard.
    Karl Heinz, I've tried that based on my initial post (see the code there).  Since your post, I tried it again.  I get the same result, NO FILE is produced anywhere.
    I wish I could post pictures, but evidently I can't.  So, I going to post first my code (in case you want to try to recreate my problem), then the values of the variables in that code when I run it (so you can I have everything set correctly as far as I know), and finally, the values of the Registry entries that I have after I run it.  So, please bear with me as the post may be a little long.
    My Code
    Declare Function RegOpenKeyA Lib "advapi32.dll" ( _
        ByVal Key As Long, _
        ByVal SubKey As String, _
        NewKey As Long) As Long
    Declare Function RegSetValueEx Lib "advapi32.dll" Alias "RegSetValueExA" ( _
        ByVal hKey As Long, _
        ByVal lpValueName As String, _
        ByVal Reserved As Long, _
        ByVal dwType As Long, _
        lpData As Any, _
        ByVal cbData As Long) As Long
    Declare Function RegCloseKey Lib "advapi32.dll" ( _
        ByVal hKey As Long) As Long
    Sub TestPrintPDF()
        Dim strDefaultPrinter As String
        Dim strOutFile As String
        Dim lngRegResult As Long
        Dim lngResult As Long
        Dim dhcHKeyCurrentUser As Long
        Dim PDFPath As String
        Const dhcRegSz As Long = 1
        'Workbooks.Open ("\\master\fnshares\bcbcm\Client Management\Client Services\New Account Fees\09 September 2010\3Q10 Rebate Ltrs\Infi\MacroTest\A02.xls")
        Workbooks.Open ("H:\A02.xls")
        Select Case ActiveWorkbook.Sheets.Count
            Case 1
                Sheets(1).Select
            Case 2
                Sheets(Array(Sheets(1).Name, Sheets(2).Name)).Select
            Case 3
                Sheets(Array(Sheets(1).Name, Sheets(2).Name, Sheets(3).Name)).Select
            Case 4
                Sheets(Array(Sheets(1).Name, Sheets(2).Name, Sheets(3).Name, _
                 Sheets(4).Name)).Select
            Case 5
                Sheets(Array(Sheets(1).Name, Sheets(2).Name, Sheets(3).Name, _
                 Sheets(4).Name, Sheets(5).Name)).Select
            Case 6
                Sheets(Array(Sheets(1).Name, Sheets(2).Name, Sheets(3).Name, _
                 Sheets(4).Name, Sheets(5).Name, Sheets(6).Name)).Select
        End Select
        dhcHKeyCurrentUser = &H80000001
        strDefaultPrinter = Application.ActivePrinter
        'The directory in which you want to save the file
        PDFPath = ActiveWorkbook.Path & Application.PathSeparator
        'Change the pdf file name if required. This should have the fully qualified path
        strOutFile = PDFPath & Left(ActiveWorkbook.Name, Len(ActiveWorkbook.Name) - 4) & ".pdf"
        lngRegResult = RegOpenKeyA(dhcHKeyCurrentUser, "Software\Adobe\Acrobat Distiller\PrinterJobControl", _
            lngResult)
        lngRegResult = RegSetValueEx(lngResult, Application.Path & "\Excel.exe", 0&, dhcRegSz, _
            ByVal strOutFile, Len(strOutFile))
        lngRegResult = RegCloseKey(lngResult)
        ThisWorkbook.ActiveSheet.PrintOut copies:=1, ActivePrinter:="Adobe PDF"
        'ThisWorkbook.ActiveSheet.PrintOut copies:=1, preview:=False, ActivePrinter:="Adobe PDF", _
            printtofile:=True, collate:=True, prtofilename:=strOutFile
        'Call printToPdf(strOutFile)
        Application.ActivePrinter = strDefaultPrinter
        ActiveWorkbook.Close False
    End Sub
    Sub printToPdf(PDFFilename)
        ' Define a postscript file name
        PSFileName = "H:\TempPostScript.ps"
        ' Print the Excel range to the postscript file
        'Dim MySheet As Worksheet
        'Set MySheet = ActiveSheet
        ActiveWindow.SelectedSheets.PrintOut copies:=1, preview:=False, ActivePrinter:="Adobe PDF", _
            printtofile:=True, collate:=True, prtofilename:=PSFileName
        ' Convert the postscript file to .pdf
        Set myPDF = CreateObject("PdfDistiller.PdfDistiller.1")
        myPDF.FileToPDF PSFileName, PDFFilename, ""
    End Sub
    Values of my Variables When I Run the Code
    ? dhcHKeyCurrentUser
         -2147483647
    ? strDefaultPrinter
         \\tcps01p\FNT12W00 Canon 5020 PCL 5e on Ne04:
    ? PDFPath
         H:\
    ? strOutFile
         H:\A02.pdf
    ? lngResult
         2280
    ? Application.Path & "\Excel.exe
         C:\Program Files\Microsoft Office\OFFICE11\Excel.exe
    ? dhcRegSz
         1
    ? Len(strOutFile)
         10
    ? PSFileName
         H:\TempPostScript.ps
    ? PDFFilename
         H:\A02.pdf
    Values of my Registry Entries (HKEY_CURRENT_USER\Software\Adobe\Acrobat Distiller\PrinterJobControl)
    (Default)          REG_SZ          (value not set)
    C:\Program Files\Microsoft Office\OFFICE11\Excel.exe          REG_SZ          H:\A02.pdf
    LastPdfPortFolder - EXCEL.EXE          REG_SZ          "Q:\Client Management\Client Services\New Account Fees\09 September 2010\3Q10 Rebate Ltrs\Infi\MacroTest
    Note:  There are a couple of other entries for documents that I've printed manually that I didn't include.  Also, the last entry above, contains the value of the folder that I last manually "printed" to.
    I've also noticed that I have a Registry SubKey under PrinterJobControl called DownloadFonts.  However, the only entry there is:
         (Default) REG_SZ (value not set)
    Is this the registry key you mentioned, Reinhard?
    As you can see in my code, I have 3 different methods that I've tried to print.  The first one defaults everything after selecting the Acrobat PDF printer.  The second sets the output filename as a PDF (basically what you suggested, Karl Heinz).  The third method calls a procedure that prints to a PostScript file & then uses Distiller to print from that file to pdf.  This is the method Reinhard suggested.
    With the first 2 methods, I get NO error messages, but no file(s) show up.  With the 3 method, I get the error about the Fonts checkbox, but it creates a 0K PostScript file.  When I skip that statement and run the other 2 statements, I get a log file that says the PostScript file is empty and not PDF file was created.
    YIKES...  What's going on?  Thanks again for attempting to help me!!!
    Nate

  • Printing of pdf file in reports

    When a report output which is in pdf form is being printed the fonts in the output file are getting compressed . Is there any way by which we can get the same printout as we get in the preview of th ereports
    Thanks in advance
    Varsha Kapoor

    can u please send me the postscript fonts files in your os.
    I am facing the problem i.e converting character mode report into PDF report it is printing in the compressed mannner.
    Can u tell me whether i can generate softcopy,postscript for a char mode report in one go..because i can run the report only after that the records are deleted.
    Thanks
    Ramesh

  • 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();

  • Ink manager and printing postscript vs. export to PDF

    Hi all,
    I have a question about using the ink manager to convert PMS colors to CMYK.
    I have an ID file with a eps placed in it.
    the eps uses a spot color so that color gets pulled into ID.
    If I use the ink manager to convert it to CMYK and export the file to PDF, this works fine.
    I'm left with a PDF with 4 plates: CMYK.
    However, our print production department prints to postcript files then distills them (I know, I know. This is out of my hands!)
    The resulting PDF  includes the spot plate for the color I'd converted in the ink manager! (And the color is in use, it's not a blank plate or just in the registration marks)
    If I look at the separations in the ID file, I only have 4 plates. No spot colors.
    So why is the spot color coming back in the distilled PDF?

    I'd be curious to hear the reasons why you use distiller rather than exporting from InDesign when creating PDFs.
    Would you be willing to share even though this is kind of off-topic?
    We have had a number of issues with tranparency and InDesign. The latest is if you have a gradient (usually a drop shadow) that is on top of other objects. As InDesign cuts up larger images into smaller pieces when writing to a PDF, if you export, these smaller pieces can, and probably will have different resolutions. We had a file once where 99% of one images was 350dpi, and a small part of the image was 72. If we first write to postscript and then to pdf these problems don't occur. Of course, you also have to consider the transparency reduction settings in InDesign.

  • Problem printing Acrobat.pdf files get a VMerror error. Upgraded to Mac OS X10.10 Yosemite

    I really need to be able to print Acrobat.pdf files and printer window indicates pdf is being sent to the printer. Printed a test page and Word documents but not Acrobat.pdf.
    Test page indicated I have Driver Name: HP338_6PPD and Driver Version: 19.8.. I have had this printer for over 10 years and it has performed very well.  Other than I can't scan anymore it has never failed to print a document.  Does Adobe need to address this problem?

    Welcome back to the community, @JAJ70 
    I read about the "VMerror" error you are seeing when attempting to print PDF files. Although this may be an issue with Adobe, I do have some links and suggestions for you to look into.
    I would suggest a power reset:
    Press the Power button to turn on the product.
    With the product turned on, disconnect the power cord from the rear of the product.
    Unplug the power cord from the wall outlet.
    Wait at least 15 seconds.
    Plug the power cord back into the wall outlet.
    Reconnect the power cord to the rear of the product.
    If the product does not turn on by itself, press the Power button to turn it on.
    I am unsure of which printer you have however, check for a firmware update:
    Getting the Latest Firmware and Product Updates
    These steps, in order may help as well:
    Mac OS X: How to reset the printing system
    Repair disk permissions
    Restart the Mac
    Re-add the printer
    Here is what I have found when searching for the error "VMerror":
    Troubleshoot memory-related PostScript error ("VMerror," "limitcheck") printing from Illustrator (CS...
    Troubleshoot PostScript errors
    Troubleshoot damaged Illustrator files
    I hope that helps, let me know the results
    R a i n b o w 7000I work on behalf of HP
    Click the “Kudos Thumbs Up" at the bottom of this post to say
    “Thanks” for helping!
    Click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution!

Maybe you are looking for

  • Cannot modify FSB speed on my 850 Pro5(MS 6545)

    I've been trying to modify the FSB speed of my 850 Pro5(MS 6545) but have been unable to. In the Bios, under "Frequency / Voltage Control / CPU Clock", I've tried to put in 133. However, after I save my changes, the POST still lists my FSB speed as 1

  • Cisco 7965 question

    Hello, I'm the new admin for our CUCM ver. 8. Currently, I have a customer with a 7965 phone who would like to have the ringing on his secondary keys turned off. He still wants his primary line to ring just not the other 2. This has to be an easy fix

  • How to back up emails saved to iPhone when email account no longer exists

    I have a large number of emails that are on my iPhone 5 that I cannot afford to lose. The email account that they were downloaded from used to be a work email account but I no longer have access to it. I want to update my iOS to 7 but I am afraid tha

  • Regarding the use of different services for different parts in the same display layout

    hi, i am trying to design an application using flex at the frontend and in the gui what i have designed i have the upper portion consisting of four panels displaying the critical events at real time whereas in the lower half of the gui design i have

  • Illustrator CS5 update fails

    No matter how many times I try to update my program, I get this error code for Illustrator: Adobe Illustrator CS5 15.0.2 Update Installation failed. Error Code: U44M1P7 What do I do to fix it?