Configure default document properties

Bug #1658970 reported by Pander
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Inkscape
Confirmed
Undecided
Unassigned

Bug Description

Please offer in Preferences a way to set default Document Properties. For example, I always manually have to enable in Page / Display the property "Border on top of drawing" and disable "Show border shadow". Can all these document properties for which this is useful to do get offered in Preferences / Document with subsections Page, Guides, Grips, Snap etc.

Check if what is going to be offered is partly supported already under Interface and if it has to move away from there or not.

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

All document properties are managed via templates, not preferences - they are specific to the drawing task (i.e. the file). You can create a custom user default template, and any number of more specific templates for new files with the preferred document properties (specific to the purpose of the template).

The current only exception is for default new grids, which is already problematic and not fully functional anymore, because the unit chosen for grid origin, spacing in the preferences are global, and do not adjust to the individual document's properties.

tags: added: preferences templates
Revision history for this message
su_v (suv-lp) wrote :

Actually, there is a section in the preferences file (created by the preferences skeleton) which defines minimal defaults for a basic document template - IIRC it is used e.g. when importing a foreign vector file format (like PDF), or SVG files without editor metadata for Inkscape:

  <group
     id="template">
    <sodipodi:namedview
       id="base"
       pagecolor="#ffffff"
       bordercolor="#666666"
       borderopacity="1.0"
       objecttolerance="10.0"
       gridtolerance="10.0"
       guidetolerance="10.0"
       inkscape:pageopacity="0.0"
       inkscape:pageshadow="2"
       inkscape:window-width="640"
       inkscape:window-height="480" />
  </group>

https://bazaar.launchpad.net/~inkscape.dev/inkscape/trunk/view/head:/src/preferences-skeleton.h#L61

Possibly this section could be exposed in the preferences.

AFAIU the values in that preferences group do not act as 'fallback' in general for Inkscape SVG files which do not define specific properties for Inkscape (in <namedview/>). The template is used when opening files that do not provide the metadata at all.

TODO: search for older reports specific to this generic (hidden) template (I recall e.g. a request for a configurable template for PDF import).

Changed in inkscape:
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.