Skip to content

Commit

Permalink
Add comment that /JS is allowed for Rendition actions
Browse files Browse the repository at this point in the history
  • Loading branch information
awehrfritz committed Feb 15, 2024
1 parent c2684d7 commit 5f6191e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/actions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ impl<'a> Action<'a> {
}

/// Write the `/JS` attribute to set the script of this action as a text
/// string. Only permissible for JavaScript actions.
/// string. Only permissible for JavaScript and Rendition actions.
pub fn js_string(&mut self, script: TextStr) -> &mut Self {
self.pair(Name(b"JS"), script);
self
Expand All @@ -75,7 +75,8 @@ impl<'a> Action<'a> {
/// Write the `/JS` attribute to set the script of this action as a text
/// stream. The indirect reference shall point to a stream containing valid
/// ECMAScript. The stream must have `PdfDocEncoding` or be in Unicode,
/// starting with `U+FEFF`. Only permissible for JavaScript actions.
/// starting with `U+FEFF`. Only permissible for JavaScript and Rendition
/// actions.
pub fn js_stream(&mut self, script: Ref) -> &mut Self {
self.pair(Name(b"JS"), script);
self
Expand Down

0 comments on commit 5f6191e

Please sign in to comment.