Class Configuration.Resource
- Enclosing class:
Configuration
A type containing data for external resources such as style sheets.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionsetBeforeDocumentScripts
(Boolean value) Usetrue
to cause PDFreactor to run the script before all scripts inside the document andfalse
to run it after.setContent
(String value) The content of the resource.setData
(byte[] value) The binary data of the resource.setInputSource
(com.realobjects.w3c.css.sac.InputSource value) TheInputSource
of the resource.setPassword
(String password) If thisConfiguration.Resource
describes a PDF document and this document is protected by an user or owner password, use this method to specify the password the document should be opened with.setSubtype
(Configuration.ResourceSubtype subtype) The subtype of this resource.The URI of the resource.
-
Constructor Details
-
Method Details
-
setContent
The content of the resource. Only supported for Style Sheet- and Script-type resources.
- Returns:
- The current
Configuration.Resource
instance. - See Also:
-
setUri
The URI of the resource.
- Returns:
- The current
Configuration.Resource
instance.
-
setInputSource
The
InputSource
of the resource. Only supported for CSS-type resources.- Returns:
- The current
Configuration.Resource
instance. - See Also:
-
setData
The binary data of the resource.
- Returns:
- The current
Configuration.Resource
instance. - See Also:
-
setBeforeDocumentScripts
Use
true
to cause PDFreactor to run the script before all scripts inside the document andfalse
to run it after.Only supported for JavaScript-type resources.
- Returns:
- The current
Configuration.Resource
instance. - See Also:
-
setPassword
If this
Configuration.Resource
describes a PDF document and this document is protected by an user or owner password, use this method to specify the password the document should be opened with.- Parameters:
password
- The password to open the PDF resource with.- Returns:
- The current
Configuration.Resource
instance.
-
setSubtype
The subtype of this resource. This is only relevant for properties that distinguish between multiple subtypes of resources with the same type, such as
Configuration.JavaScriptSettings
.- Parameters:
subtype
- The resource subtype.- Returns:
- The current
Configuration.Resource
instance.
-