Mojca Miklavec wrote:
Christopher Creutzig wrote:
Yes, but those are not suitable for inclusion because they are full-size A4 pages. I tried using them first, but couldn't get the information needed to properly clip the A4 pages to the required part.
It means you can't include the header I copied from lilypond-book to get cropped output with the default backend.
I just found what I was looking for for quite some time: http://www.tug.org/tex-archive/support/pdfcrop/
I may be wrong, but I guess that the code doesn't do much more than calling ghostscript with -sDEVICE=bbox, parsing the data and cropping the page according to the information provided by ghostscript. I guess that this could be integrated into scripts in ConTeXt in quite an elegant way. Before I downloaded the pdfcrop script mentioned above, I was dreaming about being able to say something like texexec --pdf --crop filename.tex (or even texexec --png --transparent --r200 filename.tex) for quite some time.
newpstopdf --method=crop yourfile.ps (raw crop bounded) it also supports svg to pdf conversion, downsampling, subpaths etc (see earlier mail about the manual on manipulations on how this can be done from within context -) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------