Skip to content
Open
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
4 changes: 2 additions & 2 deletions src/write.jl
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ function update_table_style!(unzipped_ppt_dir::String=".")
end
end

function add_contenttypes!()
path = joinpath("..", "[Content_Types].xml")
function add_contenttypes!(unzipped_ppt_dir::String=".")
path = abspath(joinpath(unzipped_ppt_dir, "..", "[Content_Types].xml"))
doc = readxml(path)
r = root(doc)
extension_contenttypes = (
Expand Down
6 changes: 5 additions & 1 deletion test/testWriting.jl
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,10 @@ end
media_dir = joinpath(edited_template_path, "ppt", "media")
mkdir(media_dir)

# extra complexity: support read-only template support
# see https://github.com/ASML-Labs/PPTX.jl/issues/45
chmod(edited_template_path, 0o444; recursive=true)

pres = Presentation(;title="My Presentation")
s1 = Slide()
julia_logo = Picture(joinpath(PPTX.ASSETS_DIR,"julia_logo.png"), top = 110, left = 110)
Expand All @@ -124,4 +128,4 @@ end

@test isfile(pptx_path)
end
end
end