@@ -493,15 +493,15 @@ const secondDonorPdfBytes = ...
493493const firstDonorPdfDoc = await PDFDocument .load (firstDonorPdfBytes)
494494const secondDonorPdfDoc = await PDFDocument .load (secondDonorPdfBytes)
495495
496- // Copy the 1st page from the first donor document, and
496+ // Copy the 1st page from the first donor document, and
497497// the 743rd page from the second donor document
498498const [firstDonorPage ] = await pdfDoc .copyPages (firstDonorPdfDoc, [0 ])
499499const [secondDonorPage ] = await pdfDoc .copyPages (secondDonorPdfDoc, [742 ])
500500
501501// Add the first copied page
502502pdfDoc .addPage (firstDonorPage)
503503
504- // Insert the second copied page to index 0, so it will be the
504+ // Insert the second copied page to index 0, so it will be the
505505// first page in `pdfDoc`
506506pdfDoc .insertPage (0 , secondDonorPage)
507507
@@ -606,11 +606,11 @@ const preamble = await pdfDoc.embedPage(usConstitutionPdf.getPages()[1], {
606606 top: 575 ,
607607})
608608
609- // Get the width/height of the American flag PDF scaled down to 30% of
609+ // Get the width/height of the American flag PDF scaled down to 30% of
610610// its original size
611611const americanFlagDims = americanFlag .scale (0.3 )
612612
613- // Get the width/height of the preamble clipping scaled up to 225% of
613+ // Get the width/height of the preamble clipping scaled up to 225% of
614614// its original size
615615const preambleDims = preamble .scale (2.25 )
616616
@@ -813,8 +813,8 @@ import { PDFDocument } from 'pdf-lib'
813813const existingPdfBytes = ...
814814
815815// Load a PDFDocument without updating its existing metadata
816- const pdfDoc = await PDFDocument .load (existingPdfBytes, {
817- updateMetadata: false
816+ const pdfDoc = await PDFDocument .load (existingPdfBytes, {
817+ updateMetadata: false
818818})
819819
820820// Print all available metadata fields
@@ -1228,7 +1228,7 @@ When working with PDFs, you will frequently come across the terms "character enc
12281228 const pdfDoc = await PDFDocument .create ()
12291229 const courierFont = await pdfDoc .embedFont (StandardFonts .Courier )
12301230 const page = pdfDoc .addPage ()
1231- page .drawText (' Some boring latin text in the Courier font' , {
1231+ page .drawText (' Some boring latin text in the Courier font' , {
12321232 font: courierFont,
12331233 })
12341234 ```
@@ -1248,7 +1248,7 @@ When working with PDFs, you will frequently come across the terms "character enc
12481248 const ubuntuFont = await pdfDoc .embedFont (fontBytes)
12491249
12501250 const page = pdfDoc .addPage ()
1251- page .drawText (' Some fancy Unicode text in the ŪЬȕǹƚü font' , {
1251+ page .drawText (' Some fancy Unicode text in the ŪЬȕǹƚü font' , {
12521252 font: ubuntuFont,
12531253 })
12541254 ```
0 commit comments