From 602fc9ae404ba00f682dfe2a7558a71ef555fb2c Mon Sep 17 00:00:00 2001 From: Matthew Butterick Date: Fri, 21 Dec 2018 14:35:53 -0800 Subject: [PATCH] add-page --- pitfall/ptest/testrkt.rkt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pitfall/ptest/testrkt.rkt b/pitfall/ptest/testrkt.rkt index 48725031..caea3a14 100644 --- a/pitfall/ptest/testrkt.rkt +++ b/pitfall/ptest/testrkt.rkt @@ -26,7 +26,7 @@ doc.font('Charter') .image('test.jpeg', 190, 400, height: 300) # Add another page -doc.addPage() +doc.add-page() .fontSize(25) .text 'Here is some vector graphics...', 100, 100 @@ -58,7 +58,7 @@ doc.text('And here is some wrapped text...', 100, 300) .text(loremIpsum, width: 412, align: 'justify', indent: 30, paragraphGap: 5) # Add another page, and set the font back -doc.addPage() +doc.add-page() .font('Charter', 25) .text('Rendering some SVG paths...', 100, 100) .translate(220, 300) @@ -83,7 +83,7 @@ for part in tiger doc.restore() # Add some text with annotations -doc.addPage() +doc.add-page() .fillColor("blue") .text('Here is a link!', 100, 100, { link: 'http://google.com/', underline: true }) doc.end()