Question: i am working on [LFS](http://www.linuxfromscratch.org/lfs/view/stable/chapter04/creatingtoolsdir.html), and getting this error creating symbolic links. i checked this [link](https://askubuntu.com/questions/524606/creating-a-symbolic-link-to-a-directory) but no help, also googled but nothing works. 

```
# ln -sv $LFS/tools /
‘/tools’ -> ‘/mnt/lfs/tools’

```

in root directory, i see a file *tools*, with link symbol on it. double clicking throws an error *"the link cannot be used because its target /mnt/tools does not exist"*

also checked env variable 

```
# echo $LFS
/mnt/lfs

```

any help would be awesome.

thanks

Answer: 
You can save as the image as pdf from inkscape directly using the highest 
resolution (dpi), say 600, of the printer you plan to use for printing.

Afterwards, you can use imagemagick (command convert) to crop the upper and lower parts of the image independently into two different pdf files. For instance (typed on a terminal): 

```
convert askUbuntu.pdf -crop 100%x50% +repage askUbuntuSplit.pdf

```

You can then split it into individual pdf files using:

```
pdftk filename.pdf burst

```

I presume imagemagick and pdftk are already installed.
SVG is an XML, you can use this python script to generate slices. Actually, it does not slice it, but uses same copy of input file with different values of `viewBox` to show only target area.

`svg_slice.py`

```
#!/usr/bin/env python

import sys, os.path
import xml.etree.ElementTree as ET

fin=sys.argv[-1]
hsplit=int(sys.argv[1])
vsplit=int(sys.argv[2])

tree = ET.parse(fin)
root = tree.getroot()

hstep=float(root.attrib['width'])/hsplit
vstep=float(root.attrib['height'])/vsplit

root.attrib['width']=str(hstep)
root.attrib['height']=str(vstep)

for i in range(hsplit):
    for j in range(vsplit):
        root.attrib['viewBox']='%.4f %.4f %.4f %.4f' % (i*hstep, j*vstep, hstep, vstep)
        tree.write('cell_%i-%i_%s' % (i,j,os.path.basename(fin)))

```

1. Generate slices

```
python svg_slice.py 2 1 askUbuntu.svg

```

ie: 2x1 grid
2. Then use Inkscape to export PDF for each slice/cell

```
for i in $(ls cell_*); do inkscape $i --export-pdf=$i.pdf; done;

```

`ls cell_*`

```
cell_0-0_askUbuntu.svg      cell_1-0_askUbuntu.svg
cell_0-0_askUbuntu.svg.pdf  cell_1-0_askUbuntu.svg.pdf

```