Safari prints HTML page as blank

When I load an HTML page in Safari and print it, it's totally blank. Doesn't happen in Firefox with the same HTML files.

Hi John,
I don't see anything in the console that would be relevant. I'm happy to send you a log if you'd like to see it. (Lots of crap from TextExpander )
Yes, the thumbnail is blank.
I should mention I've already tried moving my printer plists to the trash.
Thanks

Similar Messages

  • Print Html page Using Java

    I need to print Html Page into my printer, how can I do this. Any help will be appreciated.
    Wil

    File > Print.
    See: http://java.sun.com/javase/6/docs/technotes/guides/jps/spec/printing2d.fm.html
    And:
    http://java.sun.com/j2se/1.4.2/docs/guide/jps/index.html
    And google "Java JPS"

  • Printing html pages from JSF-JSC created pages

    Hi all,
    I have a serious problem with my web apps created with JSC using the JSF components. I designed a page full of tables, developed in vertical for a total of about three or four pages scrolling down.
    When I try to print the generated page from the browser (Firefox, Safari, Explorer) I always get just the first 'page', the entire webpage generated by my application is not saw as a long page, but just 'cutted' out.
    It seems like all JSF components have some problems being like layers or so...any hint? How can I print my html page generated by my web app?
    G

    Perhaps viewing the source of the generated html page will give you a clue to what's wrong..

  • Unable to print HTML pages

    After a good bit of reading, I found that printing HTML directly to the printer doesn't work for many printers. I don't want to print the code. I want the actual HTML page. I have some code here that reads the HTML file into a JEditorPane and then is rendered into a graphic for printing.
    My code compiles fine, I'm not getting any errors, but what I'm also not getting is any pages printing.
    Here is the source of my class:
    * PrintReport.java
    * @author tristan
    * Created on September 27, 2007, 4:06 PM
    package fedex;
    import java.awt.Color;
    import java.awt.Dimension;
    import java.awt.Graphics;
    import java.awt.Graphics2D;
    import java.awt.print.PageFormat;
    import java.awt.print.Printable;
    import java.awt.print.PrinterException;
    import java.awt.print.PrinterJob;
    import java.io.*;
    import javax.print.Doc;
    import javax.print.DocFlavor;
    import javax.print.DocPrintJob;
    import javax.print.PrintException;
    import javax.print.PrintService;
    import javax.print.PrintServiceLookup;
    import javax.print.ServiceUI;
    import javax.print.SimpleDoc;
    import javax.print.attribute.*;
    import javax.print.attribute.standard.*;
    import javax.swing.JEditorPane;
    import javax.swing.RepaintManager;
    public class PrintReport
        private FileInputStream fileIS;
        private Doc doc;
        private DocAttributeSet das = new HashDocAttributeSet ();
        PrintService defaultService;
        /** Creates a new instance of PrintReport */
        public PrintReport ()
        public void printHTMLFile (String file) throws FileNotFoundException, IOException
            PrintableEditorPane jEditorPane = new PrintableEditorPane ();
            jEditorPane.setContentType ("text/html");
            jEditorPane.read (new BufferedInputStream (new FileInputStream (file)), "");
            System.out.println (jEditorPane.getText ());
            PrinterJob job = PrinterJob.getPrinterJob ();
            job.setPrintable (jEditorPane);
            if (job.printDialog ())
                try
                    job.print ();
                catch (Exception ex)
                    System.out.println (ex);
        public class PrintableEditorPane extends JEditorPane implements Printable, Serializable
            public int print (Graphics g, PageFormat pf, int pageIndex) throws PrinterException
                Graphics2D g2 = (Graphics2D)g;
                g2.setColor (Color.black);
                RepaintManager.currentManager (this).setDoubleBufferingEnabled (false);
                Dimension d = this.getSize ();
                double panelWidth = d.width;
                double panelHeight = d.height;
                double pageWidth = pf.getImageableWidth ();
                double pageHeight = pf.getImageableHeight ();
                double scale = pageWidth / panelWidth;
                int totalNumPages = (int)Math.ceil (scale * panelHeight / pageHeight);
                System.out.println ("Total pages to print are " + totalNumPages);
                if (pageIndex >= totalNumPages) return Printable.NO_SUCH_PAGE;
                g2.translate (pf.getImageableX (), pf.getImageableY ());
                g2.translate (0f, -pageIndex * pageHeight);
                g2.scale (scale, scale);
                this.paint (g2);
                return Printable.PAGE_EXISTS;
    }I tried using a complex HTML file as well as a basic one, but everytime Total pages to print are 0 is printed back to the console. I can't figure out why it's unable to create any pages to print.

    DrClap wrote:
    I think you will find thatDimension d = this.getSize ();produces (0, 0) until you actually display your component somewhere. I believe it's possible to "display" it in such a way that it doesn't appear on the user's screen, but I don't know how.
    There's a Swing forum here where you get answers from people who are good at Swing. Posting here attracts answers from people like me who are mediocre at it.I think that calling validate() on a Container will lay it out and size it's components, even if it hasn't been made visible, but don't take my word for it.

  • Problem Printing html page with JEditorPane...

    Hello All,
    I Have a problem in printin html file with JEditorPane...
    My Html file contains a Table on it..
    Problem is that JEditorPane displays the html file correctly but
    it prints the file without print that Table..
    So pls help me...
    Thanx in advance,..
    Amit
    [email protected]

    I think you would know how to retrieve content of an HTML page using the URL object. Just in case.
    My apology if this short note doesn't help you at all.

  • Problem in Printing HTML page

    While I am trying to print a HTML page using window.print(), the bgcolor of the table is not printing.

    Did you consider inquiring about this at a Javascript or HTML forum?

  • Printing HTML PAGE in a Applet

    I am tryng to print a HTML Page in a Applet .
    When Using Eclipse Environment everythig goes fine.
    Now I am trying to use the appletviewer to run the same
    source, but it appears the following:
    http://10.15.1.26/
    Conecting to http://10.15.1.26/
    Exception in thread "AWT-EventQueue-2" java.lang.RuntimeException: java.security.AccessControlException: access denied (java.net.SocketPermission 10.15.1.26:80 connect,resolve)
         at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(Unknown Source)
         at java.net.HttpURLConnection.getResponseCode(Unknown Source)
         at javax.swing.JEditorPane.getStream(Unknown Source)
         at javax.swing.JEditorPane.setPage(Unknown Source)
         at javax.swing.JEditorPane.setPage(Unknown Source)
         at javax.swing.JEditorPane.<init>(Unknown Source)
         at AppletPrintHTML$EditorPaneHTMLViewer.loadStartingPage(AppletPrintHTML.java:90)
         at AppletPrintHTML$EditorPaneHTMLViewer.<init>(AppletPrintHTML.java:103)
         at AppletPrintHTML$5.actionPerformed(AppletPrintHTML.java:364)
         at java.awt.Button.processActionEvent(Unknown Source)
         at java.awt.Button.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    Caused by: java.security.AccessControlException: access denied (java.net.SocketPermission 10.15.1.26:80 connect,resolve)
         at java.security.AccessControlContext.checkPermission(Unknown Source)
         at java.security.AccessController.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkConnect(Unknown Source)
         at sun.net.www.http.HttpClient.openServer(Unknown Source)
         at sun.net.www.http.HttpClient.<init>(Unknown Source)
         at sun.net.www.http.HttpClient.New(Unknown Source)
         at sun.net.www.http.HttpClient.New(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
    Why I am not allowed to connect to the site without Eclipse? Any Idea?
    Angel Portal

    This code
              * Load a HTML Page
              private void loadStartingPage() {
              try {
                   System.out.println("Conectando a "+ path);
                   mainPane = new JEditorPane(path);
                   } catch (IOException e) {
                        System.err.println("N�o Pode Conectar");
                        System.exit(1);
    Open a html page ( path ) on JEditorPane!
    In Eclipse worked just fine!
    But if I try to do that on a Browser or appletviewer the error a told you shows up.
    I am reading about the The Permission Classes.Someone have heard of it?

  • Printing HTML PAGE

    Java has some Class to handle HTML Pages.
    I want to build a Button that is able to print the
    actual page of the Browser.
    I know about ClipBoard Class, SomeOne has
    some Idea how to do this?
    The idea is to create an applet that creates a button
    to print the actual HTML page.
    Some Idea how to do this, or where I can get this
    information?
    Angel -Portal

    Hello, I got your advise and I could write a small program
    to open a URL ,put it in a JEditorPane like you sad.
    public class EditorPaneHTMLViewer extends JEditorPane implements Printable {
    Inside the code I create a menu to change to portrait to landscape.
    But now I need somehow to print the HTML Page that I took from
    internet.
    I believe that I need to load the content of the JEditorPane to a graphics
    and then set to a Format of a Page and Print, but I do not know how yet.
    Some Hint.
    That true that I could do in a easiest way in JavaScript. But it is going to
    be possible to do landscape and portrait?
    Angel Portal: [email protected]

  • Problems printing html page created from servlet

    Hi
    How do I go about to print a html page that spans outside the visible window (to the left). All I get when I print is the visible page.
    Is it at all possible?
    Would appreciate an answer.
    Thanks
    David Mossberg

    No, not impossible to do.
    You need to provide a printer friendly version of the content so that it spans correctly.
    Again, this is not a Java problem this is an Application problem.
    How you format the data is down to you.

  • Safari opens a page in blank

    I´ve got some problem in my web using Safari. Two pages of it open in blank :
    http://www.sansanrepublic.net/vidalarchive1.htm and http://www.sansanrepublic.net/vidalarchive1.1.htm
    They open correctly using Firefox, Camino or Seamonkey...

    I have a similar problem with Safari and Gmail. After attempting to login, I see "Loading" and there activity on the address bar. When the page appears to have loaded, there is nothing but a blank.
    I've tried resetting Safari, etc. All to no avail.
    I have this problem on the 2.5 G5, but don't have problems on my MBP. Both are running similar and most current versions of software (sans the difference between the G5 and Intel processors.)
    I didn't always have this problem, and don't have issues when running Firefox. I also haven't noticed this type of issue on any other page except Gmail.
    Any help troubleshooting would be appreciated.
    Thanks!
    Jim

  • Safari printing single page iPad?

    I have searched and searched for a solution to this but cannot find one...How can I print a single page from safari on my iPad? For example...when a page is really long and it takes 4 pages to print it, how can I print only page 3?

    If you go to print in OSX you get the option to print page 2-5 if desired out of a 20 page document. I know it's not an option in iOS standard print from safari and I thing that is unfortunate as page range is an option in other programs such as Dropbox or pages so I want to know if there is a way to get this option that some forum member has found.
    Thanks anyone and everyone who has any answer of this. I don't post usually because I am a very experienced Mac user since 1986 and don't run into difficulty unless it is with non standard usage of systems.

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

  • My Safari Extensions preference page is blank. How do I resolve it? (Safari 5.1.2 on Lion 10.7.2)

    I found my extensions window blank back when I used Snow Leopard. I thought Lion and new updates will eventually solve it. But it is still there. I tried everything I can. I tried downloading Safari 5.1.2 and reinstalling it. It didn't work. Then I uninstaled safari using CleanMyMac and then tried installing it from scratch. It didn't work. When I googled I found that deleting some plist file resolves the problem on some older version of Safari. But I cannot locate that plist file on Lion. How can I get back my extensions preference page?

    Delete the following items:
    /Library/Application Support/SIMBL
    /Library/LaunchAgents/net.culater.SIMBL.Agent.plist
    /Library/ScriptingAdditions/SIMBL.osax
    Log out and log back in.
    Make sure you never reinstall SIMBL, as it’s one of the worst articles of crapware on the Mac platform. It’s likely to come bundled with some other modfication that depends on it. If you want trouble-free computing, avoid software that makes miraculous changes to other software, especially built-in applications. The only real exception to that rule is Safari extensions, which are mostly safe, and are easy to get rid of when they don’t work. SIMBL and its dependents are not Safari extensions.

  • When I print the pages are blank

    Since I added the latest upgrade printed pages come out blank when I print from the printer friendly button on a website (northstarmatrix.com, secure access only).
    How can I go back to the old version?

    Can you post the document we might be able to help. Without that we don't have a clue. You can try to print as image. That might work.

  • Mac Mail A4 print, first page is blank

    Hello,
    I have this funny issue.
    Some emails in Mac Mail when printing to A4 portrait will only show the header on the first page, the next page then has the start of the body of the email.
    If I switch to landscape it is fine, or A5.
    I have experimented with custom paper sizes, A4 being 210 x 297 if I set the page size to 210 x 291 or lower it previews fine.
    Seems Apple Mail does not like page height of higher than 291mm!
    Any ideas anyone?
    Thanks,
    David

    Hi Raju,
    <li> Call ABAP4_COMMIT_WORK function module after NEW-PAGE PRINT OFF command.
    NEW-PAGE PRINT OFF.
    CALL FUNCTION 'ABAP4_COMMIT_WORK'.
    Thanks
    Venkat.O

Maybe you are looking for

  • Error during Beehive installation in configuration part

    Hi All, I have stuck up during installation in the configuration section. During Oracle Beehive database configuration -ORABPEL Schema is getting failed with the below error. Launching tool "Oracle Beehive Database Configuration - SOA Schemas" Invoca

  • How Can I Put Fields Into a Calendar Grid?

    Hello All I have a project that requires me to create a form in a calendar format.  Each day (or square) in the calendar will need drop-down menus in it with various times of the day from which the user can select.  Additionally, the user will need t

  • How to save an project in iMovie 10

    I am familiar with iMovies 9 and using OSX 10.6.8.  Unfortunately I have a new MacPro on OS 10.9.2 and iMovie10 (give me back my old MAcbook any day). I have finished making the movie and saved it on the desktop in mp4 format.  All I want to do now 

  • G/L account  is not defined in chart of accounts

    Hello Experts, Can someone solve my problem. I have created an expense account in my Chart of Account (FSP0) and the same COA is assigned to my Co.Cd in OBY6. When I tried to post to this G/L account ( FB60 - Vendor Invoice posting ),  I got the foll

  • OSB cluster --reading a writing into a file

    Dear All, I have a requirement in which my first OSB service s writing into a file(In a clustered environment).So in this case some of the files are being written in managed_server1 while some of the files are getting written in managed_server2. My s