Skip to content

Commit

Permalink
Add example of text with only outline
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbrazier authored and Sharcoux committed Apr 24, 2024
1 parent 6953f9e commit 7c5a6ec
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions apps/web/test3.html
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,15 @@
renderMode: TextRenderingMode.FillAndOutline,
});

page5.drawText('Outline only', {
x: 30,
y: 10,
font: helveticaFont,
strokeColor: hotPink,
strokeWidth: 1.5,
renderMode: TextRenderingMode.Outline,
});

console.log('Title:', pdfDoc.getTitle());
console.log('Author:', pdfDoc.getAuthor());
console.log('Subject:', pdfDoc.getSubject());
Expand Down

0 comments on commit 7c5a6ec

Please sign in to comment.