First contribution - looking to improve eps -> svg conversion ( or eps import ) - kickstart needed

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

First contribution - looking to improve eps -> svg conversion ( or eps import ) - kickstart needed

Andrea Bogazzi
Hi Everyone,
I was looking into eps -> svg conversion and inkscape does an almost perfect job if it wasn't that it trash layers information and group information.
I started to dig into the code to figure out if it was something i could look into and try to improve, i found so far this folder that seems to handle the relevant code:

https://gitlab.com/inkscape/inkscape/tree/master/src/extension/internal/pdfinput

Is there anyone able to give me a quick input to know if that is the correct code to look at, or if not point me to the right code files?

Also does anyone have information of why this feature is currently not supported, if is a matter of use case missing, if just no one built it or if is more about some technical problem that has been already discussed and discarded?

To be honest i remember in the past opening some pdf with inkscapes and having multiple ungrouping operations to do before hitting the single objects, but as of now, if i create an eps with illustrators with group or layers and then i import it in inkscape, i get a flat list of objects.

So maybe i just remember wrong.

I m not by any mean a c++ expert, i have svg and pdf knowledge and some c++ coding, but since i need this feature i would like at least to give it a shot.

Andrea

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Inkscape-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/inkscape-devel
Reply | Threaded
Open this post in threaded view
|

Re: First contribution - looking to improve eps -> svg conversion ( or eps import ) - kickstart needed

Tavmjong Bah

Hi Andrea,

Inkscape uses 'ps2pdf' to convert the eps file to pdf and then uses the pdf input extension to read in the pdf. So that is the code to look at.

PostScript and Pdf don't really have the concept of layers. They do have gsave/grestore pairs.

Can you attach an eps test file?

Tav

----- Original Message -----
| From: "Andrea Bogazzi" <[hidden email]>
| To: "Inkscape-Devel" <[hidden email]>
| Sent: Tuesday, July 24, 2018 5:10:52 AM
| Subject: [Inkscape-devel] First contribution - looking to improve eps -> svg conversion ( or eps import ) - kickstart
| needed
|
|
|
| Hi Everyone,
| I was looking into eps -> svg conversion and inkscape does an almost
| perfect job if it wasn't that it trash layers information and group
| information.
| I started to dig into the code to figure out if it was something i
| could look into and try to improve, i found so far this folder that
| seems to handle the relevant code:
|
| https://gitlab.com/inkscape/inkscape/tree/master/src/extension/internal/pdfinput
|
| Is there anyone able to give me a quick input to know if that is the
| correct code to look at, or if not point me to the right code files?
|
| Also does anyone have information of why this feature is currently
| not supported, if is a matter of use case missing, if just no one
| built it or if is more about some technical problem that has been
| already discussed and discarded?
|
| To be honest i remember in the past opening some pdf with inkscapes
| and having multiple ungrouping operations to do before hitting the
| single objects, but as of now, if i create an eps with illustrators
| with group or layers and then i import it in inkscape, i get a flat
| list of objects.
|
| So maybe i just remember wrong.
|
| I m not by any mean a c++ expert, i have svg and pdf knowledge and
| some c++ coding, but since i need this feature i would like at least
| to give it a shot.
|
| Andrea
| ------------------------------------------------------------------------------
| Check out the vibrant tech community on one of the world's most
| engaging tech sites, Slashdot.org! http://sdm.link/slashdot
| _______________________________________________
| Inkscape-devel mailing list
| [hidden email]
| https://lists.sourceforge.net/lists/listinfo/inkscape-devel
|

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Inkscape-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/inkscape-devel