Class Configuration.Resource
- Enclosing class:
Configuration
A type containing data for external resources such as style sheets.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsetBeforeDocumentScripts(Boolean value) Usetrueto cause PDFreactor to run the script before all scripts inside the document andfalseto 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) TheInputSourceof the resource.setPassword(String password) If thisConfiguration.Resourcedescribes 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
-
Resource
public Resource()
-
-
Method Details
-
setContent
The content of the resource. Only supported for Style Sheet- and Script-type resources.
- Returns:
- The current
Configuration.Resourceinstance. - See Also:
-
setUri
The URI of the resource.
- Returns:
- The current
Configuration.Resourceinstance.
-
setInputSource
The
InputSourceof the resource. Only supported for CSS-type resources.- Returns:
- The current
Configuration.Resourceinstance. - See Also:
-
setData
The binary data of the resource.
- Returns:
- The current
Configuration.Resourceinstance. - See Also:
-
setBeforeDocumentScripts
Use
trueto cause PDFreactor to run the script before all scripts inside the document andfalseto run it after.Only supported for JavaScript-type resources.
- Returns:
- The current
Configuration.Resourceinstance. - See Also:
-
setPassword
If this
Configuration.Resourcedescribes 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.Resourceinstance.
-
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.Resourceinstance.
-