PdfLineJoin
12 Sep 20251 minute to read
Public enum to define the line join.
// Load an existing PDF document
let document: PdfDocument = new PdfDocument(data, password);
// Access first page
let page: PdfPage = document.getPage(0);
// Gets the graphics of the PDF page
let graphics: PdfGraphics = page.graphics;
// Create a new pen
let pen: PdfPen = new PdfPen([0, 0, 0], 1);
// Set the dash style
pen._dashStyle = PdfDashStyle.dashDot;
// Set the line join
pen._lineJoin = PdfLineJoin.bevel;
// Draw a rectangle using pen
graphics.drawRectangle(150, 50, 50, 50, pen);
// Save the document
document.save('output.pdf');
// Destroy the document
document.destroy();-
bevel- Specifies the type ofbevel. -
miter- Specifies the type ofmiter. -
round- Specifies the type ofround.