Skip to content

Commit bfed6a6

Browse files
author
Olivier Bonnaure
committed
feat: add styles & cap to lines
1 parent 5033137 commit bfed6a6

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

.lua/pdfgenerator.lua

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -775,14 +775,11 @@ function PDFGenerator:drawLine(x1, y1, x2, y2, width, options)
775775

776776
-- Draw the line
777777
table.insert(content.streams, string.format(
778-
"%s %s m\n%s %s l\nS\n",
778+
"%s %s m\n%s %s l\nS\nQ\n",
779779
numberToString(x1), numberToString(y1),
780780
numberToString(x2), numberToString(y2)
781781
))
782782

783-
-- Restore graphics state
784-
table.insert(content.streams, "Q\n")
785-
786783
return self
787784
end
788785
-- Draw circle on current page

0 commit comments

Comments
 (0)