pivot-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Drazen Dotlic (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PIVOT-511) Labels doesn't appear in Print from Browser
Date Tue, 11 Oct 2011 22:07:11 GMT

    [ https://issues.apache.org/jira/browse/PIVOT-511?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13125423#comment-13125423
] 

Drazen Dotlic commented on PIVOT-511:
-------------------------------------

Sandro,

indeed printing from applet viewer won't result in PrinterContext being used (using the viewer
is still the simplest way to confirm the existence of the problem).

However, we don't print from the viewer :), nor do we use browser's print (since that ignores
complete surface of the applet in all browsers but IE) - we do it manually by calling "print"
on a Printable derivative of our own which simply uses given Graphics to draw the desired
component. This Graphics instance is indeed a derivative of the PrinterGraphics (when printing,
I just checked/debugged) so for us the code you have now - assuming the "drawString" replacement
works just like the "drawGlyphVector" - is good enough.

Could you please submit a patch/ commit what you have?

Thanks.
                
> Labels doesn't appear in Print from Browser
> -------------------------------------------
>
>                 Key: PIVOT-511
>                 URL: https://issues.apache.org/jira/browse/PIVOT-511
>             Project: Pivot
>          Issue Type: Bug
>          Components: wtk, wtk-terra
>    Affects Versions: 1.5, 1.5.1, 2.0
>            Reporter: Sandro Martini
>            Assignee: Sandro Martini
>            Priority: Minor
>             Fix For: 2.0, 2.1
>
>         Attachments: Java_Printing.pdf, Kitchen Sink _ Apache Pivot 1.4.pdf, Kitchen
Sink _ Apache Pivot 1.5.pdf, Kitchen Sink _ Apache Pivot 2.0.pdf, Stock Tracker _ Apache Pivot
1.4.pdf, Stock Tracker _ Apache Pivot 1.5.pdf, Swing_Pivot Demo.pdf, Swing_Pivot Demo.png
>
>
> From a Browser, Printing a page, for some reason I have all Labels not in output (see
attached pdf, but the same happens with a print to paper).
> With 1.4 it was not so good but labels were present, while in current 1.5 pre-release
it seems that all is present but not labels.
> This should be a great fix to have in the final 1.5
> This happens on Win XP and Windows 7, both from latest Firefox and IE 8, and on all Pivot
Applets.
> Sandro

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message