@visusys you can edit the file /usr/share/inkscape/extensions/eps_input.inx and replace:
<param name="autorotate" type="optiongroup" appearance="combo" gui-text="Determine page orientation from text direction" gui-description="The PS/EPS importer can try to determine the page orientation such that the majority of the text runs left-to-right."> <option value="None">Disabled</option> <option value="PageByPage">Page by page</option> <option value="All">All</option> </param>
I am invoking inkscape through a PowerShell script that saves AI/EPS/PDF files to SVG. But when I run the script on an EPS file I get a GUI window:
https://i.imgur.com/JorkSQ2.png
Does anyone know how to suppress this prompt? I want it always to default to 'disabled'.
inkscape.com myfile.eps --export-area-drawing --export-plain-svg --export-filename myfile-out.svg
The above is the command I'm using.
Any help greatly appreciated.
This works on Ubuntu, not able to test in Windows at the moment.
The file
/usr/share/extensions/eps_input.inx
this is a core extension file, not in the user extension folderIf you comment out as shown below:
<?xml version="1.0" encoding="UTF-8"?>
<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
<name>EPS Input</name>
<id>org.inkscape.input.eps</id>
<dependency type="extension">org.inkscape.input.pdf</dependency>
<dependency type="executable" location="path">ps2pdf</dependency>
<param name="crop" type="bool" gui-hidden="true">true</param>
<!--
<param name="autorotate" type="optiongroup" appearance="combo" gui-text="Determine page orientation from text direction"
gui-description="The PS/EPS importer can try to determine the page orientation such that the majority of the text runs left-to-right.">
<option value="None">Disabled</option>
<option value="PageByPage">Page by page</option>
<option value="All">All</option>
</param>
-->
<input>
<extension>.eps</extension>
<mimetype>image/x-encapsulated-postscript</mimetype>
<filetypename>Encapsulated PostScript (*.eps)</filetypename>
<filetypetooltip>Encapsulated PostScript</filetypetooltip>
</input>
<script>
<command location="inx" interpreter="python">ps_input.py</command>
<helper_extension>org.inkscape.input.pdf</helper_extension>
</script>
</inkscape-extension>
@visusys you can edit the file /usr/share/inkscape/extensions/eps_input.inx and replace:
<param name="autorotate" type="optiongroup" appearance="combo" gui-text="Determine page orientation from text direction"
gui-description="The PS/EPS importer can try to determine the page orientation such that the majority of the text runs left-to-right.">
<option value="None">Disabled</option>
<option value="PageByPage">Page by page</option>
<option value="All">All</option>
</param>
with
<param name="autorotate" type="string" gui-hidden="true">None</param>