Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion show-pdf-tags/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Print structure element hierarchy for Tagged PDF

show-pdf-tags version 1.4
show-pdf-tags version 1.5

Print a plain text or XML tree representing the structure of tagged PDF files.

Expand Down
6 changes: 3 additions & 3 deletions show-pdf-tags/show-pdf-tags.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env texlua

local show_pdf_tags_version = "1.4"
local show_pdf_tags_version = "1.5"

kpse.set_program_name'lualatex'

Expand Down Expand Up @@ -701,9 +701,9 @@ local function print_tree_xml(tree, ctx)
end
print ("<PDF>\n <StructTreeRoot>")
recurse(tree, ' ', '', '', ' ')
print (" </StructTreeRoot>\n")
print (" </StructTreeRoot>")
if show_xmp then
print(" <XMP>\n" ..pdfe.readwholestream(ctx.xmp,true):gsub("\n[ \n]*\n","\n") .. "\n </XMP>\n")
print(" <XMP>\n" ..pdfe.readwholestream(ctx.xmp,true):gsub("\n[ \n]*\n","\n") .. "\n </XMP>")
end
print ("</PDF>")
return
Expand Down