Dear Larry

I have noticed some more issues that you might have seen:

  1. If I load a raster layer (using the
     de.fhOsnabruek.jump.pirol.plugIns.PirolRasterImage plugin) then my
     "quality" options produces a correctly scaled image, while your
     "accurate" LayerPrinter2 class does not scale the image at all!-
     it appears to come out "natural" size - any thoughts on how to
     correctly scale the image?
  2. I have also tried printing a WMS layer but that did not work at
     all.  Has anyone tried this??  I am not sure how to get access to
     the WMS image.
  3. I use pdf995 as my PDF printer driver - it produces multi-page
     images without problems

Geoff

Larry Becker wrote:
Hmm, I see what you mean. In your attached files, I completely agree that SampleQuality.pdf has more resolution, however I'm not duplicating your results. In fact, I can't seem to get it to work with my CutePDF driver very well at all. I don't seem to be able to get multiple page output unless I print to a real printer.

It seems strange that LayerPrinter2 would give you screen resolution since its whole point is to allow you to specify whatever number of pixels you want. I mainly use it to save user specified resolution png files.

regards,
Larry

On 1/18/07, *Geoffrey G Roy* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:

    Dear Larry

    Thanks for the feedback.  The terms "quality" and "accurate" might
    not be the best (perhaps different terms should be used), but from
    my observations there are differences in the results from the two
    approaches, though the results that you see will depend on the
    actual screen resolution, the size of the LayerViewPanel on the
    the screen, and the scaling required for the paper output.  I am
    attaching two pdf  files where the difference can be seen by
    zooming in using Acrobat Reader.

    Some things to note:

       1. The size of the two files is quite different, the "accurate"
          file being much smaller - and is produced quite a bit faster
          also.
       2. In the "quality" file the text and lines are produced at a
          much higher resolution, but not always with their correct
          absolute size/widths.
       3. In the "accurate" file the text and lines have correct
          sizes/widths, but at lower resolution.

    There are some unknowns here - or at least I may be missing
    something fundamental!

    In response to Jan-Oliver's comments:

    I proceeded with my PrinterPlugin as I have an immediate need to
    print maps- even if the approach is relatively simple.  It does
    serve my needs for the moment, but I would naturally welcome a
    more comprehensive solution to printing.  The lack of a printing
    capability in OpenJUMP does seem a major limitation.  Printing on
    multiple pages also appears an important capability as some users
    will have access to large format printers.

    Geoff

    Larry Becker wrote:
    Hi Geoff,

      I just tried your latest version of JumpPrinter, and it does
    work quite well.  I'm not sure I agree with your "quality" vs.
    "accurate" label though.  In my tests (with SkyJUMP), when I
    printed to a single page, I couldn't really see much difference
    between checking "Quality" or not (rendered to an HP Color
    LaserJet 4500N using PCL 6).  However, when I unchecked single
    page option (giving 4 printed sheets now), the "Quality" mode
    clearly had lower resolution, although it had correct text and
    line scaling.  Unchecking "Quality" caused the text and line
    width to decrease.  It would seem to me that roles of "quality"
    and "accuracy" are reversed in your explanation.

      I would have thought that there was a way to set the DPI in
    Graphic2D, but I haven't found one.  The only technique that I
    have seen is to scale the line width and text size based on the
    printer DPI.  This would seem to imply modification of the JUMP
    core.

    regards,
    Larry Becker

    On 1/18/07, *Geoffrey G Roy* <[EMAIL PROTECTED]
    <mailto:[EMAIL PROTECTED]>> wrote:

        Dear Larry

        Many thanks for the suggestions - your LayerPrinter2 appears
        to work
        quite well and does what I was asking for but (and more
        interestingly!)

           1. My original approach copies the graphic context from
        the existing
              LayerViewPanel, then scales the lot using
        Graphics2D.scale().  As
              a result, text sizes, line widths and pattern sizes
        also scale -
              but the highest resolution is maintained on the
        printer. I call
              this "quality" mode.
           2. Your approach creates a new LayerViewPanel of an
        appropriate
              dimension then paints the layers into it (which I had
        tried but
              failed to achieve previously).  In this case the text
        and line
              sizes are correct, but they appear at a lower
        resolution (screen
              resolution?).  I call this "accurate" mode.

        There is a natural trade off between the two approaches - but
        perhaps we
        can achieve both results!  For the moment I have included two
        print
        options in the plugin so that both can be tried and compared.

        Perhaps some expert in Graphics2D might offer a solution?

        I have posted a new version on my web site for further testing.

        Geoff



        Larry Becker wrote:
        > Hi Geoff,
        >
        >    Thanks for all your work on the printing plugin.  Our
        users have
        > been asking for that feature for a long time.
        >
        >   In the Printer_Guide you said:
        >
        >     Currently the map scaling for printing is done by
        transforming the
        >     screen graphics to
        >     match the required printed scale. This means that the
        printed
        >     image will have line
        >     thicknesses and font sizes also scaled to match the required
        >     printed scale. This
        >     approach is not ideal, but until I can figure out how to
        change
        >     the off-screen canvas
        >     size to match the printed paper size it is the best
        available
        >     solution.
        >
        > The LayerPrinter2.java
        > 
