Skip to content

Commit b219dfd

Browse files
authored
DOC: Fix AnnotationBuilder.free_text example (#1311)
Modify sample code for annotation builder to use the parameter background_color property instead of bg_color
1 parent 1e089c0 commit b219dfd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/user/adding-pdf-annotations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ annotation = AnnotationBuilder.free_text(
4545
font_size="20pt",
4646
font_color="00ff00",
4747
border_color="0000ff",
48-
bg_color="cdcdcd",
48+
background_color="cdcdcd",
4949
)
5050
writer.add_annotation(page_number=0, annotation=annotation)
5151

0 commit comments

Comments
 (0)