Loading ...
Sorry, an error occurred while loading the content.
 

[NH] Printing downloaded web pages

Expand Messages
  • ChrisPye@woodcarver.force9.co.uk
    I am writing some workshop manuals (text with integrated graphics - but straightforward HTML) for my imminent website, which can be downloaded and used for
    Message 1 of 7 , Jun 29, 1999
      I am writing some workshop manuals (text with integrated graphics - but straightforward HTML) for my imminent website, which can be downloaded and used for study. Because they are meant for a workshop situation it is likely that the user will also want to print them and use them there - they will lose the internal links, but since the manuals are step be step guides, the result should be a straightforward worksheets.
      So far I know that a 'safe' area for webpage layouts designed to be printed is 535pix wide by 295, so no problem with printing a page at a time. But 2 things:
      1. How do I enable the user to simple PRINT THE WHOLE series of pages IN ONE GO, rather than a page at a time?
      2. I would write much longer web pages than 295pix and still have them print OK. Is there a way of forcing printer page breaks through HTML? - perhaps after formatting a version of the whole document as one long page. Or are we talking Adobe Acrobat (words which spring to the lips but fill no spaces between my ears)?

      So printable versions. Anyone an expert? Know anything at all?!
      Thanks
      Chris


      ------------------------------------------------------------------------

      eGroups.com home: http://www.egroups.com/group/ntb-html
      http://www.egroups.com - Simplifying group communications
    • Grant
      ... Can be done only if you use stylesheets.. In your linked external style sheet create a new class selector /creates a forced page break*/ BR.pageBreak
      Message 2 of 7 , Jun 29, 1999
        > -----Original Message-----
        > From: ChrisPye@...
        >Is there a way of forcing printer page breaks
        > through HTML? - perhaps after formatting a version of the whole
        > document as one long page. Or are we talking Adobe Acrobat (words
        > which spring to the lips but fill no spaces between my ears)?

        Can be done only if you use stylesheets..
        In your linked external style sheet create a new <BR> class selector

        /creates a forced page break*/
        BR.pageBreak
        {
        page-break-after: always
        {
        /*-----------------------*/

        When ever you want to force a printed page break in your HTML page use.
        <BR class="pageBreak">
        Note;This does not effect "visual"(monitor) display only printed output.
        Note2;This only works for browsers which support this W3C CSS2 defined
        property. In this case only IE4 IE5 and not NN4 Correct me if I'm wrong?.

        >So far I know that a 'safe' area for webpage layouts designed to be printed
        is 535pix >wide by 295, so no problem with printing a page at a time

        On page width;
        As far as I know HTML dynamically wraps element content unless you use
        larger-than -screen-size <pre> or <img> elements or unless you style any
        elements width or height properties to be larger-than -screen-size. The
        "larger-than -screen-size" of course is dependent on individual monitor
        size, so can vary.
        <IMHO>For simple printer friendly layout. Avoid using images larger than
        450px wide. Don't style any width property greater than 450px and unless you
        are a poet Avoid using <pre> .Otherwise just let your Elements content go
        with the flow.

        > 1. How do I enable the user to simple PRINT THE WHOLE series of
        > pages IN ONE GO, rather than a page at a time?

        Yes you could rearrange your pages into one long page.
        or
        If your clients have notetab you could leave existing files as is and write
        a NotetabScript to do this using
        "^$GetFileFirst(FilePath;FileSpecs[;SortingOrder])$" etc.
        or
        If your clients have not got notetab, You could write a batch file to do
        this.(the old way .bat files)(the new way using Windows Scripting Host and
        .js or .vbs files)


        ------------------------------------------------------------------------

        eGroups.com home: http://www.egroups.com/group/ntb-html
        http://www.egroups.com - Simplifying group communications
      • Grant
        ... Made the classic not checking-your-work-mistake which gave you 2 not-closing-bracket-mistakes in such a simple stylesheet snippet. I ve deducted 2 brownie
        Message 3 of 7 , Jun 29, 1999
          :-o
          Made the classic not checking-your-work-mistake which gave you 2
          not-closing-bracket-mistakes in such a simple stylesheet snippet.
          I've deducted 2 brownie points ok.
          :,(

          > Can be done only if you use stylesheets..
          > In your linked external style sheet create a new <BR> class selector
          >
          > /creates a forced page break*/
          > BR.pageBreak
          > {
          > page-break-after: always
          > {
          > /*-----------------------*/

          should read

          > /*creates a forced page break*/
          > BR.pageBreak
          > {
          > page-break-after: always
          > }
          > /*-----------------------*/

          and <:-I promise to double check next time before sending.





          ------------------------------------------------------------------------

          eGroups.com home: http://www.egroups.com/group/ntb-html
          http://www.egroups.com - Simplifying group communications
        • Jody
          Hi Chris, ... If it were me, I would make .txt, .doc, and .htm available for download for printing. I would use MS Word to convert the html to .doc and
          Message 4 of 7 , Jun 29, 1999
            Hi Chris,

            >> 1. How do I enable the user to simple PRINT THE WHOLE series of
            >> pages IN ONE GO, rather than a page at a time?

            Grant wrote what I was going to suggest:

            > Yes you could rearrange your pages into one long page.

            If it were me, I would make .txt, .doc, and .htm available for
            download for printing. I would use MS Word to convert the html
            to .doc and NoteTab to strip the html for text. If you do not
            have them in one large document, NoteTab could achieve that very
            easily with script. The pages will automatically be split, so
            you will need to add page breaks as Grant was suggesting if you
            need them in certain places (if word is not smart enough to do it
            somehow). NoteTab could do that for you as it joins all the
            pages together. (No comment on the Adobe Reader. :-)

            See ya,
            Jody

            Rom. 3:23; 6:23; Eph. 2:8-9; 1Cor. 15:3-4
            Acts 16:30-31, 27:25; Prov. 3:5-7; 4:23

            Sojourners of the Lord
            http://www.sureword.com/sojourner

            ------------------------------------------------------------------------

            eGroups.com home: http://www.egroups.com/group/ntb-html
            http://www.egroups.com - Simplifying group communications
          • Steve Veltcamp
            Another solution that works well for both issues is to download the free utility HP Web PrintSmart. Designed for HP printers, but works with most. It s
            Message 5 of 7 , Jun 30, 1999
              Another solution that works well for both issues is to download the free utility HP Web PrintSmart. Designed for HP printers, but works with most. It's available from the Hewlet Packard site. I like that it allows me to print entire documents, collections of documents, etc and that it avoids breaking pictures, splitting lines, etc. A good deal of formatting can be done in the utility.

              Haven't tried the style sheet method yet...

              >> -----Original Message-----
              > From: ChrisPye@...
              >Is there a way of forcing printer page breaks
              > through HTML? - perhaps after formatting a version of the whole


              --
              For mutual success,
              Steve Veltkamp, Biz$hop Online
              1713 E 3rd St, Pt Angeles WA 98362
              (360)452-2418 or (800)949-8029 Fax:(360)417-3954
              On the Web at http://www.bizshop.com and http://www.learnhow.to and http://sell-n-net.com
              --

              ------------------------------------------------------------------------

              eGroups.com home: http://www.egroups.com/group/ntb-html
              http://www.egroups.com - Simplifying group communications
            • Grant
              In apology for the error of my misMatching post here s a simple mismatch error checker for *.js and *.css files. Checks for misMatching curly braces, comment
              Message 6 of 7 , Jun 30, 1999
                In apology for the error of my misMatching post here's a simple mismatch
                error checker for *.js and *.css files. Checks for misMatching curly braces,
                comment blocks in js and css files and colon semicolon pair in css files and
                reports on any errors. I've called the clip misMatch so you can test it out
                however you could place it an onClose clip so it remains unobtrusive unless
                required.


                H="misMatch"
                ;simpleMatchChecker
                ^!Set %msg%=^%empty%
                ^!IfSAME "^$GetExt(^$GetDocName$)$" ".css" NEXT ELSE SKIP
                ^!IfDiff ^$StrCount(":";"^$GetText$";True;False)$
                ^$StrCount(";";"^$GetText$";True;False)$ msg1 Else Next
                ^!IfSAME "^$GetExt(^$GetDocName$)$" ".js" NEXT ELSE EXIT
                :matchCurlies
                ^!IfDiff ^$StrCount("{";"^$GetText$";True;False)$
                ^$StrCount("}";"^$GetText$";True;False)$ msg2 Else Next
                :matchComment
                ^!IfDiff ^$StrCount("/*";"^$GetText$";True;False)$
                ^$StrCount("*/";"^$GetText$";True;False)$ msg3 Else Next
                :CreateReport
                ^!Info ^%msg%
                ^!GOTO EXIT
                :msg1
                ^!Set %msg%=colon (:) count = ^$StrCount(":";"^$GetText$";True;False)$^%NL%
                ^!Set %msg%=^%msg%semicolon (;)
                count^$StrCount(";";"^$GetText$";True;False)$^%NL%
                ^!Set %msg%=^%msg%Declarations for each selector ought to contain a colon
                (:) and end with a semicolon (;)
                ^!Set %msg%=^%msg% exept for the last declaration which does not need to end
                with a semicolon (;).
                ^!Set %msg%=^%msg%However it is a good practice to grt in the habit of
                ending all css declarations with a semicolon (;)
                ^!Set %msg%=^%msg%^%NL%
                ^!Goto matchCurlies
                :msg2
                ^!Set %msg%=^%msg%left curly brace ({) count =
                ^$StrCount("{";"^$GetText$";True;False)$^%NL%
                ^!Set %msg%=^%msg%right curly brace ({) count =
                ^$StrCount("}";"^$GetText$";True;False)$^%NL%
                ^!Set %msg%=^%msg%Braces ({ }) must always occur in matching pairs
                ^!Set %msg%=^%msg%^%NL%
                ^!Goto matchComment
                :msg3
                ^!Set %msg%=^%msg%Comment start characters "/*" count =
                ^$StrCount("/*";"^$GetText$";True;False)$^%NL%
                ^!Set %msg%=^%msg%Comment end characters "*/" count =
                ^$StrCount("*/";"^$GetText$";True;False)$^%NL%
                ^!Set %msg%=^%msg%Comment block characters (/* */) must always occur in
                matching pairs
                ^!Set %msg%=^%msg%^%NL%
                ^!Goto CreateReport


                ------------------------------------------------------------------------

                eGroups.com home: http://www.egroups.com/group/ntb-html
                http://www.egroups.com - Simplifying group communications
              • Bob Janes
                ... If you really want to maintain control of the layout of a series of pages then go for Adobe Acrobat. The reader (and printer) is free and readily
                Message 7 of 7 , Jul 1, 1999
                  > Or are we talking Adobe
                  > Acrobat (words which spring to the lips but fill no spaces
                  > between my ears)?
                  >
                  > So printable versions. Anyone an expert? Know anything at all?!

                  If you really want to maintain control of the layout of a series of pages then
                  go for Adobe Acrobat. The reader (and printer) is free and readily available.
                  Acrobat documents can contain links and graphics and (importantly) Acrobat
                  manages the transition from A4 to US 8.5 x 11 as smoothly as anything I've used
                  before. Printed copies seem to work on a range of printers and to give a good
                  representation in each case that I've tested.

                  To use Acrobat you need Acrobat Distiller (effectively a printer driver) which
                  comes with the commercial Acrobat package (currently v4) lists at UKP 149 + VAT
                  and doubtless available much cheaper elsewhere.

                  V4 also supports web download so that you can capture a part or all of a web
                  site into an Acrobat document and then edit it for printing or re-transmission.
                  I'm still on v3 so haven't tested this but it's potentially a great way of
                  creating multi-media distributable documents from NoteTab -- anyone tested it
                  yet?

                  Alternatives are specialist Web Printers -- HP have one that I had on my system
                  for a while but it watched everything and was intrusive so it got scrapped with
                  very little use. Web printers also require client intervention whereas Acrobat
                  puts most of the control and most of the work with the 'publisher' which is
                  where it needs to be when you start broadcasting material.

                  Best regards

                  Bob

                  PS E-mail me privately if you want to know more as this is only just a NoteTab
                  topic.

                  --

                  Bob Janes
                  Webster & Janes Ltd
                  PO Box 211, Welwyn AL6 0EX UK
                  +44 (1438) 84-0206
                  mailto:bob.janes@...
                  http://www.webster-and-janes.co.uk/co.re/



                  ------------------------------------------------------------------------

                  eGroups.com home: http://www.egroups.com/group/ntb-html
                  http://www.egroups.com - Simplifying group communications
                Your message has been successfully submitted and would be delivered to recipients shortly.