https://bugs.freedesktop.org/show_bug.cgi?id=61658
Priority: medium
Bug ID: 61658
Assignee: [email protected]
Summary: Batch convert objects to pictures in writer documents
Severity: enhancement
Classification: Unclassified
OS: All
Reporter: [email protected]
Hardware: All
Status: UNCONFIRMED
Version: unspecified
Component: Writer
Product: LibreOffice
The biggest compatibility problem for me in Libreoffice writer is export of
charts, formulas and other objects, when saving documents in Microsoft word
copatible formats like doc or docx. The objects are not visible in word or they
are destroyed, or thay cannot be copied to other word documents, even if they
are visible (because libreoffice or openoffice.org is installed on host
machine).
Conversion of every single chart into picture is time consuming, therefore
macro command, that can do it at once (batch conversion) would be very welcome.
There is simple macro for word to convert all objects into pictures. Probably
it can be converted into Libreoffice macro code to do the same job:
Sub ConvertOLEObjectsToPicture()
Dim Item As InlineShape
For Each Item In ActiveDocument.InlineShapes
Select Case Item.Type
Case wdInlineShapeEmbeddedOLEObject, wdInlineShapeLinkedOLEObject
Item.Select
With Selection
.CopyAsPicture
.Delete
.PasteSpecial DataType:=wdPasteMetafilePicture
'.ShapeRange.WrapFormat.Type = wdWrapTopBottom
End With
End Select
Next
End Sub
Origin:
http://answers.microsoft.com/en-us/office/forum/office_2010-customize/how-to-convert-all-embedded-objects-in-word-to/d0b50e67-ef56-4392-8da0-9bf589dc711a
Bad thing in this macro is that it do not follows to original anchoring rules,
so anyway all converted objects should be anchored separately.
It would be reasonable to have this macro separately, probably as extension, to
be able to use in in openoffice 2.4, because all libre and open office versions
after 3 has fatal regression in exporting complex tables, therefore 2.4 has to
be used to export documents to word compatible format.
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs