Strange command line behaviour with PS import / SVG export
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
New
|
Undecided
|
Unassigned |
Bug Description
Under Win7 I observed the following strange and illogic behaviour:
Converting PDF to SVG seems to work this way:
inkscape.exe -z -f "Input.pdf" -l "Output.svg"
With a Postscript (PS) file this doesn't work. Nothing happens (under Win7)!
inkscape.exe -z -f "Input.ps" -l "Output.svg"
However, what seems to work is the following with PS:
inkscape -z -f "Input.ps" -l "Output.svg"
Find the difference! Why should the extension ".exe" make a difference but only with PS files?
Bug or feature? Can others reproduce this on Win7?
A related issue is with cropping to bounding box. Look at the following codes:
1) inkscape -z -f "Input.ps" -E "Output.eps" -A "Output.pdf" -l "Ouput.svg"
2) inkscape -z -f "Input.ps" -E "Output.eps" -l "Ouput.svg"
3) inkscape -z -f "Input.ps" -A "Output.pdf"
4) inkscape -z -f "Input.ps" -l "Ouput.svg"
5) inkscape -z -f "Input.eps" -l "Ouput.svg"
ad 1) EPS and PDF are cropped, SVG is not (why is the PDF cropped and the SVG not?)
ad 2) EPS is cropped, SVG is not (why is the SVG not cropped?)
ad 3) PDF is not cropped (well, here I wouldn't expect it, although an option to do so would be nice!)
ad 4) SVG is not cropped (well, here I wouldn't expect it, although an option to do so would be nice!)
ad 5) SVG is cropped (as expected!)
So, if I want a cropped SVG from PS, I have to start Inkscape twice: first to create an EPS and second to load the cropped EPS again and create an SVG, which makes everything slow and inefficient for a large number of conversions.
But why then is the PDF cropped after creation of an EPS in the same line?
How much effort would it be to have the SVG cropped either after creation of an EPS in the same line or alternatively as an option "c" for cropping, e.g. "-lc" and "-Ac" for a cropped PDF without having to create an EPS first?
Thanks!
tags: |
added: cli eps exporting importing pdf win64 removed: conversion cropping ps-import svg-export |
The described behaviour is actually observed with Inkscape 0.91 under Win7/64
Furthermore, you can try this:
1) inkscape.exe -f "Input.ps"
2) inkscape.exe "Input.ps"
3) inkscape -f "Input.ps"
4) inkscape "Input.ps"
1) and 2) end up with an error messages:
"Inkscape has received additional data from the script executed. The script did not return an error, but this may indicate the results will not be as expected"
and
"Failed to load the requested file Input.ps"
whereas 3) and 4) are correctly opening the file Input.ps.