ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* rotating some pages of a pdf
@ 2017-01-04 20:31 Cesar Romani
  2017-01-04 21:50 ` Hans Hagen
  0 siblings, 1 reply; 7+ messages in thread
From: Cesar Romani @ 2017-01-04 20:31 UTC (permalink / raw)
  To: ntg-context

I'm using the following code, rotate.tex, to rotate all the pages of
file.pdf, using: context --input=file.pdf --rotation=45 rotate.pdf

rotate.tex
==========
\getfiguredimensions [\getdocumentargument{input}]
\starttext
   \dorecurse{\noffigurepages}
     {\startTEXpage
       \externalfigure
         [\getdocumentargument{input}]
         [page=\recurselevel,
          orientation=\getdocumentargument{rotation}]
     \stopTEXpage}
\stoptext

How could I use this code to rotate, say, the page five, 7º clockwise,
and the page twenty, 15º counterclockwise?

Many thanks in advance,

-- 
Cesar

___________________________________________________________________________________
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] 7+ messages in thread

end of thread, other threads:[~2017-01-06 15:31 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-04 20:31 rotating some pages of a pdf Cesar Romani
2017-01-04 21:50 ` Hans Hagen
2017-01-04 23:34   ` Cesar Romani
2017-01-05  9:14     ` Hans Hagen
2017-01-06  4:47       ` Cesar Romani
2017-01-06 11:02         ` luigi scarso
2017-01-06 15:31         ` Alan Braslau

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).