We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
At the moment (v0.6) PPTX.Slide argument for layout is defined like layout::Int=1 ie as an integer.
PPTX.Slide
layout::Int=1
For convenience, would be nice to be able to refer to the layout by name as well.
Code sketch to extract name to number map
layoutnamemap = Dict{String,Int}() layouts = readdir(raw"ppt/slideLayouts", join=true) for layout in layouts m = match(r"slideLayout(?<id>\d*).xml$", layout) isnothing(m) && continue id = parse(Int, m[:id]) doc = readxml(layout) r = root(doc) n = findfirst("//p:cSld", r) push!(layoutnamemap, n["name"] => id) end
The text was updated successfully, but these errors were encountered:
I agree this would be more intuitive to users.
Quick brainstorm
Union{Integer, String}
layoutnamemap
write_slides!
make_slide_relationships
id = get_slide_layout_id(s::Slide, layoutnamemap)
I wonder if we should make this layoutnamemap a property of the Presentation, since it's kinda part of the global state of the presentation.
Presentation
Sorry, something went wrong.
No branches or pull requests
At the moment (v0.6)
PPTX.Slide
argument for layout is defined likelayout::Int=1
ie as an integer.For convenience, would be nice to be able to refer to the layout by name as well.
Code sketch to extract name to number map
The text was updated successfully, but these errors were encountered: