[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: exact dimenions of pdf/png
From: |
David Kastrup |
Subject: |
Re: exact dimenions of pdf/png |
Date: |
Mon, 29 Oct 2012 18:13:47 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux) |
David Kastrup <address@hidden> writes:
> Peter Van Kranenburg <address@hidden> writes:
>
>> Dear all,
>>
>> I have to provide a bitmapped image to a publisher:
>> 1200dpi, width: 11cm. It only contains one system.
>>
>> This implies a width of (11.0/2.54)*1200.0 = 5196 pixels.
>>
>> I followed the directions from the 'usage' manual, and I put this on
>> top of my source file.
>>
>> \paper{
>> indent=0\mm
>> line-width=110\mm
>> oddFooterMarkup=##f
>> oddHeaderMarkup=##f
>> bookTitleMarkup = ##f
>> scoreTitleMarkup = ##f
>> ragged-right = ##f
>> ragged-last = ##f
>> }
>>
>> However. The resulting pdf has a width of 11.19 cm, and the png a
>> width of 5283 pixels, which is too large.
>>
>> I tried to add:
>>
>> left-margin=0\mm
>> right-margin=0\mm
>> paper-width=110\mm
>> check-consistency=##t
>>
>> Then I get a width of 11.15 cm.
>>
>> How can I set the with of resulting pdf at exactly 11.0 cm?
>
> Try setting the paper-width variable.
Sorry, I should better read to the end before replying. However,
writing
\paper { paper-width=110\mm }
\score { { c4 c4 c4 c4 } }
and using
lilypond -dresolution=1200 --png
I get an image with 5197 pixels width, which is to a pixel exactly what
was demanded. So perhaps you need to check what throws a spanner in
your works, starting from a simple paper definition.
--
David Kastrup