There is a difference that I don't quite understand between Ooo and LibO on the document background.
With the following code:
Code: Select all
Doc = ThisComponent
StyleFamilies = Doc.StyleFamilies
PageStyles = StyleFamilies.getByName("PageStyles")
DefPage = PageStyles.getByName("First Page")
DefPage.BackGraphicURL=convertToUrl("I:\TrvOpen\Modeles\Fond-Confidentiel.png")
Xray DefPage
on OpenOffice, Xray gives this: On LibreOffice it gives: There is therefore a big difference for the BackGraphicURL property between the two suites, which is nevertheless declared of type String in libO, but which hides a complex structure considered as a graphic object.
I can no longer find the name of the image file installed in the background of the page. Apart from a FillBitmapName property which contains different things over time, at this time "Bitmap 3" I understand that this is perhaps the reference in the list of graphic objects embedded in the ZIP file.
I think the evolution serves to standardize style management but what puzzles me is that there must be a mechanism in LibreOffice to process the URL and install the image, because the assignment is done similarly (BackGraphicURL = "Image URL")
LibO also has the BackGraphic property (exactly the same as BackGraphicURL), itself containing the read-only and always empty OriginURL property....
So, in conclusion, it works, but it raises questions...
Cordially