<http://skyjump.cvs.sourceforge.net/skyjump/skyjump/com/ashs/jump/plugin/LayerPrinter2.java?view=log
        
<http://skyjump.cvs.sourceforge.net/skyjump/skyjump/com/ashs/jump/plugin/LayerPrinter2.java?view=log>>
        > file contains the code we use to cause JUMP to render at a
        specified
        > resolution.  It might be of some help in figuring this out.
        >
        > regards,
        > Larry
        >
        > On 1/14/07, *Geoffrey G Roy* < [EMAIL PROTECTED]
        <mailto:[EMAIL PROTECTED]>
        > <mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>>
        wrote:
        >
        >     The following two JUMP extensions are available for
        evaluation
        >     purposes and feedback:
        >
        >     *Printing* - an extension to add printing capabilities to
        >     OpenJUMP, including multi-sheet printing and the
        addition of map
        >     furniture (title, scale, north symbol etc).
        >
        >     *Updating *- an extension that enables a project file to be
        >     updated to reflect a changed location of one or more
        layer file sets.
        >
        >     Both can be downloaded from http://www.cadplan.com.au
        for testing
        >     and evaluation and feedback.
        >
        >     Geoff Roy
        >
        >
        >
        >     --
        >     Geoffrey G Roy
        >     Cadplan
        >     129 Gloster Street, Subiaco WA 6008
        >     Tel: (08) 9381 4870  Fax: (08) 9382 4459
        >     Email:
        >     [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
        <mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> >
        >     http://www.cadplan.com.au
        >
        >
        >     _______________________________________________
        >     jump-users mailing list
        >     [EMAIL PROTECTED]
        <mailto:[EMAIL PROTECTED]>
        >     <mailto:[EMAIL PROTECTED]
        <mailto:[EMAIL PROTECTED]>>
        >     http://lists.refractions.net/mailman/listinfo/jump-users
        >
        >
        >
        > 
------------------------------------------------------------------------
        >
        > _______________________________________________
        > jump-users mailing list
        > [EMAIL PROTECTED]
        <mailto:[EMAIL PROTECTED]>
        > http://lists.refractions.net/mailman/listinfo/jump-users
        <http://lists.refractions.net/mailman/listinfo/jump-users>
        >

        --
        Geoffrey G Roy
        Cadplan
        129 Gloster Street, Subiaco WA 6008
        Tel: (08) 9381 4870  Fax: (08) 9382 4459
        Email: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
        http://www.cadplan.com.au

        _______________________________________________
        jump-users mailing list
        [EMAIL PROTECTED]
        <mailto:[EMAIL PROTECTED]>
        http://lists.refractions.net/mailman/listinfo/jump-users


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

    _______________________________________________
    jump-users mailing list
    [EMAIL PROTECTED]
     <mailto:[EMAIL PROTECTED]>
    http://lists.refractions.net/mailman/listinfo/jump-users

-- Geoffrey G Roy
    Cadplan
    129 Gloster Street, Subiaco WA 6008
    Tel: (08) 9381 4870  Fax: (08) 9382 4459
Email: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
    http://www.cadplan.com.au


    -------------------------------------------------------------------------
    Take Surveys. Earn Cash. Influence the Future of IT
    Join SourceForge.net's Techsay panel and you'll get the chance to
    share your
    opinions on IT & business topics through brief surveys - and earn cash
    http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
    <http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV>

    _______________________________________________
    Jump-pilot-devel mailing list
    Jump-pilot-devel@lists.sourceforge.net
    <mailto:Jump-pilot-devel@lists.sourceforge.net>
    https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
    <https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel>




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

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
------------------------------------------------------------------------

_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

--
Geoffrey G Roy
Cadplan
129 Gloster Street, Subiaco WA 6008
Tel: (08) 9381 4870  Fax: (08) 9382 4459
Email: [EMAIL PROTECTED]
http://www.cadplan.com.au

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to