Cosmin Popescu - 2011-06-25

inkscape-pages 1.0

    Pages support for Inkscape. Inkscape has now pages!
   
    Author: Cosmin Popescu


About:

This is a free program. You can use it, distribute it, modify it,
do what ever you want with it. Any suggestions, reclamations,
bug reports or any other ideas that you may have, please send them
at cosminadrianpopescu@gmail.com

This extension is tested only on Ubuntu 11.04, but normally should
work on any platform on which Inkscape works. Being written in
Python, there shouldn't be any problem with it. It enables multi
page support for Inkscape. One of the very important features
Corel Draw has and Inkscape didn't had yet.

Features:

  - insert pages
  - insert page margins
  - use a master page
  - different master page for left and right pages (odd or even pages)
  - move object from one page to another
  - rearange pages
  - remove pages
  - export to PDF
  - navigate through pages

Important:

If you want to also use layers with this extension, please create them using
the "Add new layer" option from the extension. Once created the layers, do not
drag them on out of the current page layer. This is the only restriction.
Otherwise, you can use the layers in any way.
 
Setting the shortcuts:


Edit the keys.xml file and set your shortcuts

Installation instructions:

In a command line, do the following:

     ----------------------------------------
     foo$ tar -xvf inkscape-pages-0.1.tar.gz
     foo$ cd inkscape-pages-0.1
     foo$ sudo ./install
     ----------------------------------------
    
Basically, what this does is copying all the .inx and .py files from the modules folder in the inkscape
extensions directory, then add in the keys/default.xml file the content of the
./keys.xml file. Then, just restart the inkscape. You should have the Table sub-menu
in the Extensions menu.

If, for any reasons, the install will fail, or if you are on a Windows system,
you can do all this manually. Copy the .inx and .py files from the modules folder
inside the inkscape extensions directory, then edit the keys/defaults.xml
(on Ubuntu this folder is located in /usr/share/inkscape folder) and add the
content of the keys.xml folder. That's it. Restart the inkscape and you're done.

How to use it:

Of course, before using the pages feature, you have to create a multi page document.
From the "Extensions" menu, select Pages and then Create multi page document.
A document with a single page will be created. If you previously had anything on the
document, everything will be copied on the newly created page.

You can observe the page number at any time in the status bar, at the current layer.
This will always show the current page.

I've set shortcuts for the most important functions: navigation and insertion of new
pages. Since the PgUp and PgDn shortcuts are used by Inkscape, I set the navigation
on the Ctrl + PgUP and Ctrl + PgDn. You can change these shortcuts and also you can
add your own. Just check the .inx files to see each function id and then insert a new
line in the keys.xml file before installing it.

Once the document is created, everything should be straight forward. You can easily
navigate through the pages using the shortcuts, you can add new pages, remove pages,
add page margins, move objects from one page to another (using the "Move selected
objects" option) or reorder the pages (using the "Move current page" option).

Master page

The master page is used to display elements in all pages. To edit it, just navigate to it
(Extensions -> Pages -> Go to -> Master page). Everything you insert here, will be
visible on all pages. If you want to insert page numbers, create a new text area using
the text tool in which you have to type the text "#page#". Of course you could also
type anything next to the page text. Only the page text will be transformed according to each
page, while everything else will be untouched.

For example, if you type "This is page #page#", on the first page this will appear as
"This is page 1", on the second page this will appear as 'This is page 2" and so on.

If you want different master pages for left and right pages (odd and even pages),
while editing the master page, select the objects that you want to appear only on
left pages or only on right pages and then click Extensions -> Pages -> Master Page ->
Display selected objects in…

While editing, if you want to see which objects appear on which pages, just use the
filtering option (Extension -> Pages -> Master page -> Filter).

Printing

Of course, if you use the Inkscape print option, only the current page will be printed.
In order to print the full document, you will have to use the Export to PDF option and
then to print the generated PDF document.

By default, the exporting will generate a PDF file for each of the indicated pages your home
folder in a subfolder called pages-export. Depending on the Windows version, the home folder could
be under C:\Users\ or in C:\Documents and Settings\.

If you have pdfjam
(http://www2.warwick.ac.uk/fac/sci/statistics/staff/academic-research/firth/software/pdfjam/#download)
or pdftk (http://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/)
installed you will also be able to create a single document.
pdfjam is specific for Linux systems, while pdftk can be used for Linux, Windows and Mac.
The default location will be /tmp/exported_pages.pdf. If you want to modify the
location, just modify the tool command from the export parameters window.

For Windows users: You can download pdftk from http://www.pdflabs.com/docs/install-pdftk/.
Follow the instructions to install it and save the exe file in a PATH folder. Otherwise, modify the tool
text box to indicate the folder where pdftk is saved. Then just modify the output path and you're done.

For example, if you save the pdftk exe file in d:\temp\pdftk and you want to save the resulted document
in d:\pdfs, then the tool text box should look like this:

d:\temp\pdftk\pdftk %i cat output d:\pdfs\output.pdf

If you don't have or don't want to use this tool, you could use the Adobe Acrobat Professional
and join all the files generated in the pages-export folder in a single file.