Admission letter
A one-page letter on a university letterhead, with the crest loaded as an image.
What it shows
Section titled “What it shows”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 letterheadFonts and images
Section titled “Fonts and images”The document names 1 file, which go in an assets folder next to it. In Visual Studio Code, Lpdf: New Document puts them there.
The document
Section titled “The document”<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>L.document({ size: 'letter', assets: { images: [{ name: 'crest', src: 'assets/images/crest.png' }] }, meta: { title: 'Offer of admission', author: 'Linden Vale University' } }, [ L.section(NoAttr, [ L.layout({ margin: '64pt' }, [ L.column({ gap: 'l' }, [ L.row({ gap: 'l', align: 'center' }, [ L.img({ name: 'crest', width: '56pt' }), L.column({ gap: 'xs', width: 'fill' }, [ L.text({ align: 'right', fontSize: 'xl', bold: true }, ['Linden Vale University']), L.text({ align: 'right' }, ['Office of Admissions']), L.text({ align: 'right' }, ['1 College Walk, Linden Vale, NY 12999']), L.text({ align: 'right' }, ['admissions@lindenvale.example']), ]), ]), L.text(NoAttr, ['March 14, 2027']), L.column({ gap: 'xs' }, [ L.text(NoAttr, ['Ms. Amara Okafor']), L.text(NoAttr, ['18 Cedar Road']), L.text(NoAttr, ['Hartley, NY 12998']), ]), L.column({ gap: 'xs' }, [ L.text({ bold: true, fontSize: 'l' }, ['Offer of admission: B.S. in Computer Science']), L.text({ fontSize: 's' }, ['Application reference LV-2027-04817']), ]), L.column({ gap: 'm' }, [ L.text(NoAttr, ['Dear Amara,']), L.text(NoAttr, ['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.']), L.text(NoAttr, ['We are also delighted to tell you that you have been awarded the Founders Scholarship, which covers your full tuition for all four years.']), L.column({ gap: 'xs' }, [ L.text(NoAttr, [ L.span({ bold: true }, ['Program:']), ' B.S. in Computer Science (four years, full time)', ]), L.text(NoAttr, [ L.span({ bold: true }, ['Starts:']), ' August 30, 2027', ]), L.text(NoAttr, [ L.span({ bold: true }, ['Tuition:']), ' Covered in full by the Founders Scholarship', ]), L.text(NoAttr, [ L.span({ bold: true }, ['Reply by:']), ' May 1, 2027', ]), ]), L.text(NoAttr, ['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.']), L.text(NoAttr, [ 'To accept, sign in to the applicant portal at ', L.span({ href: 'https://apply.lindenvale.example', underline: true }, ['apply.lindenvale.example']), ' and choose Accept offer. If you have questions, reply to this letter or write to ', L.span({ href: 'mailto:admissions@lindenvale.example', underline: true }, ['admissions@lindenvale.example']), '.', ]), L.text(NoAttr, ['We hope to welcome you in August.']), ]), L.column({ gap: 'xl' }, [ L.text(NoAttr, ['Sincerely,']), L.column({ gap: 'xs' }, [ L.text({ bold: true }, ['Dr. Helen Marsh']), L.text(NoAttr, ['Director of Admissions']), ]), ]), ]), ]), ]),])L.document(DocumentAttr(size='letter', assets=DocumentAssets(images=[ImageAttr(name='crest', src='assets/images/crest.png')]), meta=DocumentMeta(title='Offer of admission', author='Linden Vale University')), [ L.section(NoAttr, [ L.layout(LayoutAttr(margin='64pt'), [ L.column(ColumnAttr(gap='l'), [ L.row(RowAttr(gap='l', align='center'), [ L.img(ImgAttr(name='crest', width='56pt')), L.column(ColumnAttr(gap='xs', width='fill'), [ L.text(TextAttr(align='right', font_size='xl', bold=True), ['Linden Vale University']), L.text(TextAttr(align='right'), ['Office of Admissions']), L.text(TextAttr(align='right'), ['1 College Walk, Linden Vale, NY 12999']), L.text(TextAttr(align='right'), ['admissions@lindenvale.example']) ]) ]), L.text(NoAttr, ['March 14, 2027']), L.column(ColumnAttr(gap='xs'), [ L.text(NoAttr, ['Ms. Amara Okafor']), L.text(NoAttr, ['18 Cedar Road']), L.text(NoAttr, ['Hartley, NY 12998']) ]), L.column(ColumnAttr(gap='xs'), [ L.text(TextAttr(bold=True, font_size='l'), ['Offer of admission: B.S. in Computer Science']), L.text(TextAttr(font_size='s'), ['Application reference LV-2027-04817']) ]), L.column(ColumnAttr(gap='m'), [ L.text(NoAttr, ['Dear Amara,']), L.text(NoAttr, ['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.']), L.text(NoAttr, ['We are also delighted to tell you that you have been awarded the Founders Scholarship, which covers your full tuition for all four years.']), L.column(ColumnAttr(gap='xs'), [ L.text(NoAttr, [ L.span(SpanAttr(bold=True), ['Program:']), ' B.S. in Computer Science (four years, full time)' ]), L.text(NoAttr, [ L.span(SpanAttr(bold=True), ['Starts:']), ' August 30, 2027' ]), L.text(NoAttr, [ L.span(SpanAttr(bold=True), ['Tuition:']), ' Covered in full by the Founders Scholarship' ]), L.text(NoAttr, [ L.span(SpanAttr(bold=True), ['Reply by:']), ' May 1, 2027' ]) ]), L.text(NoAttr, ['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.']), L.text(NoAttr, [ 'To accept, sign in to the applicant portal at ', L.span(SpanAttr(href='https://apply.lindenvale.example', underline=True), ['apply.lindenvale.example']), ' and choose Accept offer. If you have questions, reply to this letter or write to ', L.span(SpanAttr(href='mailto:admissions@lindenvale.example', underline=True), ['admissions@lindenvale.example']), '.' ]), L.text(NoAttr, ['We hope to welcome you in August.']) ]), L.column(ColumnAttr(gap='xl'), [ L.text(NoAttr, ['Sincerely,']), L.column(ColumnAttr(gap='xs'), [ L.text(TextAttr(bold=True), ['Dr. Helen Marsh']), L.text(NoAttr, ['Director of Admissions']) ]) ]) ]) ]) ])])L.document(new DocumentAttr().size("letter").assets(new DocumentAssets().images(List.of(new ImageAttr().name("crest").src("assets/images/crest.png")))).meta(new DocumentMeta().title("Offer of admission").author("Linden Vale University")), List.of( L.section(NoAttr, List.of( L.layout(new LayoutAttr().margin("64pt"), List.of( L.column(new ColumnAttr().gap("l"), List.of( L.row(new RowAttr().gap("l").align("center"), List.of( L.img(new ImgAttr().name("crest").width("56pt")), L.column(new ColumnAttr().gap("xs").width("fill"), List.of( L.text(new TextAttr().align("right").fontSize("xl").bold(true), List.of("Linden Vale University")), L.text(new TextAttr().align("right"), List.of("Office of Admissions")), L.text(new TextAttr().align("right"), List.of("1 College Walk, Linden Vale, NY 12999")), L.text(new TextAttr().align("right"), List.of("admissions@lindenvale.example")) )) )), L.text(NoAttr, List.of("March 14, 2027")), L.column(new ColumnAttr().gap("xs"), List.of( L.text(NoAttr, List.of("Ms. Amara Okafor")), L.text(NoAttr, List.of("18 Cedar Road")), L.text(NoAttr, List.of("Hartley, NY 12998")) )), L.column(new ColumnAttr().gap("xs"), List.of( L.text(new TextAttr().bold(true).fontSize("l"), List.of("Offer of admission: B.S. in Computer Science")), L.text(new TextAttr().fontSize("s"), List.of("Application reference LV-2027-04817")) )), L.column(new ColumnAttr().gap("m"), List.of( L.text(NoAttr, List.of("Dear Amara,")), L.text(NoAttr, List.of("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.")), L.text(NoAttr, List.of("We are also delighted to tell you that you have been awarded the Founders Scholarship, which covers your full tuition for all four years.")), L.column(new ColumnAttr().gap("xs"), List.of( L.text(NoAttr, List.of( L.span(new SpanAttr().bold(true), List.of("Program:")), " B.S. in Computer Science (four years, full time)" )), L.text(NoAttr, List.of( L.span(new SpanAttr().bold(true), List.of("Starts:")), " August 30, 2027" )), L.text(NoAttr, List.of( L.span(new SpanAttr().bold(true), List.of("Tuition:")), " Covered in full by the Founders Scholarship" )), L.text(NoAttr, List.of( L.span(new SpanAttr().bold(true), List.of("Reply by:")), " May 1, 2027" )) )), L.text(NoAttr, List.of("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.")), L.text(NoAttr, List.of( "To accept, sign in to the applicant portal at ", L.span(new SpanAttr().href("https://apply.lindenvale.example").underline(true), List.of("apply.lindenvale.example")), " and choose Accept offer. If you have questions, reply to this letter or write to ", L.span(new SpanAttr().href("mailto:admissions@lindenvale.example").underline(true), List.of("admissions@lindenvale.example")), "." )), L.text(NoAttr, List.of("We hope to welcome you in August.")) )), L.column(new ColumnAttr().gap("xl"), List.of( L.text(NoAttr, List.of("Sincerely,")), L.column(new ColumnAttr().gap("xs"), List.of( L.text(new TextAttr().bold(true), List.of("Dr. Helen Marsh")), L.text(NoAttr, List.of("Director of Admissions")) )) )) )) )) ))))L.Document(new() { Size = "letter", Assets = new DocumentAssets(Images: [new ImageAttr { Name = "crest", Src = "assets/images/crest.png" }]), Meta = new() { Title = "Offer of admission", Author = "Linden Vale University" } }, [ L.Section(NoAttr, [ L.Layout(new() { Margin = "64pt" }, [ L.Column(new() { Gap = "l" }, [ L.Row(new() { Gap = "l", Align = "center" }, [ L.Img(new() { Name = "crest", Width = "56pt" }), L.Column(new() { Gap = "xs", Width = "fill" }, [ L.Text(new() { Align = "right", FontSize = "xl", Bold = true }, ["Linden Vale University"]), L.Text(new() { Align = "right" }, ["Office of Admissions"]), L.Text(new() { Align = "right" }, ["1 College Walk, Linden Vale, NY 12999"]), L.Text(new() { Align = "right" }, ["admissions@lindenvale.example"]), ]), ]), L.Text(NoAttr, ["March 14, 2027"]), L.Column(new() { Gap = "xs" }, [ L.Text(NoAttr, ["Ms. Amara Okafor"]), L.Text(NoAttr, ["18 Cedar Road"]), L.Text(NoAttr, ["Hartley, NY 12998"]), ]), L.Column(new() { Gap = "xs" }, [ L.Text(new() { Bold = true, FontSize = "l" }, ["Offer of admission: B.S. in Computer Science"]), L.Text(new() { FontSize = "s" }, ["Application reference LV-2027-04817"]), ]), L.Column(new() { Gap = "m" }, [ L.Text(NoAttr, ["Dear Amara,"]), L.Text(NoAttr, ["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."]), L.Text(NoAttr, ["We are also delighted to tell you that you have been awarded the Founders Scholarship, which covers your full tuition for all four years."]), L.Column(new() { Gap = "xs" }, [ L.Text(NoAttr, [ L.Span(new() { Bold = true }, ["Program:"]), " B.S. in Computer Science (four years, full time)", ]), L.Text(NoAttr, [ L.Span(new() { Bold = true }, ["Starts:"]), " August 30, 2027", ]), L.Text(NoAttr, [ L.Span(new() { Bold = true }, ["Tuition:"]), " Covered in full by the Founders Scholarship", ]), L.Text(NoAttr, [ L.Span(new() { Bold = true }, ["Reply by:"]), " May 1, 2027", ]), ]), L.Text(NoAttr, ["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."]), L.Text(NoAttr, [ "To accept, sign in to the applicant portal at ", L.Span(new() { Href = "https://apply.lindenvale.example", Underline = true }, ["apply.lindenvale.example"]), " and choose Accept offer. If you have questions, reply to this letter or write to ", L.Span(new() { Href = "mailto:admissions@lindenvale.example", Underline = true }, ["admissions@lindenvale.example"]), ".", ]), L.Text(NoAttr, ["We hope to welcome you in August."]), ]), L.Column(new() { Gap = "xl" }, [ L.Text(NoAttr, ["Sincerely,"]), L.Column(new() { Gap = "xs" }, [ L.Text(new() { Bold = true }, ["Dr. Helen Marsh"]), L.Text(NoAttr, ["Director of Admissions"]), ]), ]), ]), ]), ]),])L::document(new DocumentAttr(size: 'letter', assets: new DocumentAssets(images: [new ImageAttr(name: 'crest', src: 'assets/images/crest.png')]), meta: new DocumentMeta(title: 'Offer of admission', author: 'Linden Vale University')), [ L::section(NoAttr, [ L::layout(new LayoutAttr(margin: '64pt'), [ L::column(new ColumnAttr(gap: 'l'), [ L::row(new RowAttr(gap: 'l', align: 'center'), [ L::img(new ImgAttr(name: 'crest', width: '56pt')), L::column(new ColumnAttr(gap: 'xs', width: 'fill'), [ L::text(new TextAttr(align: 'right', fontSize: 'xl', bold: true), ['Linden Vale University']), L::text(new TextAttr(align: 'right'), ['Office of Admissions']), L::text(new TextAttr(align: 'right'), ['1 College Walk, Linden Vale, NY 12999']), L::text(new TextAttr(align: 'right'), ['admissions@lindenvale.example']), ]), ]), L::text(NoAttr, ['March 14, 2027']), L::column(new ColumnAttr(gap: 'xs'), [ L::text(NoAttr, ['Ms. Amara Okafor']), L::text(NoAttr, ['18 Cedar Road']), L::text(NoAttr, ['Hartley, NY 12998']), ]), L::column(new ColumnAttr(gap: 'xs'), [ L::text(new TextAttr(bold: true, fontSize: 'l'), ['Offer of admission: B.S. in Computer Science']), L::text(new TextAttr(fontSize: 's'), ['Application reference LV-2027-04817']), ]), L::column(new ColumnAttr(gap: 'm'), [ L::text(NoAttr, ['Dear Amara,']), L::text(NoAttr, ['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.']), L::text(NoAttr, ['We are also delighted to tell you that you have been awarded the Founders Scholarship, which covers your full tuition for all four years.']), L::column(new ColumnAttr(gap: 'xs'), [ L::text(NoAttr, [ L::span(new SpanAttr(bold: true), ['Program:']), ' B.S. in Computer Science (four years, full time)', ]), L::text(NoAttr, [ L::span(new SpanAttr(bold: true), ['Starts:']), ' August 30, 2027', ]), L::text(NoAttr, [ L::span(new SpanAttr(bold: true), ['Tuition:']), ' Covered in full by the Founders Scholarship', ]), L::text(NoAttr, [ L::span(new SpanAttr(bold: true), ['Reply by:']), ' May 1, 2027', ]), ]), L::text(NoAttr, ['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.']), L::text(NoAttr, [ 'To accept, sign in to the applicant portal at ', L::span(new SpanAttr(href: 'https://apply.lindenvale.example', underline: true), ['apply.lindenvale.example']), ' and choose Accept offer. If you have questions, reply to this letter or write to ', L::span(new SpanAttr(href: 'mailto:admissions@lindenvale.example', underline: true), ['admissions@lindenvale.example']), '.', ]), L::text(NoAttr, ['We hope to welcome you in August.']), ]), L::column(new ColumnAttr(gap: 'xl'), [ L::text(NoAttr, ['Sincerely,']), L::column(new ColumnAttr(gap: 'xs'), [ L::text(new TextAttr(bold: true), ['Dr. Helen Marsh']), L::text(NoAttr, ['Director of Admissions']), ]), ]), ]), ]), ]),])