https://bugs.documentfoundation.org/show_bug.cgi?id=171222
Bug ID: 171222
Summary: Open .doc file .wmf imagepath is incorrect
Product: LibreOffice
Version: unspecified
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: Writer
Assignee: [email protected]
Reporter: [email protected]
Created attachment 206037
--> https://bugs.documentfoundation.org/attachment.cgi?id=206037&action=edit
.doc file with images links with .jpg and .wmf
I open the 3-02_BER26_Tour2_Museumsinsel.doc
file with LibreOffice Writer and save it as .odt.
I close it and reopen it.
the .wmf Path is something like that:
'file:///home/entwickler/Digitaleditions/berlin_city/Berlin_DocKommentar/D:%5CDigitaleditions%5Cberlin_city%5CMapseps_Berlin%5CMuseumsinsel.wmf'
where "%5C" = "/"
The image paths with .jpg are converted correctly and the images can be seen in
the .odt, but the image paths for the .wmf files are saved incorrectly.
Therefore, they cannot be seen in the .odt file.
If I set them via code
graphicObjects = self.document.getGraphicObjects()
graphicObject.setPropertyValue(“GraphicURL”, repairedUrl)
I cannot read them later. I saved them relatively and absolutely for testing
purposes, but in both cases GraphicURL was no longer readable, i.e., None.
The process was to change the path using code, save the document, and reopen
it.
Then you can see the .wmf files, but GraphicURL is None and can no longer be
read.
Translated with DeepL.com (free version)
--
You are receiving this mail because:
You are the assignee for the bug.