Comment 25 for bug 190424

Revision history for this message
su_v (suv-lp) wrote :

@sas - I think eps import could be improved - the fallback papersize of US letter really is an issue when importing EPS (sometimes even PS) into Inkscape - see

Bug #264044 in Inkscape: “inkscape19770 import/open eps clips drawings larger than sheet width”:
<https://bugs.launchpad.net/inkscape/+bug/264044>
Bug #471199 in Inkscape: “Importing EPS Clips Image”:
<https://bugs.launchpad.net/inkscape/+bug/471199>

Using a locally installed custom import extension which calls ps2pdf with an (at the moment arbitrary) bigger document size imports contents of 'test.eps' un-clipped and un-cropped into Inkscape. There the page can be resized to fit the drawing if needed. Ideally one would write a python script that obtains the correct document size from the bbox of the EPS file and hands it over to ps2pdf (similar to the EPS import dialog in GIMP which has the option to 'Try Bounding Box').

code-snippet from custom input extension script 'ps2pdf-ext-LeWitt.py'
 run('ps2pdf -sPAPERSIZE=a0 "%s" "%%s"' % sys.argv[1].replace("%","%%"), "ps2pdf")