Difference between revisions of "Multipage"

From Inkscape Wiki
Jump to navigation Jump to search
m (Mark as outdated (multipage added in v1.2))
(Updated new relevant inforamtion about a implmentation in inkscape. and deleted old outdated information not sure if this is correct so if old info is needed we can put it back later)
Line 1: Line 1:
{{Outdated}}
Multipage feature was added in [[Inkscape 1.2]] . In front end it was implmneted as a new tool Pages Tool in a toolbar. Pages are saved in SVG in nameveiw tag  as a custom inkscape spesific propertie (this does nto work on web and its not part of svg standard).


==Multipage support ==
First page is svg viewbox


Currently, Inkscape does '''not''' have multipage support. The main reason is that the current SVG standard does not support multipage documents. This feature was proposed in the SVG revision 1.2, but for now got dropped in the next coming version SVG 2.0.
=== Page Tool ===
The new Page tool (lowest button in the tool bar) allows you to create multi-page Inkscape documents, and to import as well as export multi-page PDF documents. (MR #3486, MR #3785, MR #3821). It supports overlapping pages and pages of different sizes in a single document.


[[http://wiki.inkscape.org/wiki/index.php/SVG_WorkingGroup#Multipage_document_support SVG 2.0 draft on multiple pages]]
==== Importing (Merge) / Exporting (Split)[edit | edit source] ====
Multi-page documents can be imported with their pages appended as new pages in the existing document. Select the correct option in the window that pops up to append pages rather than import shapes as usual. This can be used to merge multiple pdf files.


[[http://www.w3.org/TR/2004/WD-SVG12-20041027/multipage.html SVG 1.2 proposal for multiple pages]].
Exporting multiple pages can be done in the new export dialog in batch mode. As well as each individual page in the Single export tab. Use this to split into single page svg or pdf documents. ''Note: it's not yet possible to select a sub-selection of multiple pages to export yet.''
 
'''Tool usage:'''
 
* To '''create a new page''' either:
** click-and-drag on the canvas
** or click on the 'Create a new page' button in the tool controls
* To '''delete a page''', click on the page to select it, then click on the button <code>Delete selected page</code> or use the <code>Del</code> or <code>Backspace</code> keys.
* To '''move a page''' on the canvas, click-and-drag it to the desired new position. If the option to <code>Move overlapping objects</code> is active, this will also move any objects that touch the page along with it.
* To '''change a page's size''':
** click on a page whose size you want to change to select it, then drag the square-shaped handle in its bottom right corner
** click on the page, and then choose one of the predefined sizes in the page size dropdown, or enter your size values for the 'Custom' option, by typing them into the field in the form of <code>10cm x 15cm</code>
* To '''fit a page''' to:
** the size of '''the drawing''': make sure to have no object selected before you switch to the Page tool. Then select a page by clicking on it, then click on the button 'Fit page to drawing or selection' in the tool controls
** '''a selected object''': first select the object(s) with the selection tool, then switch to the Page tool, click on a page to select it, then press the the button 'Fit page to drawing or selection' in the tool controls
* To '''add a label''' to your page, select the page by clicking on it, then enter a name or label for it into the text field in the page tool's tool controls. Labels are always visible, no matter which tool is currently selected.
* To '''export a multi-page PDF''' file, use <code>File → Save a copy … → PDF</code>. This will automatically include all pages. If you only want to export a certain page, or a selection of pages, the updated [[Release notes/1.2#Export%20Dialog|<code>File → Export</code> dialog]]'s batch export tab can help you get that done (one file per page).
* To '''open or import a multi-page PDF or AI (pdf-based)''' file, use <code>File → Open/Import → select file name → choose to import 'All' pages</code> [Known issue: 'import' moves content of some pages to some far out place in the drawing]
* You can navigate pages with page navigator on that will show up in right down corner of status bar
 
''Note: Multi-page SVG files are an Inkscape-specific concept. Web browsers will only display the first page of your document, which corresponds to the 'viewbox' area of the SVG file.''


This page discusses how the feature can (or should) be implemented:


*There should be multiple pages within a document.
*There are two contrary implementations in the real world:
**distribute pages around the graphics elements - the Adobe way
**distribute graphics elements around the pages - how Corel does it and how SVG proposes to do it
*New problems arise when saving to singlepage file formats (jpg, png, etc).


==Multipage in the SVG 1.2 standard (dropped) ==
==Multipage in the SVG 1.2 standard (dropped) ==
Line 22: Line 38:
*The SVG content typically defines a page dimension or aspect ratio in the topmost svg element and its viewBox. The viewBox transformation applies to printed SVG in the same way as screen display.
*The SVG content typically defines a page dimension or aspect ratio in the topmost svg element and its viewBox. The viewBox transformation applies to printed SVG in the same way as screen display.
*The orientation of each page element can be controlled by the page-orientation property. This enables the content to define whether a portrait or landscape mode is used for display and printing.
*The orientation of each page element can be controlled by the page-orientation property. This enables the content to define whether a portrait or landscape mode is used for display and printing.
==Multipage à la Corel ==
*There is a list of pages as tabs on the lower side of the drawing window.
*All pages share the same page properties.
*A '''master page''' contains elements that are visible on all other pages: drawings, markers
* In an object browser, pages and layers are integrated.
See [[http://wiki.inkscape.org/wiki/images/Corel_pages.PNG this screeshot]].
==Multicanvas (similar to multi-Artboard on adobe illustrator cs4). ==
Multicanvas solution is not the same as pages and can't follow the SVG pageSet spec. The multicanvas, as the multi-artboard, can (frequently must) have different sizes and can be freely placed on the 2D space. A canvas may overlap a part other canvas.
Each canvas can be printed independently and that feature helps to unify the art conception for the most applications of an art project.
*see this adobe tutorial [[http://www.adobe.com/designcenter/illustrator/articles/lrvid4016_ai.html here]]
*there is an [[http://www.vimeo.com/2503097 video]] by Valessio Brito presenting an UI mockup how multipage can be handled in inkscape
The multicanvas feature may be incompatible with the multipage feature, so, the user may chose the working mode on the "document properties" dialog. The default must be multipage and that will show the page tabs on the interface and the "new page" button, when selecting multicanvas that will show the canvas controls and the "new canvas" button.
Feature request registered: https://bugs.launchpad.net/inkscape/+bug/671081


==Inkscape-pages extension ==
==Inkscape-pages extension ==
Line 48: Line 44:


The design is based on using layers as the basis for pages and it's a useful hack if the svg specification will always not include pages.
The design is based on using layers as the basis for pages and it's a useful hack if the svg specification will always not include pages.
==Implementation ==
*Some planning was done in [http://www.nabble.com/Multipage-plan-td16394431.html this thread]. BROKEN LINK
*All export dialogues must get extra properties in order to handle multiple pages, e.g. for specifying not only the elements, but also the pages to be exported.
*Some prelim work has landed: https://gitlab.com/inkscape/inkscape/commit/a6162e760c7eab68fc65a4ccc879e73ab0c20c1b

Revision as of 09:09, 30 July 2022

Multipage feature was added in Inkscape 1.2 . In front end it was implmneted as a new tool Pages Tool in a toolbar. Pages are saved in SVG in nameveiw tag as a custom inkscape spesific propertie (this does nto work on web and its not part of svg standard).

First page is svg viewbox

Page Tool

The new Page tool (lowest button in the tool bar) allows you to create multi-page Inkscape documents, and to import as well as export multi-page PDF documents. (MR #3486, MR #3785, MR #3821). It supports overlapping pages and pages of different sizes in a single document.

Importing (Merge) / Exporting (Split)[edit | edit source]

Multi-page documents can be imported with their pages appended as new pages in the existing document. Select the correct option in the window that pops up to append pages rather than import shapes as usual. This can be used to merge multiple pdf files.

Exporting multiple pages can be done in the new export dialog in batch mode. As well as each individual page in the Single export tab. Use this to split into single page svg or pdf documents. Note: it's not yet possible to select a sub-selection of multiple pages to export yet.

Tool usage:

  • To create a new page either:
    • click-and-drag on the canvas
    • or click on the 'Create a new page' button in the tool controls
  • To delete a page, click on the page to select it, then click on the button Delete selected page or use the Del or Backspace keys.
  • To move a page on the canvas, click-and-drag it to the desired new position. If the option to Move overlapping objects is active, this will also move any objects that touch the page along with it.
  • To change a page's size:
    • click on a page whose size you want to change to select it, then drag the square-shaped handle in its bottom right corner
    • click on the page, and then choose one of the predefined sizes in the page size dropdown, or enter your size values for the 'Custom' option, by typing them into the field in the form of 10cm x 15cm
  • To fit a page to:
    • the size of the drawing: make sure to have no object selected before you switch to the Page tool. Then select a page by clicking on it, then click on the button 'Fit page to drawing or selection' in the tool controls
    • a selected object: first select the object(s) with the selection tool, then switch to the Page tool, click on a page to select it, then press the the button 'Fit page to drawing or selection' in the tool controls
  • To add a label to your page, select the page by clicking on it, then enter a name or label for it into the text field in the page tool's tool controls. Labels are always visible, no matter which tool is currently selected.
  • To export a multi-page PDF file, use File → Save a copy … → PDF. This will automatically include all pages. If you only want to export a certain page, or a selection of pages, the updated File → Export dialog's batch export tab can help you get that done (one file per page).
  • To open or import a multi-page PDF or AI (pdf-based) file, use File → Open/Import → select file name → choose to import 'All' pages [Known issue: 'import' moves content of some pages to some far out place in the drawing]
  • You can navigate pages with page navigator on that will show up in right down corner of status bar

Note: Multi-page SVG files are an Inkscape-specific concept. Web browsers will only display the first page of your document, which corresponds to the 'viewbox' area of the SVG file.


Multipage in the SVG 1.2 standard (dropped)

  • All pages are contained within a single pageSet element. A pageSet may contain any number of page elements. Each page element defines a single container of graphical objects.
  • In a screen-based user agent, only one page element is displayed at any time on the main canvas.
  • The SVG content typically defines a page dimension or aspect ratio in the topmost svg element and its viewBox. The viewBox transformation applies to printed SVG in the same way as screen display.
  • The orientation of each page element can be controlled by the page-orientation property. This enables the content to define whether a portrait or landscape mode is used for display and printing.

Inkscape-pages extension

Developer lixapopescu created a inkscape extension in 2011 which hacked into inkscape some multi page support. https://sourceforge.net/projects/inkscape-pages/

The design is based on using layers as the basis for pages and it's a useful hack if the svg specification will always not include pages.