Export Script
Retrieve the Ghostscript script generated by pdf-optimizer for external analysis or use. Choose between exportScriptAsString and exportScriptAsArray methods to obtain the script as a string or an array, respectively.
Retrieve the Ghostscript script or command generated by pdf-optimizer for further analysis or external use. The methods exportScriptAsString and exportScriptAsArray provide options to obtain the Ghostscript script as a string or an array, respectively.
To Array
To String
Both the command
and toString
methods have optional parameters that allow for specifying the input
and output
file paths, providing a more personalized export.
Last updated
Was this helpful?