Apache OpenOffice (AOO) Bugzilla – Issue 56084
swf export of selected object exports whole page
Last modified: 2021-05-27 23:01:56 UTC
When i select an object and export it to svg or swf, the export file contains the whole page with all objects and paper size background, not only the selected object. Marking the "selection" tag in the export dialog seems to be without effect. It works correcly with png, eps and wmf exports, and it works correctly in version 1.1.5. Exporting to pdf exports only the selected object, this is ok, but the object is on a paper size background, which i would consider a defect too. It should set bounding box or paper size to the object size if i select the "selection" tag in the dialog. Alternatively there could be an additional tag in the export dialog for using the paper size or adjusting to object size for all export types.
For svg export the selection box is greyed out in current version, not in OOo1.1.5. AFAIK swf export does not support selected export. Reassigned.
target set.
Created attachment 73729
This issue still seems to be present in DEV300m95 - checking "Selection" when exporting to SVG still exports the entire drawing.
*** Issue 66044 has been marked as a duplicate of this issue. ***
ALG: Taking over...
ALG: Invested a bit, Svg writer has not even a concept for doing this; the implementer simply ignored that possibility (I know who it was, it was not simply not knowing this).
6 votes is not so very few, I do not see this one a "trivial" one. Real life example where selection export is necessary: I use LibO / AOO (both used to circuit each other's bugs) to draw installation layouts for process visualization. My programming system accepts .SVG drawings, and the result on the visualization panel is much better than with gif or similar. And some separate drawing elements can be used much more flexible because of nice view of resized elements. I collect all my drawings for a project in 1 document, and Page size is selected so that the drawing will match with free space on visualization panel with my default scale. But of course most drawings do not need all free space, most are much smaller, and I can use remaining place for other elements (buttons, process values, ...) But because of this bug for each drawing I export I have to copy my resulting Drawing to a new Draw document and to adapt page size to Drawing size before I can export to SVG, because big ampty margins around the drawing contents are not acceptable. That's really annoying.
IIRC these are two different export filters: main/filter/source/svg/ main/filter/source/flash It would be nice to split this bug in two separated reports.
ALG: I took a look and - sorry - this is no easy change, so it has to wait until after AOO4.0.
The content of attachment 73729 has been deleted for the following reason: Spam
-svg due to issue 124608
Swf seems a little bit different from svg export when selection shall be exported; normally swf exports all slides to a slideshow. When selection is active, it will be necessary to limit the export not only to the selection, but also to the single slide containing these. Checking basic mechanism...
Okay, swf can be done, too. I experimented and used a solution as close as possible to issue 124608. When in selection mode only the page with the selection is exported. It works with any selection. Backgrounds are left out in that mode (masterpage fill, object on MP), also as with SVG. Also the same with for now staying on keeping the page dimensions, so no translations to the exported objects. BTW this is similar to full export where normally also the objects do not cover the whole page, but the page dimension is used at export. Doing some more tests...
"alg" committed SVN revision 1585706 into trunk: i56084 added support for export selection in swf export
Done as far as selection gets exported in all scenarios - same as issue 124608 we may discuss the FullPage size export. There are args for both, but I guess swf as an animation format makes not too much sense to 'zoom' to the selection at all (and exporting a selection and thus only one page offers the proposed functionality, but is also not too useful from my POV).
Tried to work on using Range of selected objects, but the swf exporter uses a wild combination of own scalings (to twips) and metafile interpretation; that mix inclused relative mappings with MapModes which (I tried it) can currently not uniformly be mapped to transforming to the needed range. This would probably work when converting the exporter to use primitives of the objects (which would allow to work with one world transformation and a specialized renderer), but that would be too much work for now. Thus, I will keep it on that state - the selection export is supported, but not reducing export pagesize to selected object range.
Reset the assignee to the default "issues@openoffice.apache.org".
Flash is dead and gone... ;-)
Closed due to comment #19.
Furthermore, we should think about removing the code sooner or later.