
I am using inkscape to convert SVG to PS, but in order to do it I have to write to my filesystem and pass filename options into inkscape:
inkscape -f invoice.svg -P invoice.ps
What I want to do is this:
inkscape -f - -P -
STDIN -> inkscape -> STDOUT
Thanks,
-Jeff

I dont exactly know what you mean/need but maybe this will help:
Try running this from bash terminal
for i in *.svg;do inkscape -F -P "${i/.svg/.ps}" "$i" ;done
It will create a postscript version of every svg you have in the directory its executed in. I came across some bugs when i tested it on chinese text for some reason. Will have to check it out again ( usually use batik to convert to PS / PDF when making books )

Unfortunately this is not what I need. I need to be able to read the SVG from STDIN and write the PS to STDOUT.
In other command line utilities you do this by specifying - as the filename.
I figure it'd be easy to implement and hopefully I could do this in the next release.
But if anybody does know how to do this currently I'm all ears. Right now I am needlessly writing my SVG to a file in order to process it.
-Jeff
Andy Fitzsimon wrote:
I dont exactly know what you mean/need but maybe this will help:
Try running this from bash terminal
for i in *.svg;do inkscape -F -P "${i/.svg/.ps}" "$i" ;done
It will create a postscript version of every svg you have in the directory its executed in. I came across some bugs when i tested it on chinese text for some reason. Will have to check it out again ( usually use batik to convert to PS / PDF when making books )

Anybody know who to talk to about this? The command line stuff?
Thanks,
-Jeff
Jeffrey Moss wrote:
I am using inkscape to convert SVG to PS, but in order to do it I have to write to my filesystem and pass filename options into inkscape:
inkscape -f invoice.svg -P invoice.ps
What I want to do is this:
inkscape -f - -P -
STDIN -> inkscape -> STDOUT
Thanks,
-Jeff
This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel

Jeffrey Moss wrote:
Unfortunately this is not what I need. I need to be able to read the SVG from STDIN and write the PS to STDOUT.
In other command line utilities you do this by specifying - as the filename.
I figure it'd be easy to implement and hopefully I could do this in the next release.
But if anybody does know how to do this currently I'm all ears. Right now I am needlessly writing my SVG to a file in order to process it.
Have you tried:
... | inkscape -f /dev/fd/0 -P /dev/fd/1 | ...
under bash. The shell will arrange redirection. It seems to work for me.
John

Ah! this is what I was looking for. Thanks John.
John Pybus wrote:
Jeffrey Moss wrote:
Unfortunately this is not what I need. I need to be able to read the SVG from STDIN and write the PS to STDOUT.
In other command line utilities you do this by specifying - as the filename.
I figure it'd be easy to implement and hopefully I could do this in the next release.
But if anybody does know how to do this currently I'm all ears. Right now I am needlessly writing my SVG to a file in order to process it.
Have you tried:
... | inkscape -f /dev/fd/0 -P /dev/fd/1 | ...
under bash. The shell will arrange redirection. It seems to work for me.
John
This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel
participants (4)
-
Andy Fitzsimon
-
Jeffrey Moss
-
John Pybus
-
MenTaLguY