lib/hexapdf/document.rb in hexapdf-0.33.0 vs lib/hexapdf/document.rb in hexapdf-0.34.0

- old
+ new

@@ -536,9 +536,16 @@ # See: Type::Outline def outline catalog.outline end + # Returns the main object for working with optional content (a.k.a. layers). + # + # See: Type::Catalog#optional_content + def optional_content + catalog.optional_content + end + # Executes the given task and returns its result. # # Tasks provide an extensible way for performing operations on a PDF document without # cluttering the Document interface. #