Would anyone object if I switch PS and EPS import from using pstoedit/skconvert to this:
- convert ps to pdf with ps2pdf from Ghostscript
- import pdf to Inkscape?
Reasons:
- Ghostscript is doubtlessly the most competent open source software for dealing with Postscript; it is cross-platform, actively updated and is much more commonly installed than anything else we've been using
- our PDF importer is the best importer we have, and it works better than any third party things that claim to produce svg
- for multipage postscript, we get for free a dialog for selecting the page (and later, the option to import multiple pages into one multipage SVG will only have to be coded once for PDF and work for PS at once).
Testing by people in https://bugs.launchpad.net/bugs/190424 as well as my own experience tells me this route works quite well.
On Sun, Apr 13, 2008 at 02:16:45PM -0400, bulia byak wrote:
Would anyone object if I switch PS and EPS import from using pstoedit/skconvert to this:
Incidentally, I don't think we're using skconvert for ps/eps import, based on share/extensions/{eps,ps}_input.inx. (We may have been previously; I do remember we were using skencil for something or other where it seemed redundant.)
Regardless, switching does sound appropriate to me.
pjrm.
On Mon, 2008-04-14 at 10:21 +1000, Peter Moulder wrote:
On Sun, Apr 13, 2008 at 02:16:45PM -0400, bulia byak wrote:
Would anyone object if I switch PS and EPS import from using pstoedit/skconvert to this:
Regardless, switching does sound appropriate to me.
+1 here also.
My only question is if we'd want to make poppler a hard dependency then.
--Ted
On Tue, Apr 15, 2008 at 2:01 PM, Ted Gould <ted@...11...> wrote:
+1 here also.
My only question is if we'd want to make poppler a hard dependency then.
I think it makes sense, given the importance of PDF capabilities in our marketing and general perception. Can you please take care of that - I'm just not sure what is involved in this?
On Tue, Apr 15, 2008 at 3:20 PM, bulia byak <buliabyak@...400...> wrote:
I think it makes sense, given the importance of PDF capabilities in our marketing and general perception. Can you please take care of that
- I'm just not sure what is involved in this?
Also: I tried to hook up ps2pdf but Inkscape expects to get SVG from an extension, and fails instead of running the PDF import extension. Is it fundamentally impossible to chain input extensions or am I doing something wrong?
bulia byak wrote:
On Tue, Apr 15, 2008 at 3:20 PM, bulia byak <buliabyak@...400...> wrote:
I think it makes sense, given the importance of PDF capabilities in our marketing and general perception. Can you please take care of that
- I'm just not sure what is involved in this?
Also: I tried to hook up ps2pdf but Inkscape expects to get SVG from an extension, and fails instead of running the PDF import extension. Is it fundamentally impossible to chain input extensions or am I doing something wrong?
I think there is something called helpers.
Aaron Spike
Aaron Spike wrote:
bulia byak wrote:
On Tue, Apr 15, 2008 at 3:20 PM, bulia byak <buliabyak@...400...> wrote:
I think it makes sense, given the importance of PDF capabilities in our marketing and general perception. Can you please take care of that
- I'm just not sure what is involved in this?
Also: I tried to hook up ps2pdf but Inkscape expects to get SVG from an extension, and fails instead of running the PDF import extension. Is it fundamentally impossible to chain input extensions or am I doing something wrong?
I think there is something called helpers.
Yeah check out these for examples.
ai_output.inx: <helper_extension>org.inkscape.output.ps</helper_extension> dxf_outlines.inx: <helper_extension>org.inkscape.output.svg.inkscape</helper_extension> dxf_output.inx: <helper_extension>org.inkscape.output.ps</helper_extension> epsi_output.inx: <helper_extension>org.inkscape.output.ps</helper_extension> gimp_xcf.inx: <helper_extension>org.inkscape.output.svg.inkscape</helper_extension> pdf_output.inx.txt: <helper_extension>org.inkscape.output.ps</helper_extension> pdf_output_via_gs_on_win32.inx.txt: <helper_extension>org.inkscape.output.ps</helper_extension> svg_and_media_zip_output.inx: <helper_extension>org.inkscape.output.svg.inkscape</helper_extension> svgz_output.inx: <helper_extension>org.inkscape.output.svg.inkscape</helper_extension>
Aaron
On Tue, 2008-04-15 at 21:41 -0500, Aaron Spike wrote:
bulia byak wrote:
On Tue, Apr 15, 2008 at 3:20 PM, bulia byak <buliabyak@...400...> wrote:
I think it makes sense, given the importance of PDF capabilities in our marketing and general perception. Can you please take care of that
- I'm just not sure what is involved in this?
Also: I tried to hook up ps2pdf but Inkscape expects to get SVG from an extension, and fails instead of running the PDF import extension. Is it fundamentally impossible to chain input extensions or am I doing something wrong?
I think there is something called helpers.
Aaron is correct here. I just looked at the script.cpp to ensure that the code is there for this, and it does look to be. But, I can't think of any extensions that we've had that didn't dead-end at SVG at some point :)
--Ted
On Wed, Apr 16, 2008 at 8:32 AM, Alexandre Prokoudine
Are you sure you don't want to use libspectre? ;-)
afaik it's just an interface to the same ghostscript, so what's the advantage?
On Wed, 2008-04-16 at 12:55 -0300, bulia byak wrote:
On Wed, Apr 16, 2008 at 8:32 AM, Alexandre Prokoudine
Are you sure you don't want to use libspectre? ;-)
afaik it's just an interface to the same ghostscript, so what's the advantage?
Though I'm not 100% sure, my guess is that you're not going through an intermediary format that supports different features.
--Ted
On Wed, Apr 16, 2008 at 5:30 PM, Ted Gould <ted@...11...> wrote:
Though I'm not 100% sure, my guess is that you're not going through an intermediary format that supports different features.
You mean it can create SVG? I don't see any mention of that.
In any case, PDF is a superset of PS for our purposes, so using it as an intermediary format is not much of a problem.
Someone just filed a bug on this exact topic, so I've assigned it to Bulia and tagged it "eps importing"
https://bugs.launchpad.net/inkscape/+bug/218698
I hope this helps,
Rygle.
Better late than never... Stephen Silver has created a generic Python module for running external convertors for import which is supposed to work on any platform (before, we had shell scripts which were troublesome on Windows). It is used for CDR input with Uniconverter, and I have used it for EPS and PS input via Ghostscript. It uses PDF as intermediate format and imports it using our Poppler PDF importer as a helper extension. As a free bonus, we get the same PDF import options dialog, which makes sense for choosing pages when a PS file had multiple pages.
There's only one prerequisite: install Ghostscript and make sure ps2pdf is in your path. The pstoedit, sketch, etc. are no longer needed.
Please test and let me know if there are any problems.
On Wed, 2008-04-16 at 15:32 +0400, Alexandre Prokoudine wrote:
On Sun, Apr 13, 2008 at 10:16 PM, bulia byak wrote:
Would anyone object if I switch PS and EPS import from using pstoedit/skconvert to this:
convert ps to pdf with ps2pdf from Ghostscript
import pdf to Inkscape?
Are you sure you don't want to use libspectre? ;-)
I think that is a good long term plan, but this is a quicker short term solution that will improve PS import.
I was hoping someone would pick up libspectre for SoC but that didn't happen :(
--Ted
participants (6)
-
Aaron Spike
-
Alexandre Prokoudine
-
bulia byak
-
Peter Moulder
-
rygle
-
Ted Gould