Skip to content

Commit da87051

Browse files
committed
Updated pdf_copy_page_with_accessibility.go
1 parent 7eabbad commit da87051

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

accessibility/pdf_copy_page_with_accessibility.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ func main() {
6565

6666
// Construct base K dictionary.
6767
docK := model.NewKDictionary()
68-
docK.S = core.MakeName(model.StructureTypeDocument)
68+
docK.S = core.MakeName(string(model.StructureTypeDocument))
6969

7070
newStr.AddKDict(docK)
7171

@@ -115,7 +115,7 @@ func main() {
115115

116116
// Add section K object to store all original K objects from template page.
117117
sectK := model.NewKDictionary()
118-
sectK.S = core.MakeName(model.StructureTypeSection)
118+
sectK.S = core.MakeName(string(model.StructureTypeSection))
119119
sectK.T = core.MakeString(fmt.Sprintf("Page %d", n))
120120
sectK.GenerateRandomID()
121121

0 commit comments

Comments
 (0)