SID-00285: Print part of a topic in landscape
| Status: |
Answered |
TWiki version: |
4.2.4 |
Perl version: |
5 |
| Category: |
CategoryEditing |
Server OS: |
Ubuntu 8.10 |
Last update: |
17 years ago |
Hello
In many of my topics I have graphics which are landscape oriented. I would like them to printed in landscape.
The question: Is it possible to print part of a topic in landscape?
--
MichelDenys - 2009-04-27
Discussion and Answer
I don't think you can do that for printing the generated HTML.
However, if you use
GenPDFAddOn, you can have it switch between profile and landscape modes throughout the document. Then when you print the PDF document, the pages will be properly oriented.
--
SeanCMorgan - 2009-04-27
Sean
Thanks for the info.
I know that CSS 2.0 (not 2.1) and CSS 3.0 support landscape printing but it is not well supported in most browsers. Typical code:
<style type="text/css" media="print">
@page port {size: portrait;}
@page land {size: landscape;}
.portrait {page: port;}
.landscape {page: land;}
</style>
--
MichelDenys - 2009-04-28
Interesting! Obviously I wasn't aware of that.
I googled for various examples of that, but I couldn't get any of them to work (even though it's supposed to work on my IE 6).
Assuming you overcome that, you might be able to create your own preference variables with calls of those styles, for use as shortcuts to set the page orientation (e.g.,
%PRINT_LANDSCAPE%,
%PRINT_PROFILE%).
--
SeanCMorgan - 2009-04-28
Closing this question after more than 30 days of inactivity. Feel free to reopen if needed. Consider engaging one of the
TWiki consultants if you need timely help. We invite you to
get involved with the community, it is more likely you get community support if you support the open source project!
--
PeterThoeny - 2009-06-02
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.