print text file with font size 8

Ask a Question related to Sun Solaris, Design and Development.

  1. #1

    Default print text file with font size 8

    What is the best way to print a text file to a particular printer
    a.
    with font size 8.

    b.
    with font size 8 and
    add line numbers, file name and date to the output.

    c.
    with font size 8 and
    a diff of its previous version side by side.

    Thanks.
    TingChong Guest

  2. Similar Questions and Discussions

    1. How to change the font, the font size, and color text
      How to change the font, the font size, and the color for a selected text in C++. David
    2. cannot change linked text font size
      I've been using contribute since the first version and I can't say the 4.0 is a huge improvement. My continued issue (I am the admin for my website)...
    3. Text size (font issue)??
      I have created a site all in Arial 1, it is giving me an issue though. On some computers it looks smaller in the browser and on some it looks fine....
    4. Text/Font Size in Intro
      I have banged my head against the wall for 2 weeks for this simple change. I need to be able to reduce the text size so I can fit my whole company...
    5. Autofit font size to text box
      The following code will work. Adjust the char count and font size to meet your needs and put this on the "After Update" event of your field. If...
  3. #2

    Default Re: print text file with font size 8

    In article <451a2a55.0307281154.134fd42f@posting.google.com >,
    [email]ma7777772@hotmail.com[/email] (TingChong) writes:
    > What is the best way to print a text file to a particular printer
    > a.
    > with font size 8.
    If it's a PostScript printer, and the text is just ASCII (no UTF-8),
    then

    /usr/lib/lp/postscript/postprint -l 0 -s 8 <file | lp -d printer

    would do it (assuming by font size 8 you mean 8 point; if you mean
    8 pitch, then you need to look up the conversion, perform the
    calculation, and use the resulting number with the -s option)

    > b.
    > with font size 8 and
    > add line numbers, file name and date to the output.
    Now it gets difficult. The "nl" command will add line numbers, but
    not simply to every line (unless the -ba and -p options are used, and even
    then there might be some surprises).
    Worse, the "pr" command will add page headers (that will contain
    what you want, although in a pipeline you'd need to add the -h option).
    However, "pr" has an idea of how many lines will fit on a page (default
    66); for anything else, you need the -l num option, which has to match
    what postprint will actually use (-l 0 in postprint tells it to guess what
    should fit, but there's no way to get whatever number it picks and also
    have "pr" use it; thus, you'll probably end up redirecting postprint
    output to a file and viewing it with pageview or sdtimage, varying the
    -l number until you get something reasonable, and then using that same
    number with "pr"'s -l option).

    Using mp -o -s filename
    instead of "pr" and postprint might solve that problem, and will open
    up to the possibility of using more than just ASCII.
    > c.
    > with font size 8 and
    > a diff of its previous version side by side.
    Use "diff" to compare the two versions, and then pipe it into postprint
    or "mp" (as above).

    In other words, there's no "print text with all sorts of tricky options"
    GUI (although with less and simpler options (no diffs, no line numbers),
    you could print through the file manager). You have to know about a number
    of different commands and how to use them together (which leaves me
    wondering if this isn't some sort of homework exercise, where the long
    term value is _not_ the grade you get, but learning to RTFM).

    --
    mailto:rlhamil@mindwarp.smart.net [url]http://www.smart.net/~rlhamil[/url]
    Richard L. Hamilton Guest

  4. #3

    Default Re: print text file with font size 8

    The printer is HP LaserJet 8000DN.
    TingChong Guest

  5. #4

    Default Re: print text file with font size 8

    [email]ma7777772@hotmail.com[/email] (TingChong) writes:
    >
    >The printer is HP LaserJet 8000DN.
    >
    If the printer is connected to the network rather than connected
    to your Solaris machine's parallel port, then using HP's Jetdirect
    software will help you set the character size of the printout.

    As I look through the man page for the Jetdirect software's interface
    for that printer, I find options for telling the printer to print
    in "2up" mode with a header and line numbers. (the "2+" option)
    That looks like it can handle your first two requirements.

    A previous post to the Solaris newsgroups gave the details on
    getting the Jetdirect software:

    [url]http://groups.google.com/groups?as_umsgid=b5t61l%2490q%241%40reader2.panix. com[/url]


    -Greg
    --
    Do NOT reply via e-mail.
    Reply in the newsgroup.
    Greg Andrews Guest

  6. #5

    Default Re: print text file with font size 8

    Greg Andrews wrote:
    >
    > [email]ma7777772@hotmail.com[/email] (TingChong) writes:
    > >
    > >The printer is HP LaserJet 8000DN.
    > >
    >
    > If the printer is connected to the network rather than connected
    > to your Solaris machine's parallel port, then using HP's Jetdirect
    > software will help you set the character size of the printout.
    >
    > As I look through the man page for the Jetdirect software's interface
    > for that printer, I find options for telling the printer to print
    > in "2up" mode with a header and line numbers. (the "2+" option)
    > That looks like it can handle your first two requirements.
    >
    > A previous post to the Solaris newsgroups gave the details on
    > getting the Jetdirect software:
    >
    > [url]http://groups.google.com/groups?as_umsgid=b5t61l%2490q%241%40reader2.panix. com[/url]
    >
    > -Greg
    > --
    > Do NOT reply via e-mail.
    > Reply in the newsgroup.
    Greg, I tried the link you provided, I got there.
    Then the link that the article points to, that got me to HP.
    But the page does not have an obvious download button.
    When I clicked on the drivers link it to me to a "page not found" page.

    Any direct links to the software would be appreciated! I use freebee
    jet direct but my version is very old so i'd like to upgrade.

    TIA

    --
    [url]http://ftp.opensysmon.com[/url] is a shell script archive site with an
    open source system monitoring and network monitoring software package.
    Many platforms are supplied already compiled.
    scriptOmatic Guest

  7. #6

    Default Re: print text file with font size 8

    I am only a user, not an solaris administrator.
    I don't have the root permission to install software.
    Is there some unix commands that fit the printing purpose?
    Thanks.
    TingChong Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139