Pdf - BorderOverlapStyle
30 Sep 20261 minute to read
Public enum that specifies how adjacent cell borders are rendered in a PdfGrid.
// Load an existing PDF document
let document: PdfDocument = new PdfDocument(data, password);
// Access the first page
let page: PdfPage = document.getPage(0);
// Create a data-source grid
let grid: PdfGrid = new PdfGrid([{ id: '1' }], [{ field: 'id' }]);
// Set border overlap behavior for grid cells
grid.style = { borderOverlapStyle: BorderOverlapStyle.overlap };
// Draw the grid on the page
grid.draw(page, { x: 10, y: 10, width: 240, height: 160 });
// Save the document
document.save('output.pdf');
// Destroy the document
document.destroy();-
inside- Specifies that adjacent cell borders remain separate. -
overlap- Specifies that adjacent cell borders overlap.