How to print HTML in actual size in Safari?

Hi all,
I am trying to develop a web page that gets printed out via Safari's print menu with all graphical objects appearing on paper the same size as specified in CSS.
My CSS only uses metric units to specify sizes, but when printed the results seem to be pretty arbitrary. If an object exceeds paper size, Safari seems to scale down the page by an unknown factor, or it splits up the print area across multiple print pages. If the largest object on the page is smaller thatn the paper size, it seems to get scaled up, even if "100%" is selected in the print dialog.
How can I get a web page printed on paper so that all CSS size settings are honored?

Hi Vivek,
You can take reference of BCALV_DEMO_HTML  this program.
Regards,
Pravin

Similar Messages

  • Hello.  How do I keep the actual size of a photo when adding to a Keepsake?  Used to do this but have forgotten how!

    Hello.  How do I keep the actual size of a photo when adding to a Keepsake?  Used to do this but have forgotten how!  Need help please!
    T.

    Here is my suggestion:
    Open a blank, new file (File>new>blank file) size 8.5x11"
    Open the collage
    Go to Select>all
    Go to Edit>copy
    Go back to the blank file created in step #1
    Go to Edit>paste. The collage will be on its own layer
    Access the move tool, and with the corner handles resize the collage. Using the corner handles should preserve the aspect ratio. If you open the rulers, you will have a point of reference as you go along.
    Print a draft copy to see if it will be suitable in the frame..
    Please report back with your progress.

  • How to print HTML contents

    can anyone tell me how to print HTML contents...i needed it urgently
    Thanks

    actually i have a print button on html page....when i click on print button using window.print(); the html page gets printed...but along with it print button is also printed...i dont want print button to be printed...
    this is the issue...
    please resolve it
    Thanks a lot...

  • How to print HTML to a remote Server

    Ho guys my problem is only this
    how to print HTML to a remote Server
    i hav used JavaPrintService for it javax.print....
    The Doc Flavor i used is
    DocFlavor.INPUT_STREAM_TEXT_HTML_HOST;
    and with simple print attribute set but it doesnt locates
    the PrintSerivces.
    Plz try this code on your system(Jdk1.4 beta) and see whether it detects PrintServices or not
    import java.io.*;
    import javax.print.*;
    import javax.print.attribute.*;
    import javax.print.attribute.standard.*;
    import javax.print.event.*;
    public class PrintHTML {
    FileReader readfile;
    Doc doc;
         public static void main(String args[]) {
              PrintHTML ps = new PrintHTML();
         public PrintHTML() {
              DocFlavor flavor =DocFlavor.INPUT_STREAM_TEXT_HTML_HOST;
              PrintRequestAttributeSet aset =
                   new HashPrintRequestAttributeSet();
              aset.add(MediaSizeName.ISO_A4);
              // aset.add(OrientationRequested.LANDSCAPE);
              aset.add(new Copies(1));
    PrintService[] pservices =
                   PrintServiceLookup.lookupPrintServices(flavor, aset);
    if (pservices.length > 0) {
                   System.out.println("Available printer " + pservices[0].getName());
                   System.out.println("Available printer " + pservices[1].getName());     
                   System.out.println("Available printer " + pservices[2].getName());     

    The documentation is misleading. You cannot directly print HTML. See:
    http://developer.java.sun.com/developer/bugParade/bugs/4495770.html

  • How can i increase the font size on Safari and email so my mother who is legally blind in left eye, right eye 50% vision.  r there any apple product specifically for the blind?

    how can i increase the font size on Safari and email so my mother who is legally blind in left eye, right eye 50% vision.  r there any apple product specifically for the blind?

    From the Safari menu bar click View > Zoom In  or press Command + on the keyboard to increase the size of the page.
    If that doesn't help, open System Preferences > Accessibilty > Settings then select Zoom on the left.
    You can also increase the resolution on the dislplay. System Preferences > Displays > Display > Scaled
    You can also get help by posting in the Apple Support Communities > Vision forum here.

  • How do I stop printing at 4X actual size?

    I have 2 identical i-Macs and a sudden problem has come up. Both are connected to a laser printer vis ethernet. I-Mac #2 has suddenly started printing at 4X normal size.  I-Mac #1 prints normally.  Both workstations are also connected to a shared USB ink jet printer and both print normally to this printer.  Can any one help me?
    Thanks, Skiman

    OCG, I was thinking of AJ, it certainly wouldn't hurt, I'd try it myself in this situation, but I don't hold a lot of hope for it working.
    Get Applejack...
    http://www.macupdate.com/info.php/id/15667/applejack
    After installing, reboot holding down CMD+s, (+s), then when the DOS like prompt shows, type in...
    applejack AUTO
    Then let it do all 6 of it's things.
    At least it'll eliminate some questions if it doesn't fix it.
    The 6 things it does are...
    Correct any Disk problems.
    Repair Permissions.
    Clear out Cache Files.
    Repair/check several plist files.
    Dump the VM files for a fresh start.
    Trash old Log files.
    First reboot will be slower, sometimes 2 or 3 restarts will be required for full benefit... my guess is files relying upon other files relying upon other files! :-)
    Disconnect the USB cable from any Uninterruptible Power Supply so the system doesn't shut down in the middle of the process.

  • How to view image at actual size?

    I am confused by the Fireworks (CS3) image size settings. I set the canvas size at 3 inches by 3 inches, but when I measure the image on the screen with a ruler, it measures only about 2 inches across, even though the magnification setting is set at 100%. What does the size setting mean? Will the image be 3 inches wide when it is printed? How can I get the image to display at actual size?

    As for ease of use, I really think it comes down to what you're used to and what makes you the most comfortable.
    I personally find Illustrator much more intuitive when it comes to things like the pen tool and vector editing, and options such as Live Color and Live Paint are likewise extremely useful. However, each piece of software has its own strengths and weaknesses, and if you can use the right tool for the right situation, I think you're in a good place
    As for the "set relationship" between print size and pixel size, like I said, the fundamental problem is that the "pixel" is a relative unit of measurement, primarily intended for screen output. We've already established that the 3" x 3" canvas displays at different dimensions on your monitor than it does on mine. This could be because of your display resolution setting, your monitor size, and even the physical size of the "pixel" itself on your monitor. So already we are facing problem number one—trying to determine the physical size of a non-tangible element on the screen—before we even hit the printer settings.
    If you are only going to print on one printer at your home or office, and you are always going to be using the same monitor and screen resolution, you can probably work out some kind of mathematical relationship between what you see on screen and what you print. However, once you start working at higher canvas resolutions in Fireworks (to display photographic content more crisply, for instance), all of that will go out of the window. The question is whether you want to do math every time you create a canvas or draw an object.
    The other issue with using Fireworks to created printed material is that Fireworks is an RGB-based program, whereas the print medium generally works with CMYK. The result is that you may find some discrepancies between the colors you see on screen vs. what you see coming out of the printer.
    There are a lot of advantages to using dedicated vector-based programs for print, and Illustrator is a decent program that allows a lot of flexibility for creating work that can be used in print and on the web. However, if you still want to use Fireworks for print, keep in mind that there are some hurdles you may need to overcome that may give you some headaches in the long run. Then again, it depends on what kind of output you expect to see coming out of that printer, and whether you're ultimately happy with what you see.
    Jeff

  • I am needing to set the DEFAULT Print to be ACTUAL SIZE not FIT.  I need this to be the DEFAULT SETTING for the program.

    I have a couple users using Acrobat XI Pro and when they print a PDF it is shrunk to 96.08%.  I need to find a way to set the DEFAULT Setting to be Actual Size.  We are a Law Firm and the Document Numbering is being cut off from the docs due to the Shrinking.
    Has anyone had any experience in changing the DEFAULT settings of the Print Window? Can you please pass along any knowledge on how to accomplish this?  Thanks for your time and replies.

    Acrobat and Reader's Fit and Scale functions are "sticky".
    From the Print Dialog > Page Size & Handling
    Any option you choose will remain active for all subsequent documents.
    (Some features remain active until the program is quit/restarted)
    Choose Actual Size
    Do not change the selection, it will retain the setting.

  • How do I find the actual size of an app? Example: a wallpaper app claims the size of 4.4 MB, but the size on my iPhone is 4.9 GB!

    Some of the apps on my iPhone are much larger size-wise than claimed on their app page. Example: Wallpapers HD claims 4.4 MB, but the actual size on my phone is 4.9 GB! Pinterest & Facebook also end up being huge real estate hogs. How do I really know the size of an app? The apps don't represent themselves accurately in the app store.
    I figured out that 2 of my podcast apps allow me to remove content after listening. Others don't, though.
    I'm hoping some of you younger people know the answer.
    Thanks,
    Nana Lybbr8

    The size of an app depends on two different things:
    1) the size of the App (as in the App Store)
    2) the size of the App Data
    The App Data can really inflate the size.
    If you want to see how much space an app is actually taking up, got to the Settings app under General and then tap "usage."
    Unfortunately some apps don't let you delete the content. Others do.
    Hope this answers your question.

  • How to print onto a legal size paper

    I'm trying to print a document sent to me as an original PDF 8.5 x 16 document onto a legal size page (8.5 x 14).  I don't have the advanced skills necessary to print in Adobe beyond the basics, and don't have the time to take a course or read the confusing help instructions (e.g., "tiling", "scaling").  I'm hoping someone on this board can simply tell me how to print this document step-by-step.  I have Windows XP with Acrobat Pro 9.0
    Your assistance is greatly appreciated!

    Using AA9, these are the steps I just used to create a 8.5X14 page from another PDF (Note: any bookmarks and links will be lost and would have to be replaced):
    1. Opened the PDF in Acrobat.
    2. Select FILE>Print
    3. Select the Adobe PDF printer.
    4. Select printer properties.
    5. On Adobe PDF Settings tab, you may select the press (Press Quality) or print (High Quality Print) job options.
    6. On either of the other tabs select the Advanced button.
    7. Under Paper/Output>Paper Size, select Legal.
    8. OK back to the print menu and select Page Scaling=>Fit to Printable Area.
    9. OK to print -- select the file name and location, hopefully with successful results. (I checked the PDF I created from a Letter size and it was 8.5X14)

  • ___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.

  • How to Print Html Document (more than one page)

    I've a problem with printing my html page. I can print one page of html file, But my document is longer than one page. and i can't print it.
    who know how to print . Please Reply

    A recent article in JavaPro has a nice solution for this problem. Check out
    http://www.fawcette.com/javapro/2002_12/online/print_kgauthier_12_10_02/
    It describes a way of using Views to break down the pages.

  • How to open image in actual size in lion

    Hi All,
    anyone can kindly tell me how to change the default view image in Actual size, i am really mad now, please! can't find it in Preference, LION!!!!
    Thanks!
    Amon

    You might look over the Photos.app apple community support forums for posts related to your question, like this one:
    What is the best way to export a photo from OS ... | Apple Support Communities

  • How to print html file on client system without viewing data on client syst

    I want to print html data from database.
    i am not able to print it using java code,
    javascript can do that.
    but in javascript window is opened on client browser.
    but i dont want to open that
    var disp_setting="toolbar=no,location=no,directories=no,menubar=no,";
           disp_setting+="scrollbars=no,width=0,height=0";
         var docprint = window.open("","",disp_setting);
         //docprint = new PopUpWindow() ;
         docprint.document.write('<%= mm %>');
         docprint.document.close();
            docprint.focus();
         docprint.document = null; mm contents the data to be printed. it prints well but window is shown
    in mm there is <BODY self.print() > so it prints on printer but i am viewing window i donot want to view window....
    and print Dialog box also.. I want to by pass this both.
    please send me code or any help regarding that.
    ....

    1. Post a javascript question on a javascript forum please.
    2. Don't think you can bypass without some plugin/setting on the client browser.

  • How to display at true actual size (Mac)

    The background: InDesign was unable to display work at true actual size until CS6 came along. (So that 1 inch on the screen rulers equals 1 inch on a physical ruler.) Unfortunately, CS6 still doesn't get it right if your display is set to something other than its native resolution. For example, if I set my 27" NEC SpectraView display to "Best for Display" in the Displays system preference panel, then viewing at "Actual Size" in Indesign CS6 achieves true actual size. But that resolution is way too high, making the features of the user interface way too small. The comfortable display resolution is "scaled" to 1920x1080, which provides a nice 2-page layout viewing area (at true actual size) plus a comfortable user interface. However, InDesign CS6 ignores this and continues to draw the "Actual Size" view based on "best for display" resolution, and that results in a greatly shrunken image. Acrobat Pro has gotten this right for several versions now, but it is apparent from this and other CS shortcomings that the different product groups at Adobe aren't very good at what Samsung does and fail to copy each other's work.
    The solution to achieving "true actual size" is a script written by Dave Saunders (and probably others) some time ago:
    //by Dave Saunders. Replace the percentage number with the correct value for your screen
    app.layoutWindows[0].zoomPercentage = 113;
    If you're like me and don't really use scripts, here is what to do with it on a Mac (with apologies to Dave and other experts who know a helluva lot more about this than I do):
    1. Copy the text for the script and paste it into the blank window that opens when you start ExtendScript Toolkit CS6 (in Applications>Utilities>Adobe Utilities - CS6). Leave it open.
    2. Go to Acrobat Pro>Preferences>Page Display and under Resolution note the number associated with "Use system setting". (On my system it is 81 pixels/inch.) I also suggest enabling that setting if it isn't, so that Acrobat also displays at true actual size.
    3. Divide the number from Acrobat by 72, then multiply by 100. (This is essentially a percentage calculation of system resolution over the conversion value of 72 points/inch, which produces 112.5 in my example. I round it to 113.)
    4. In the open script, change the number to what you got from the above result (113 in my example).
    5. Save the script with a name such as "True actual size.jsx" and leave it on the Desktop where you can get it at later for dragging.
    6. In InDesign, go to Window>Utilities>Scripts, then right click on User and choose Reveal in Finder. Drag your script into the User folder. (I recommend option-dragging it to leave the original on your Desktop for archiving.)
    7. Test the script in an open InDesign document by double clicking on the script. The display should now show your work at true actual size.
    8. The scripts window is awkward at best, so the last step is to assign a keyboard shortcut to your script. I use Control-1. Go to Edit>Keyboard Shortcuts… and choose Scripts. Scroll down to the bottom, where you should see your script listed. Highlight it and enter Control-1 (or whatever you prefer) into the New Shortcut window and click Assign. Then click Save. You won't be allowed to modify the Default set, but I was fine with "Default copy".
    Now whenever you want to view your work at true actual size, just hit Control-1 (or whatever you chose for a keyboard shortcut).
    You might want to copy these instructions into a TextEdit file and put it with your script file in a folder that you can find when the time comes to upgrade to CS7, because I'll lay odds that you're going to need to achieve true actual size all over again.
    Lastly and far from least, thank you for the script, Dave! If you or other pros come across this and see corrections or improvements, please set me straight.

    Finder -> View menu -> Show Status Bar
    Regards.

Maybe you are looking for