ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Regular Online meeting
@ 2022-02-07 21:12 Gerhard Schramm via ntg-context
  2022-02-07 23:19 ` Hans Hagen via ntg-context
  0 siblings, 1 reply; 2+ messages in thread
From: Gerhard Schramm via ntg-context @ 2022-02-07 21:12 UTC (permalink / raw)
  To: Henning Hraban Ramm via ntg-context; +Cc: Gerhard Schramm


[-- Attachment #1.1: Type: text/plain, Size: 506 bytes --]

Dear Hraban, Dear Hans

I'm looking for a way to automatically rotate a graphic 
(DIN_A4_PDF_Pages). I try to manage technical manuals with Context. 
(Which is really great!) To do this, I have to import always new 
PDF-pages (technical sketches) , which can be in landscape or portrait 
format. The pages should always be displayed as large as possible on the 
pages of my manuals. (I have no influence on the PDF's, as they come 
from other departments.) Do you see a possibility here? kind regards Gerd

[-- Attachment #1.2: Type: text/html, Size: 1518 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Regular Online meeting
  2022-02-07 21:12 Regular Online meeting Gerhard Schramm via ntg-context
@ 2022-02-07 23:19 ` Hans Hagen via ntg-context
  0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen via ntg-context @ 2022-02-07 23:19 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Hans Hagen

On 2/7/2022 10:12 PM, Gerhard Schramm via ntg-context wrote:
> Dear Hraban, Dear Hans
> 
> I'm looking for a way to automatically rotate a graphic 
> (DIN_A4_PDF_Pages). I try to manage technical manuals with Context. 
> (Which is really great!) To do this, I have to import always new 
> PDF-pages (technical sketches) , which can be in landscape or portrait 
> format. The pages should always be displayed as large as possible on the 
> pages of my manuals. (I have no influence on the PDF's, as they come 
> from other departments.) Do you see a possibility here? kind regards Gerd
>
\starttext

     \showframe

     \starttexdefinition MaxFigure #1#2
         \page
             \getfiguredimensions[#1][page=#2]\relax
             \ifdim\figurewidth>\figureheight\relax
                 \externalfigure
                    [#1]
                    [page=#2,
                     frame=on,
                     orientation=90,
                     width=\textheight]
             \else
                 \externalfigure
                   [#1]
                   [page=#2,
                    frame=on,
                    height=\textheight]
             \fi
         \page
     \stoptexdefinition

     \MaxFigure{math.pdf}{1}
     \MaxFigure{math.pdf}{2}

\stoptext




-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-02-07 23:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-07 21:12 Regular Online meeting Gerhard Schramm via ntg-context
2022-02-07 23:19 ` Hans Hagen via ntg-context

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).