Repository navigation
Page transitions: /Trans and /Dur - #60
Merged
Merged
Conversation
Page.SetTransition writes the transition dictionary of PDF 32000-1 12.4.4.1 (Table 162): style, /D, /Dm, /M and /Di, refused where the table says the style does not take the entry or the value (Di 180 and 90 are Wipe only, 315 Glitter only, Fly is not offered). Page.SetDisplayDuration writes the page's /Dur. A slide deck's presentation mode needs them: go-slides carries a slide's transition into its PDF. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Page.SetTransition(Transition{...})writes a page's/Transdictionary andPage.SetDisplayDurationits/Dur, as PDF 32000-1:2008 12.4.4.1 (Table 162) defines them: style (Split, Blinds, Box, Wipe, Dissolve, Glitter, R, Push, Cover, Uncover, Fade),/D,/Dm,/M,/Di. Defaults are not written.The entries Table 162 limits to some styles are refused for the others, and so are the values of
/Dia style does not take (90 and 180 are Wipe only, 315 is Glitter only). Fly (which also needs/SSand/B) is not offered.Why
go-slides carries a slide's transition into its PDF (go-slides/slides, the export-animations PR). No issue is referenced.
Checked
transition_test.goreads the file back through the independent reader (rsc.io/pdf), classic and packed into object streams, and asserts the refusals.go vet,go test ./...of the root package.Bibliography opened: PDF 32000-1:2008 12.4.4.1, Table 162 and Figure 56 (ISO 32000-2 was not reachable: 403).
🤖 Generated with Claude Code