Skip to content
LpdfDocsv0.36-r1119.4

Lpdf is pre-release. The XML schema and SDK APIs can change between releases.

Admission letter

A one-page letter on a university letterhead, with the crest loaded as an image.

document.xml

A one-page letter, the simplest example: text in a column, and a crest that is an image.
assets declare an image once, with a name and the path of a PNG or JPEG file
img place it by that name, and give it a width: the height follows its proportions
layout a column stacks the lines of the letter, and a row puts the crest beside the letterhead

The document names 1 file, which go in an assets folder next to it. In Visual Studio Code, Lpdf: New Document puts them there.

<lpdf version="1">
<!--
A one-page letter, the simplest example: text in a column, and a crest that is an image.
assets declare an image once, with a name and the path of a PNG or JPEG file
img place it by that name, and give it a width: the height follows its proportions
layout a column stacks the lines of the letter, and a row puts the crest beside the letterhead
-->
<assets>
<image name="crest" src="assets/images/crest.png" />
</assets>
<document size="letter">
<meta title="Offer of admission" author="Linden Vale University" />
<section>
<layout margin="64pt">
<column gap="l">
<!-- letterhead: the crest at the left, then a column that fills the rest of the row, each line aligned to its right edge -->
<row gap="l" align="center">
<img name="crest" width="56pt" />
<column gap="xs" width="fill">
<text align="right" font-size="xl" bold="true">Linden Vale University</text>
<text align="right">Office of Admissions</text>
<text align="right">1 College Walk, Linden Vale, NY 12999</text>
<text align="right">admissions@lindenvale.example</text>
</column>
</row>
<text>March 14, 2027</text>
<!-- recipient -->
<column gap="xs">
<text>Ms. Amara Okafor</text>
<text>18 Cedar Road</text>
<text>Hartley, NY 12998</text>
</column>
<column gap="xs">
<text bold="true" font-size="l">Offer of admission: B.S. in Computer Science</text>
<text font-size="s">Application reference LV-2027-04817</text>
</column>
<!-- body: the gap between paragraphs is the blank line -->
<column gap="m">
<text>Dear Amara,</text>
<text>
Congratulations. On behalf of the admissions committee, it is my pleasure to offer you
a place in the four-year B.S. in Computer Science program at Linden Vale University.
Your application was one of the strongest we read this year.
</text>
<text>
We are also delighted to tell you that you have been awarded the Founders
Scholarship, which covers your full tuition for all four years.
</text>
<!-- the offer in four lines: a bold label, then the value -->
<column gap="xs">
<text><span bold="true">Program: </span>B.S. in Computer Science (four years, full time)</text>
<text><span bold="true">Starts: </span>August 30, 2027</text>
<text><span bold="true">Tuition: </span>Covered in full by the Founders Scholarship</text>
<text><span bold="true">Reply by: </span>May 1, 2027</text>
</column>
<text>
The offer is conditional on your final transcript: you must complete your senior
year with a B average or better, including Mathematics. The scholarship continues
each year that you remain in good academic standing.
</text>
<text>
To accept, sign in to the applicant portal at
<span href="https://apply.lindenvale.example" underline="true">apply.lindenvale.example</span>
and choose Accept offer. If you have questions, reply to this letter or write to
<span href="mailto:admissions@lindenvale.example" underline="true">admissions@lindenvale.example</span>.
</text>
<text>We hope to welcome you in August.</text>
</column>
<!-- sign-off: a larger gap leaves room to sign -->
<column gap="xl">
<text>Sincerely,</text>
<column gap="xs">
<text bold="true">Dr. Helen Marsh</text>
<text>Director of Admissions</text>
</column>
</column>
</column>
</layout>
</section>
</document>
</lpdf>