Re: [NTG-context] rotating some pages of a pdf
On 05/01/2017 04:14 a.m., Hans Hagen wrote: > On 1/5/2017 12:34 AM, Cesar Romani wrote: >> Thanks, it works fine. >> >> I noticed that the resolution of the rotated pages decreases. Is there >> any possibility to maintain or increase the resolution of the rotated >> pages? > > in what sense decrease ... The quality of the rotated pdfs, which are images, drops off a little. For example, some characters are not so sharp as in the original pdf. If I use GraphicsMagick I would remedy this with the parameter -density as in: gm convert -density 300x300 original.pdf -rotate 45 rotated.pdf ___ 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 ___
Re: [NTG-context] rotating some pages of a pdf
Thanks, it works fine. I noticed that the resolution of the rotated pages decreases. Is there any possibility to maintain or increase the resolution of the rotated pages? 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 ___
[NTG-context] rotating some pages of a pdf
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 ___