Html to postscript

hey there,
i have an app that uses JEditorPane to view a html page. Now i want to print that html file viewed, but by printer can't print the TEXT_HTML flavour. It can like nearly any printer the POSTSCRIPT format. Now i want to convert my html file to the postscript format. does anybody know how to do that in java? Is there an api for that available? Any other suggestions?
I'm using the javax.print api to do the job. below is the sourcecode.
THANKS in advance!
Angry Angel
====================================================================================
try
String htmlFilePath = "/usr/home/twerner/test.html";
FileInputStream in = new FileInputStream(htmlFilePath);
DocFlavor docType = DocFlavor.INPUT_STREAM.TEXT_HTML_HOST;
Doc htmlDoc = new SimpleDoc(in,docType,null);
PrintService printService = PrintServiceLookup.lookupDefaultPrintService();
DocPrintJob printJob = printService.createPrintJob();
printJob.print(htmlDoc, null);
catch (Exception e) {e.printStackTrace();}

If your HTML is really XHTML, you can always use XSL-FO to convert your document to a PDF using Jakarta's FOP.
The bad news for you is that the Java print API won't handle PDFs, either:
http://www-106.ibm.com/developerworks/java/library/j-mer0322/
Note the last paragraph.

Similar Messages

  • ___Advice on how to print html from an applet___

    I have been working on this problem for a little while, but still can't find a good solution. I ask for any help/advice I can receive on this matter.
    Below is what I have already tried:
    1) Place the HTML within a JEditorPane and print the graphics object.
    * In order to do this I would have to display the HTML, which I do not want to do.
    * I have also tried placing the HTML within a JEditorPane and not display it, but I get no data from printing the graphics object.
    2) Print the View classes that contain the text by placing the html into a JEditorPane ex) JEditorPane.getUI().getRootView(jeditorPane).
    * This method is how the following article prints HTML: http://www.fawcette.com/javapro/2002_12/online/print_kgauthier_12_10_02/
    * This class prints each "leaf" view, which unfortunately will not print lists or table borders b/c they are contained in "branch" views. I have not been able to convert this class to print the branch views in a nice looking format.
    3) Use a DocFlavor of type "text/html" and send document to the printer.
    * Some printers can render html, but these are few and far between. Most printers I am dealing with do not accept type text/html.
    Below are some things I am thinking about trying:
    1) Convert the HTML to postscript and print the postscript.
    * I have no clue how to do this. I have searched the internet for code and found nothing but perl code (but I am using a java applet).
    2) Save the html file to users disk and open html file in new browser window. Then use javascript print function.
    * I really do not want to have to save files to the users disk just to print. This seems like the easiest way, but is also the least user-convient way.
    I would greatly appreciate any advice on printing HTML using java. Should I re-examine the methods I already tried? Can anyone give input on the methods I am planning to try? I would think this is a common problem, but I am having a hard time finding answers.
    Thanks for your interest and any help you can provide :)

    I tried the Java printing API in 1.4.2 but found it hopeless in terms of printing anything without using AWT.
    Also since the print service was going to be on Windows machine I used jawin (http://sf.net/projects/jawinproject/) to query the registry for the command to print a particular extension and then exec that command.

  • I can't create PDFs from CS3 programs in Acrobat Pro XI. Compatibility issue or just Acrobat?

    I was just upgraded to Acrobat Pro XI this morning. InDesign, Photoshop, and Illustrator don't seem to be supported file types for creating a PDF from Acrobat.  While I usually create my PDFs from the authoring program, I occasionally need to make a lot of PDFs of different files at once, and making them from Acrobat makes sense instead of opening each individual file.
    Is this just a compatibility issue? We have requested upgrades to CS6, but it will be a while before it gets approved (if it gets approved).  Did someone think it was a brilliant idea not to allow PDFs from the CS products to be created from Acrobat instead of the authoring program?

    Can you describe your workflow a little more? Are you saying that you created PDFs of InDesign documents using Acrobat directly -- not using InDesign?
    If that was possible in CS3, I must have missed it.
    FWIW, I can't select CS6 InDesign, Illustrator or Photoshop documents in Acrobat X. You can only select a handful of image formats, HTML or PostScript/EPS.

  • IOS 6 AirPrint not working with 10.6 Server - FIX!!!

    Not sure if there are any bods out there that use 10.6.8 server for AirPrint but if you do - you will have noticed that iOS6 doesn't see shared printers where as iOS5 does. Below is the fix. You need to be reasonably proficient with Terminal but otherwise - straightforward. Hope this helps.....
    (Obviously you can stop the service and use Netputing's AiorPrint Activator but for a server based managed queueing system, this just allows it to works as it did before.)
    10.6.8v1.1 Server and iOS6 AirPrint not working… Fix below…
    Stop Print Services and as root from terminal using vi or equiv add the following:
    (you will need to chmod 744 to edit then 444 the mime file after. 'touch' the files when your done)
    It may work being left rwx but I don't know - I have just put the files back to their original state.
    Restart print services after and you are all good.
    usr/share/cups/mime/
    File: apple.types
    Add the following line in bold (I have shown a few lines either side so you know where to put them):
    image/pict                              pict pic PICT string(522, <001102FF0C00>)
    image/urf                               urf (0,UNIRAST)
    # Image formats supported by CGImageIO.
    image/imageio                   crw cr2 nef bay raw dcr dng orf srf fax
    File: mime.convs
    Add the following line in bold:
    text/css                              application/postscript                    33          texttops
    text/html                              application/postscript                    33          texttops
    image/urf                               application/vnd.cups-postscript 66           pdftops
    image/gif                              application/vnd.cups-postscript          66          imagetops
    image/png                              application/vnd.cups-postscript          66          imagetops
    image/jpeg                              application/vnd.cups-postscript          66          imagetops

    Arrr - your Printer is AirPrint capable. You are printing direct from an iOS device to the printer. Some printers need a firmware update - others will work with iOS 6 straight away.
    The issue above relates to Mac OS X Server 10.6.8 (not client) and in relation to Print Services. You can use 10.6 Server and AirPrint to Any printer you like - not just an AirPrint ones. This is what AirPrint Activator does for client -  the above fix mends for Server.
    Glad you got you problem solved anyway.
    Oli

  • Problems with cups

    My printer (Epson Stylus Color 460) worked a few days ago. Now wen I try to print something, knotify shows an error:
    A print error occurred. Error message received from system:
    cupsdoprint -P 'Epson' -J '' -H 'localhost:631' -U 'root' -o ' copies=1 orientation-requested=3' '/tmp/kde-piotrek/kpdfh5Qzec.ps' : execution failed with message:
    client-error-document-format-not-supported
    or
    A print error occurred. Error message received from system:
    cupsdoprint -P 'Epson' -J 'KDE Print Test' -H 'localhost:631' -U 'root' -o ' copies=1 multiple-document-handling=separate-documents-collated-copies orientation-requested=3' '/opt/kde/share/apps/kdeprint/testprint.ps' : execution failed with message:
    client-error-document-format-not-supported
    Generally an error here is "client-error-document-format-not-supported ".
    I tried to hash and unhash the line:
    application/octet-stream
    in /etc/cups/mime.types and /etc/cups/mime.convs. I googled it could help, but not in my case.
    I can print some files using cupsdoprint or lp without -o argument. But I cannot print any odt or pdf files. Only plain text.
    The only error that shows up in cups logs is:
    Unable to set ACLs on root certificate "/var/run/cups/certs/0" - Operation not supported
    I googled all the net, and I didn't find a solution, so I really count on you guys.

    # "$Id: mime.convs 5402 2006-04-14 19:21:03Z mike $"
    #   MIME converts file for the Common UNIX Printing System (CUPS).
    #   Copyright 1997-2005 by Easy Software Products.
    #   These coded instructions, statements, and computer programs are the
    #   property of Easy Software Products and are protected by Federal
    #   copyright law.  Distribution and use rights are outlined in the file
    #   "LICENSE.txt" which should have been included with this file.  If this
    #   file is missing or damaged please contact Easy Software Products
    #   at:
    #       Attn: CUPS Licensing Information
    #       Easy Software Products
    #       44141 Airport View Drive, Suite 204
    #       Hollywood, Maryland 20636 USA
    #       Voice: (301) 373-9600
    #       EMail: [email protected]
    #         WWW: http://www.cups.org
    # Format of Lines:
    #   source/type destination/type cost filter
    # General Notes:
    #   The "cost" field is used to find the least costly filters to run
    #   when converting a job file to a printable format.
    #   All filters *must* accept the standard command-line arguments
    #   (job-id, user, title, copies, options, [filename or stdin]) to
    #   work with CUPS.
    # PostScript filters
    application/pdf        application/postscript    33    pdftops
    application/postscript    application/vnd.cups-postscript    66    pstops
    application/vnd.hp-HPGL    application/postscript    66    hpgltops
    application/x-cshell    application/postscript    33    texttops
    application/x-csource    application/postscript    33    texttops
    application/x-perl    application/postscript    33    texttops
    application/x-shell    application/postscript    33    texttops
    text/plain        application/postscript    33    texttops
    text/html        application/postscript    33    texttops
    image/gif        application/vnd.cups-postscript    66    imagetops
    image/png        application/vnd.cups-postscript    66    imagetops
    image/jpeg        application/vnd.cups-postscript    66    imagetops
    image/tiff        application/vnd.cups-postscript    66    imagetops
    image/x-bitmap        application/vnd.cups-postscript    66    imagetops
    image/x-photocd        application/vnd.cups-postscript    66    imagetops
    image/x-portable-anymap    application/vnd.cups-postscript    66    imagetops
    image/x-portable-bitmap    application/vnd.cups-postscript    66    imagetops
    image/x-portable-graymap application/vnd.cups-postscript    66    imagetops
    image/x-portable-pixmap    application/vnd.cups-postscript    66    imagetops
    image/x-sgi-rgb        application/vnd.cups-postscript    66    imagetops
    image/x-xbitmap        application/vnd.cups-postscript    66    imagetops
    image/x-xpixmap        application/vnd.cups-postscript    66    imagetops
    #image/x-xwindowdump    application/vnd.cups-postscript    66    imagetops
    image/x-sun-raster    application/vnd.cups-postscript    66    imagetops
    # Form filter...
    # This filter does not currently exist, but the file format is defined
    # in the IDD and registered with the IANA for future use...
    #application/vnd.cups-form application/vnd.cups-postscript 33 formtops
    # Raster filters...
    image/gif        application/vnd.cups-raster    100    imagetoraster
    image/png        application/vnd.cups-raster    100    imagetoraster
    image/jpeg        application/vnd.cups-raster    100    imagetoraster
    image/tiff        application/vnd.cups-raster    100    imagetoraster
    image/x-bitmap        application/vnd.cups-raster    100    imagetoraster
    image/x-photocd        application/vnd.cups-raster    100    imagetoraster
    image/x-portable-anymap    application/vnd.cups-raster    100    imagetoraster
    image/x-portable-bitmap    application/vnd.cups-raster    100    imagetoraster
    image/x-portable-graymap application/vnd.cups-raster    100    imagetoraster
    image/x-portable-pixmap    application/vnd.cups-raster    100    imagetoraster
    image/x-sgi-rgb        application/vnd.cups-raster    100    imagetoraster
    image/x-xbitmap        application/vnd.cups-raster    100    imagetoraster
    image/x-xpixmap        application/vnd.cups-raster    100    imagetoraster
    #image/x-xwindowdump    application/vnd.cups-raster    100    imagetoraster
    image/x-sun-raster    application/vnd.cups-raster    100    imagetoraster
    # pstoraster is now part of ESP Ghostscript...
    #application/vnd.cups-postscript    application/vnd.cups-raster    100    pstoraster
    # Raw filter...
    # Uncomment the following filter to allow printing of arbitrary files
    # without the -oraw option.
    application/octet-stream    application/vnd.cups-raw    0    -
    # End of "$Id: mime.convs 5402 2006-04-14 19:21:03Z mike $".
    # "$Id: mime.types 6003 2006-10-02 16:26:04Z mike $"
    #   MIME types file for the Common UNIX Printing System (CUPS).
    #   Copyright 1997-2005 by Easy Software Products.
    #   These coded instructions, statements, and computer programs are the
    #   property of Easy Software Products and are protected by Federal
    #   copyright law.  Distribution and use rights are outlined in the file
    #   "LICENSE.txt" which should have been included with this file.  If this
    #   file is missing or damaged please contact Easy Software Products
    #   at:
    #       Attn: CUPS Licensing Information
    #       Easy Software Products
    #       44141 Airport View Drive, Suite 204
    #       Hollywood, Maryland 20636 USA
    #       Voice: (301) 373-9600
    #       EMail: [email protected]
    #         WWW: http://www.cups.org
    # Format of Lines:
    #   super/type rules
    # "rules" can be any combination of:
    #   ( expr )                Parenthesis for expression grouping
    #   +                    Logical AND
    #   , or whitespace            Logical OR
    #   !                    Logical NOT
    #   match("pattern")            Pattern match on filename
    #   extension                Pattern match on "*.extension"
    #   ascii(offset,length)        True if bytes are valid printable ASCII
    #                    (CR, NL, TAB, BS, 32-126)
    #   printable(offset,length)        True if bytes are printable 8-bit chars
    #                    (CR, NL, TAB, BS, 32-126, 128-254)
    #   string(offset,"string")        True if bytes are identical to string
    #   istring(offset,"string")        True if bytes are identical to
    #                                       case-insensitive string
    #   char(offset,value)            True if byte is identical
    #   short(offset,value)            True if 16-bit integer is identical
    #   int(offset,value)            True if 32-bit integer is identical
    #   locale("string")                    True if current locale matches string
    #   contains(offset,range,"string")    True if the range contains the string
    # General Notes:
    #   MIME type names are case-insensitive.  Internally they are converted
    #   to lowercase.  Multiple occurrences of a type will cause the provided
    #   rules to be appended to the existing definition.  Type names are sorted
    #   in ascending order, so if two types use the same rules to resolve a type
    #   (e.g. doc extension for two types), the returned type will be the first
    #   type in the sorted list.
    #   The "printable" rule differs from the "ascii" rule in that it also
    #   accepts 8-bit characters in the range 128-255.
    #   String constants must be surrounded by "" if they contain whitespace.
    #   To insert binary data into a string, use the <hex> notation.
    # Application-generated files...
    #application/msword        doc string(0,<D0CF11E0A1B11AE1>)
    application/pdf            pdf string(0,%PDF)
    application/postscript        ai eps ps string(0,%!) string(0,<04>%!)
                    contains(0,128,<1B>%-12345X) +
                    (contains(0,1024,"LANGUAGE=POSTSCRIPT")
                     contains(0,1024,"LANGUAGE = Postscript")
                     contains(0,1024,"LANGUAGE = PostScript")
                     contains(0,1024,"LANGUAGE = POSTSCRIPT")
                     (contains(0,1024,<0a>%!) +
                      !contains(0,1024,"ENTER LANGUAGE")))
    application/vnd.hp-HPGL        hpgl string(0,<1B>&)
                    string(0,<1B>E<1B>%0B)
                    string(0,<1B>%-1B) string(0,<201B>)
                    string(0,BP;) string(0,IN;) string(0,DF;)
                    string(0,BPINPS;)
                    (contains(0,128,<1B>%-12345X) +
                     (contains(0,1024,"LANGUAGE=HPGL")
                      contains(0,1024,"LANGUAGE = HPGL")))
    # Image files...
    image/gif            gif string(0,GIF87a) string(0,GIF89a)
    image/png            png string(0,<89>PNG)
    image/jpeg            jpeg jpg jpe string(0,<FFD8FF>) &&
                    (char(3,0xe0) char(3,0xe1) char(3,0xe2) char(3,0xe3)
                     char(3,0xe4) char(3,0xe5) char(3,0xe6) char(3,0xe7)
                     char(3,0xe8) char(3,0xe9) char(3,0xea) char(3,0xeb)
                     char(3,0xec) char(3,0xed) char(3,0xee) char(3,0xef))
    image/tiff            tiff tif string(0,MM) string(0,II)
    image/x-photocd            pcd string(2048,PCD_IPI)
    image/x-portable-anymap        pnm
    image/x-portable-bitmap        pbm string(0,P1) string(0,P4)
    image/x-portable-graymap    pgm string(0,P2) string(0,P5)
    image/x-portable-pixmap        ppm string(0,P3) string(0,P6)
    image/x-sgi-rgb            rgb sgi bw icon short(0,474)
    image/x-xbitmap            xbm
    image/x-xpixmap            xpm ascii(0,1024) + string(3,"XPM")
    #image/x-xwindowdump        xwd string(4,<00000007>)
    image/x-sun-raster        ras string(0,<59a66a95>)
    #image/fpx            fpx
    image/x-alias            pix short(8,8) short(8,24)
    image/x-bitmap            bmp string(0,BM) && !printable(2,14)
    image/x-icon            ico
    # Text files...
    application/x-cshell        csh printable(0,1024) + string(0,#!) +
                    (contains(2,80,/csh) contains(2,80,/tcsh))
    application/x-perl        pl printable(0,1024) + string(0,#!) +
                    contains(2,80,/perl)
    application/x-shell        sh printable(0,1024) + string(0,#!) +
                    (contains(2,80,/bash) contains(2,80,/ksh)
                     contains(2,80,/sh) contains(2,80,/zsh))
    application/x-csource        c cxx cpp cc C h hpp
                    printable(0,1024) +
                    (string(0,/*) string(0,//)
                     string(0,#include) contains(0,1024,<0a>#include)
                     string(0,#define) contains(0,1024,<0a>#define))
    text/html            html htm printable(0,1024) +
                    (istring(0,"<HTML>") istring(0,"<!DOCTYPE"))
    text/plain            txt printable(0,1024)
    text/css            css
    # CUPS-specific types...
    application/vnd.cups-command    string(0,'#CUPS-COMMAND')
    application/vnd.cups-form    string(0,"<CUPSFORM>")
    application/vnd.cups-pdf
    application/vnd.cups-postscript
    application/vnd.cups-ppd    ppd string(0,"*PPD-Adobe:")
    application/vnd.cups-raster    string(0,"RaSt") string(0,"tSaR")
    application/vnd.cups-raw    (string(0,<1B>E) + !string(2,<1B>%0B))
                    string(0,<1B>@)
                    (contains(0,128,<1B>%-12345X) +
                     (contains(0,4096,"LANGUAGE=PCL")
                      contains(0,4096,"LANGUAGE = PCL")))
    # Raw print file support...
    # Comment the following type to prevent raw file printing.
    application/octet-stream
    # End of "$Id: mime.types 6003 2006-10-02 16:26:04Z mike $".

  • Reports Lauch Form

    Can anyone tell me how you are supposed to send a report to a file through the reports launch form.
    Does anyone know what the "Options" button is supposed to allow?
    Running the report to the previewer does allow a file - generate to file - pdf/html/rtf/postscript option but this seems to error.
    Any ideas anyone.
    Cheers,
    Dave

    Dave,
    To send a report to a file, you press the Options button and change the value for Destination Type to 'FILE'. You can optionally enter a printer driver in the Destination Format parameter. When you run the report, the reports runtime engine creates a printer file in the working directory of your application. Note: this is a printer file and not a word/pdf/html document.
    As far as the Options button goes, this is a mechanism to allow users to enter some of the normal command line parameters for reports. In the foundation application, choose Parameters->Standard Report Parameters. This form allows you to define any report command line parameters. If you check the Report Specific checkbox, then this parameter is available to be included in a report. You must then go to Parameters->Module and Parameters and use the Add Standard Report Parameters button to add this parameter to your report(s). The parameter is then available to the end user when they press the Options button.
    Headstart doesn't do anything special with these parameters. It simply passes them to the reports runtime engine on the command line. You can read the Report Builder documentation to find out more about the usage of individual parameters.
    Regards,
    Lauri

  • Print HTML-Page

    Hi, i want to print a HTML-formated Page without the tags and whit pictures in the page, i think thats also called WYSIWYG. How i can do this ? Is there a possiblility to convert HTML to printerfriendly format like RAW ?

    maybe you can't got the printer coz your printer didn't support the html flavor like me.
    My printer is HP-400 Monochrome. As far I have explore. I just can print txt files :(
    There's my code and the error msg.
    ---my code----
    //Example: PrintHTML.java
    import java.io.*;
    import javax.print.*;
    import javax.print.attribute.*;
    import javax.print.attribute.standard.*;
    import javax.print.event.*;
    public class PrintHTML {
         public static void main(String args[]) {
              PrintHTML ps = new PrintHTML();
         public PrintHTML() {
              /* Construct the print request specification.
              * The print data is Postscript which will be
              * supplied as a stream. The media size
              * required is A4, and 2 copies are to be printed
              DocFlavor flavor = DocFlavor.INPUT_STREAM.TEXT_HTML_HOST;
              PrintRequestAttributeSet aset =
                   new HashPrintRequestAttributeSet();
              aset.add(MediaSizeName.ISO_A4);
              aset.add(new Copies(2));
              aset.add(Sides.TWO_SIDED_LONG_EDGE);
              aset.add(Finishings.STAPLE);
              /* locate a print service that can handle it */
              PrintService[] pservices = PrintServiceLookup.lookupPrintServices(DocFlavor.INPUT_STREAM.JPEG, null);
              PrintService service = ServiceUI.printDialog(null, 50, 50, pservices, pservices[0], flavor, aset);
              System.out.println("Print Services Located");
              if (pservices.length > 0) {
                   System.out.println("selected printer " + pservices[0].getName());
                   /* create a print job for the chosen service */
                   DocPrintJob pj = pservices[0].createPrintJob();
                   System.out.println("Create PrintJob succed");
                   try {
                        * Create a Doc object to hold the print data.
                        * Since the data is postscript located in a disk file,
                        * an input stream needs to be obtained
                        * BasicDoc is a useful implementation that will if requested
                        * close the stream when printing is completed.
                        FileInputStream fis = new FileInputStream("test.html");
                        Doc doc = new SimpleDoc(fis, flavor, null);
                        /* print the doc as specified */
                        pj.print(doc, aset);
                        * Do not explicitly call System.exit() when print returns.
                        * Printing can be asynchronous so may be executing in a
                        * separate thread.
                        * If you want to explicitly exit the VM, use a print job
                        * listener to be notified when it is safe to do so.
                        System.out.println("Udh selesai ngeprint.");
                   } catch (IOException ie) {
                        System.err.println(ie);
                   } catch (PrintException e) {
                        System.err.println(e);
    ---error messages---
    Exception in thread "main" java.lang.IllegalArgumentException: text/html; charse
    t="cp1252"; class="java.io.InputStream" is an unsupported flavor
    at sun.print.Win32PrintService.getSupportedAttributeValues(Win32PrintSer
    vice.java:903)
    at sun.print.ServiceDialog$MediaPanel.updateInfo(ServiceDialog.java:1683
    at sun.print.ServiceDialog$PageSetupPanel.updateInfo(ServiceDialog.java:
    1051)
    at sun.print.ServiceDialog.updatePanels(ServiceDialog.java:332)
    at sun.print.ServiceDialog.<init>(ServiceDialog.java:149)
    at javax.print.ServiceUI.printDialog(ServiceUI.java:161)
    at PrintHTML.<init>(PrintHTML.java:34)
    at PrintHTML.main(PrintHTML.java:11)

  • BUG report: Distiller v.8.1.0 erroneously execute i/o-operations in PostScript programms

    Distiller v.8.1.0 erroneously execute i/o-operations in PostScript programms (WinXP SP3 & Win2K3 RC1 SP2 platform).
    Execution of the PS-code, contained file i/o operaions (see
    i PLRM 3rd edition
    , pp.73-87)
    c %*************************** PS-File *********************************
    c (c:\\temp\\File1.txt) (w) file closefile % Open file for write and close it
    c %*********************************************************************
    (or others file write ops.) produce invalidfileaccess error:
    b =============== Distiller LOG =====================
    > %%[ Error: invalidfileaccess; OffendingCommand: file ]%%
    > Stack:
    > (w)
    > (c:\\temp\\file1.txt)
    > %%[ Flushing: rest of job (to end-of-file) will be ignored ]%%
    > %%[ Warning: PostScript error. No PDF file produced. ] %%
    b ==================================================
    Execution of the file read operations (file exist!)
    c %*************************** PS-File *********************************
    c (c:\\temp\\File2.txt) (r) file closefile % Open existing file for reading
    c %*********************************************************************
    or
    c %*************************** PS-File *********************************
    c (c:\\temp\\File2.ps) run % execute existing PS-program
    c %*********************************************************************
    produce undefinedfilename error:
    b =============== Distiller LOG =====================
    > %%[ Error: undefinedfilename; OffendingCommand: file ]%%
    > Stack:
    > (r)
    > (c:\\temp\\file2.txt)
    >
    >
    > %%[ Flushing: rest of job (to end-of-file) will be ignored ]%%
    > %%[ Warning: PostScript error. No PDF file produced. ] %%
    b ==================================================
    b =============== Distiller LOG =====================
    > %%[ Error: undefinedfilename; OffendingCommand: run ]%%
    > Stack:
    > (r)
    > (c:\\temp\\file2.ps)
    > %%[ Flushing: rest of job (to end-of-file) will be ignored ]%%
    > %%[ Warning: PostScript error. No PDF file produced. ] %%
    b ==================================================
    It doesn't matter, in what folder operation is carried out system %TEMP% or User %TEMP% (not in %HOMEPATCH%!) file i/o
    b don't work.
    With mentioned [in KB http://www.adobe.com/devnet/acrobat/downloads/Acrobat_SDK_readme.html ] command line switch «-F» all works correctly.
    This "feature" of the Acro8 (and Acro9? see http://www.adobeforums.com/webx/.59b69fa1 ) does impossible execution of the PostScript programs of variable data print.
    What to do that Distiller the beginnings it is correct to work (file i/o into %TEMP%-folders) without «F»-switch?

    I don't use Acrobat SDK, i make PostScript-programs for the var.data print, f.e. labels with wire name, numbers, barcode etc.; Distiller plays role RIP, carrying out the program.
    As a data source at execution of these programs files of various formats can be used: ANSI/UNICODE text, binary (f.e. PhotoShop-RAW data), PostScript (f.e. «print-in-file» from Illustrator) file and others. The same programs can write what or given on a disk (tmp-files), for example the pointer to the data in a source file or the debug information.
    For me has surprised that in 8 Acrobat'е all it has suddenly ceased to work, though in early versions and ghostScript all is fulfilled correctly. I have assumed that obviously developers had been limited possibility of data write/reading a disk and, most likely by a TEMP-folder. However even in the TEMP-folders setted by means of a variable %TEMP% of write operation at execute of PostScript-program by Distiller it was not possible to make. Also attempt to read/execute a file which is in a TEMP-folder was unsuccessfully completed also.
    During search in the Internet I have found article specified above ( http://www.adobe.com/devnet/acrobat/downloads/Acrobat_SDK_readme.html ) in which it is underlined possibility by default operations of file I/O in a TEMP-folder, however impossibility it to make contrary specified in this article, have forced me to write to this forum so it is read by Acrobat developers.

  • PDF from postscript (ps2pdf) displays "Insufficient data for an image" error in Reader

    Hello,
    I'm not fully confident this is the best place for this, but I'll start here. Note that this is NOT the same as the issue that was recently fixed in Reader 11 (found at http://helpx.adobe.com/acrobat/kb/insufficient-data-image.html)
    I am using the command "ps2pdf" (using Ghostscript) to convert postscript files to PDF. To get better quality, I use the ps2pdf options "-dAutoFilterColorImages=false -dColorImageFilter=/FlateEncode", which force lossless encoding for color images. However, there are images on certain pages that yield the error "Insufficient data for an image" when opened in Adobe Reader XI (current version), and the image on that page is not viewable (or rather, it can be viewed, but only until you get the whole image on the screen; then the image disappears). If the PDF is printed, the image will not print. The error also occurs in Acrobat 9.4.0, and possibly other versions. However, Reader 8 displays the files with no issues. Also, Foxit reader displays the PDF files fine.
    The postscript files are screenshots generated by the user dragging a box to define the area of the screen to be printed to file. This issue only occurs for some size boxes that the user draws; others come out fine and are read by Reader just fine.
    This only happens when using FlateEncode; using lossy JPEG compression (e.g. the default ps2pdf output) does not yield files that produce the error.
    Here are some example files to demonstrate the issue (hey, maybe the issue is not even reproducible for other people! That would be helpful to know if true, so even if you can't help solve the problem, if you could verify whether this issue occurs when you open one of these files in Reader or Acrobat, it would awesome).
    bad pdf where error occurs: http://www.mediafire.com/file/zbk36yfy7vrhvhw/gmbad.pdf
    good pdf (very similar, but slightly different box drawn): http://www.mediafire.com/file/649fuxul0td5bsx/gmgood.pdf
    Merged good and bad: http://www.mediafire.com/file/54nwwebh3da7p9w/good_and_bad.pdf
    If anyone has any ideas on this issue, I would greatly appreciate it. Or if you think this isn't the right place for this, and perhaps know of a better place for my question, I'd appreciate that too. Thanks!
    Additional possibly relevant information:
    ps2pdf is being run using Ghostscript 8.15 on Unix Solaris 10. I also ran the same postscript files through ps2pdf (again using Ghostscript 8.15) on a Windows 7 machine, and the resulting PDFs did not exhibit the same errors when opened in Reader or Acrobat.
    Adobe Reader 8 and 11, and Foxit were run on Windows 7. Acrobat 9.4.0 was run through a Citrix server, and I'm not sure what version of Windows it runs on.
    I tried lots of different options in ps2pdf, and also tried running the postscript through ghostscript directly (using the "gs" command). Nothing was able to eliminate the error without resorting to using lossy JPEG compression.
    I am now using lossy (but fairly high quality) JPEG compression in the workflow, accepting the loss in quality and (paradoxically) doubled filesize of the JPEG-compressed PDF files, so I'm really just pursuing this to figure out what the heck is going on, not because it is mission critical.
    Postscript files used to create the above pdfs:
    bad: http://www.mediafire.com/file/v656dp45h2jeyj6/gmbad.ps
    good: http://www.mediafire.com/file/47sn60dgbzbxrs6/gmgood.ps
    The .ps files are very similar to each other, differing only in the image content and the image location/translation.
    The postscript files give multiple warnings/errors when opened in gsview (this happens with all .ps files created by Pinnacle, not just the ones giving me issues).
    The program that is used to create the postscript files is Philips (Adac) Pinnacle^3, a treatment planning system for radiation oncology.

    Hi, thanks for getting back to me so quickly.  Our application uses scanned images up to 10 years old, and there are thousands of images so we cannot rescan these unfortunately.   
    I work in a large organisation with it's own desktop team so unfortunately I can't upgrade the version of Reader on our user's machines to see if this resolves either.  The desktop team will also not upgrade the version as the problem appears to have only started in 9.5.2. 
    Does anyone know how I can confirm if the problem was first seen in 9.5.2 or if there were instances in 9.5.1 also?
    Thanks again

  • Convert Pages document to PDF and maintain html links accurately

    Hi - I am trying to convert a Pages document to pdf, simple right? go to Print / PDF / Save as pdf...
    I have also tried Print / Save as Postscript and Print / Open in PDF
    with the same results, which are...
    Pages dutifully converts to pdf, but on some pages where I have multiple links the formatting position of the links is all over the place on the page, some links are conflated on the page so it says one thing 'www.bbc.co.uk' for example but when you click that link it links to 'www.cnn.com' instead because CNN is the link a little further on in the line, or in the line of text above, or whole sections of the page (half of one page) become a link!
    I have checked the formatting positions and link lables over and over again in Pages and they are spot on, no confusion, no leaking in positional accuracy, it is only when converting to pdf or postscript
    I have many html links in my document so it is vital that the exact position of the formatted links in Pages is converted accurately.
    Any advice on
    a) using Pages Print command accurately? or
    b) third party apps (really dont want to go there)
    that might convert more accurately?
    many thanks

    Thank you Roger!
    I went back to 09 as suggested which identified the section in question as having a whole load of text that had become associated with one of the links - goodness knows how or why - but this wasn't apparent in the Pages 5 doc, nothing explicit signified that there was an issue with the formatting until converting to pdf
    It took me a while to strip it all out without losing all the other formatting! but done now and converting beautifully to pdf with complete accuracy in terms of formatting positions of linked text...
    I then reimported back into Pages 5 to see if I could make sense of it in the same way, long story short no chance, there is still background formatting in there, despite going through it line by line, character by character and removing all traces of any link through the 'right click' 'remove link' function - as soon as you convert to pdf lots of text becomes active again even though it is absolutely not visible in the Pages 5 doc
    Clearly, despite a strong desire to continue in 5 from a being uptodate perspective, I shall stick to the 09 world and wait for Apple to sort things out.
    If anyone from Apple is reading this, it has cost me approx 2 days of messing about to get to a point where I give up on 5 and return to 09. Please resolve as soon as possible!

  • FrameMaker 8.0p277 Crashes When Creating Postscript Files

    We have an automated process that was internally created in FrameMaker 8.0p277 that takes a FrameMaker Book file that contains a large number of individual mutual fund files and breaks out each mutual fund into an individual file using the fund’s unique product code, removes sector tabs, and removes page numbers, then creates a postscript file. The user selects the functionality from a menu choice within an internally created “Marketing” menu on the FrameMaker menu bar. It is not functioning properly.
    Instead it is generating error messages.
    Adobe FrameMaker (Structured): FrameMaker.exe - Application Error:
    The instruction at "0x00cc1940" referenced memory at "0x00000000". The memory could not be "read". Click on OK to terminate the program.
    and
    Error:
    Internal Error 8004, 6343116, 8 483344, 0. FrameMaker has detected a serious problem and must quit.
    A file named "C:\Program Files\Adobe\FrameMaker8\FrameLog_11.10.17_07.52.51.txt" has been generated which contains information that may help Frame development improve the product for future release.
    We have looked at the FrameLog_11.10.17_07.52.51.txt but it is not helping us diagnose the issue.
    Can you help us determine what the problem is and how to resolve it?
    Thanks for your help.

    blgeorge,
    you say: »It is not functioning properly.« Did it work before? What changed since then? What operating system are you using? If it is XP, have you ever installed the Microsoft printer driver hotfix?
    <http://blogs.adobe.com/techcomm/2008/07/hotfix_for_framemaker_1.html>
    - Michael

  • Illustrator CS5 - Cannot make custom size when "printing" a PostScript file

    Hi all,
    I've recently picked up Illustrator CS5, and while this year's model sure is lovely, I'm having an issue when I save a file (or print) as a PostScript file. My aim is to convert the file to a PDF using Distiller and in the Print dialogue box, the PPD field in past versions says something along the lines of Adobe PDF 8.0. In CS5, I do not have the option to select that from the PPD drop down menu (Nor can I find the file to add to the list). Additionally, I can't make a 'custom sized pdf,' only preset paper sizes. I've had to resort to opening my files in CS3 to convert them to PostScript files. I forsee this becoming a problem once I start diving into some of Illustrator CS5's new features.
    I get the feeling the program didn't install with an Adobe PDF plug-in and I can't seem to find a substitute online that isn't from 1999 (!). Is there a way to get that plug-in file that my copy of CS3 is using into my CS5?
    I'm on a Mac by the way, version 10.6.

    I feel your frustration!
    I ran all updates and it did nothing because I was still on an older version of Acrobat. Once I installed Acrobat 9, restarted illustrator, I had all of the PDF options avaliable to me found in the link that fuzzydisco design provided me:
    http://kb2.adobe.com/cps/509/cpsid_50981.html
    Having Acrobat 9 seemed to be the essential missing component to me. If you do have Acrobat 9 already, and its not working, then thats a problem I don't know how to fix unfortunately!

  • What's the benefit of PostScript in saving file?

    When we ⌘ + P (Command + P), on PDF button, there are several Options on saving file.
    Save as PDF...
    Save as PostScript... <--- What is this for? What benefit?
    Fax PDF... <--- What is this anyway?
    Mail PDF <--- What about this?
    Save as PDF-X <---- Somebody please tell me what this is?
    Save PDF to iPhoto
    Save PDF to Web Receipts Folder

    Save as PostScript... <--- What is this for? What benefit? </div>
    http://bima.astro.umd.edu/wip/manual/node18.html
    Fax PDF... <--- What is this anyway?</div>
    Obviously to save a PDF of your file and fax it.
    Mail PDF <--- What about this?</div>
    To save a PDF and email it
    Save as PDF-X <---- Somebody please tell me what this is?</div>
    Why don't you just do a simple Google search and answer your question?
    http://en.wikipedia.org/wiki/PDF/X

  • Postscript fonts blocky on screen in Quark 5.0 / Classic

    I have previously been using Quark 5.0 successfully in Panther, with fonts previewing fine on screen. I have now upgraded to Tiger 10.4.8 (and erased my hard drive) and the same fonts are now previewing very blocky on screen in Quark 5.0. What's changed? Lots of other fonts (I think the fonts that come with classic environment) are previewing correctly. Please help! i am desperate to get a job out...

    I have previously been using Quark 5.0 successfully
    in Panther, with fonts previewing fine on screen. I
    have now upgraded to Tiger 10.4.8 (and erased my hard
    drive)
    never format the hard drive unless you have a complete backup of everything on that drive.
    and the same fonts are now previewing very
    blocky on screen in Quark 5.0. What's changed? Lots
    of other fonts (I think the fonts that come with
    classic environment) are previewing correctly. Please
    help! i am desperate to get a job out...
    You need ATM. From the sound of it, the System fonts (which are all TrueType) display properly while some fonts (probably PostScript Type 1) have the jaggies. Adobe Type Manager was designed specifically to fix that. It should be available at Adobe's site. <http://www.adobe.com/products/atmlight/index.html>

  • Report width in postscript-VERY URGENT

    Hi guys,
    I am making a report whose output has to be generated in postscript.In HTML format the output is fine but in postcript the report is cut off from the right side(WIDTH). Is there any workaround to solve the problem.Any help will be appreciated

    Is it a Portrait or Landscape? The WIDTH param changes accordingly.

Maybe you are looking for

  • How do I make a custom interface 'block'?

    Hi all, I'm usually interfacing a lot of sensors via compactDAQ modules. I've made some subVis to handle tasks such as applying calibration data or filtering to their signals. These calibration data typically need to be set up or changed on the fly,

  • File to Idoc : Java Mapping

    Hi Experts, The scenario is file to idoc. In the file i'll be getting name,value pairs. For ex: Structure is MT ....Root(1..unbounded) ............Name ............Value File contains: Vishal....1 Raj.........2 RFC......10 Rahul.....20 Azhar....15 an

  • System always starts fsck's at boot and can't start normally.

    First of all, let me say that this forum is awesome. I've just started my first real ArchLinux experiment and you guys have helped me out so much already! Anyway, my system keeps starting fsck's at boot. It then starts counting to 1 minute and 30 sec

  • V$osstat and V$SYS_TIME_MODEL - how to get CPU time from instance

    Hi there ! I have a function osstat, which take stats from the os using v$osstat (credits for the procedure to a person, I regret to say, that I cant remember his name). But since we have 9 databases on the same server (and we dont have access to the

  • Playing songs downloaded on an authorized account from different comp?

    I have a Powerbook G4 with all my Itunes songs on it but recently purchased an IMac for home. Is there a way that I can purchase songs on my new computer (which has already been made an authorized account) or old computer and then play them on the ot