View Issue Details

IDProjectCategoryView StatusLast Update
0017438ScribusImport / Exportpublic2025-06-05 06:36
Reporterale Assigned To 
PrioritynormalSeverityminorReproducibilityN/A
Status newResolutionopen 
Product Version1.7.1.svn 
Summary0017438: [PATCH] Export selection
DescriptionFor the export that matter (SVG, image, EPS) it should be possible to optionally export the current selection only.
TagsNo tags attached.
PatchYes

Relationships

related to 0003031 new Add an option to export a selection as bitmap, EPS, or SVG 
child of 0017541 new Metabug: Various features and bug fixes before the release of Scribus 1.8 

Activities

ale

2025-03-06 19:07

manager   ~0052165

Here is a patch for exporting the selection to SVG

- The option is only active, if there is a selection and all its items are on the same page (it might be possible to relax the second condition)
- It creates SVG layers for each Scribus layer in the selection (if items from other layers can be selected)
- I've refactored a little bit of code that is used by both the export of the whole page and the one for the selection
export-selection-to-svg.diff (8,198 bytes)   

ale

2025-03-06 19:13

manager   ~0052167

Further work to be done once the patch is accepted:

- add the option to the scripter
- think if it's useful to add the same option to the export to bitmaps (it's probably ok if it's easy; otherwise a screenshot or an export from Inkscape can be enough)
- check if the same code can be used to copy a selection from scribu and paste it in inkscape (does it need a new command "copy as SVG" or can we simply create create SVG when Scribus puts multiple items in an "external" clipboard? ... I must admit that I have no clue about how copy pasting between applications works)

ale

2025-03-27 08:45

manager   ~0052347

any feedback?

Issue History

Date Modified Username Field Change
2025-03-06 07:25 ale New Issue
2025-03-06 19:07 ale Note Added: 0052165
2025-03-06 19:07 ale File Added: export-selection-to-svg.diff
2025-03-06 19:09 ale Summary Export selection => [PATCH] Export selection
2025-03-06 19:09 ale Patch No => Yes
2025-03-06 19:13 ale Note Added: 0052167
2025-03-27 08:45 ale Note Added: 0052347
2025-05-17 07:33 ale Relationship added related to 0003031
2025-06-05 06:36 ale Relationship added child of 0017541