Description: Using Java API, I am trying to change a Writer document setting (EmbedFonts). There is no reference to either com.sun.star.document.Settings or com.sun.star.tex.DocumentSettings on the API, although they can be found on the online JavaDocs. Using XMultiServiceFactory.createInstance returns a null object. I tried the MRI extension, and the service is no listed there either. Steps to Reproduce: 1- Bootstrap LibreOffice from the Java API, load a document. 2- Using a XMultiServiceFactory object, try to call xMSF.createInstance("com.sun.star.tex.DocumentSettings"); Actual Results: Call returns null. Expected Results: Call should return a DocumentSettings object. Reproducible: Always User Profile Reset: No Additional Info: User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36
(In reply to Fernando Volquind from comment #0) > 2- Using a XMultiServiceFactory object, try to call > xMSF.createInstance("com.sun.star.tex.DocumentSettings"); You have a typo here. It should be "text" not "tex".
(In reply to Maxim Monastirsky from comment #1) > You have a typo here. It should be "text" not "tex". Thanks for pointing this out. Just reviewed my code and it is correct there (and the bug still applies); now I can't remember why I hand typed this here... Is there any way to edit the original post?
I can't reproduce the problem under Fedora 27 with LO 5.4.4.2-1.fc27. This code works perfectly for me: XComponent xComp = xCLoader.loadComponentFromURL("private:factory/swriter", "_blank", 0, new PropertyValue[0]); XMultiServiceFactory xMSF = UnoRuntime.queryInterface(XMultiServiceFactory.class, xComp); Object xSettings = xMSF.createInstance("com.sun.star.text.DocumentSettings"); XPropertySet xDocProps = UnoRuntime.queryInterface(XPropertySet.class, xSettings); xDocProps.setPropertyValue("EmbedFonts", new Boolean(true)); Does this minimal example work for you? (In reply to Fernando Volquind from comment #2) > Is there any way to edit the original post? No way currently.
Dear Bug Submitter, This bug has been in NEEDINFO status with no change for at least 6 months. Please provide the requested information as soon as possible and mark the bug as UNCONFIRMED. Due to regular bug tracker maintenance, if the bug is still in NEEDINFO status with no change in 30 days the QA team will close the bug as INSUFFICIENTDATA due to lack of needed information. For more information about our NEEDINFO policy please read the wiki located here: https://wiki.documentfoundation.org/QA/Bugzilla/Fields/Status/NEEDINFO If you have already provided the requested information, please mark the bug as UNCONFIRMED so that the QA team knows that the bug is ready to be confirmed. Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-NeedInfo-Ping-20180703
Dear Bug Submitter, Please read this message in its entirety before proceeding. Your bug report is being closed as INSUFFICIENTDATA due to inactivity and a lack of information which is needed in order to accurately reproduce and confirm the problem. We encourage you to retest your bug against the latest release. If the issue is still present in the latest stable release, we need the following information (please ignore any that you've already provided): a) Provide details of your system including your operating system and the latest version of LibreOffice that you have confirmed the bug to be present b) Provide easy to reproduce steps – the simpler the better c) Provide any test case(s) which will help us confirm the problem d) Provide screenshots of the problem if you think it might help e) Read all comments and provide any requested information Once all of this is done, please set the bug back to UNCONFIRMED and we will attempt to reproduce the issue. Please do not: a) respond via email b) update the version field in the bug or any of the other details on the top section of our bug tracker Warm Regards, QA Team MassPing-NeedInfo-20180731
Really wonderful to read the article! Java is a cool programming language that can be used to develop applications or program computers and students can visit https://www.resumesplanet.com/cv-writing.php to solve their educational problems in an effective way. Java was designed by Sun Microsystems, who later merged with Oracle corporation. Java has been one of the most widely used programming languages.
Thanks for sharing this wonderful post. https://www.google.com/
UNO has once again proven its commitment to excellence by offering unmatched services to address the absence of Document Settings in their API. For developers and users seeking comprehensive control over document formatting and configurations, this is a game-changer. With UNO's innovative solutions, managing document settings has never been easier, providing a seamless and efficient experience.As businesses and individuals strive for proficiency in English communication, they need tools that go beyond simple grammar checks. For those aiming to improve their language skills to advanced levels, https://grammarerror.com/intro/test-your-english-level-c1-c2 serves as an excellent resource. By assessing your English level at C1-C2 proficiency, you can better understand your strengths and areas for growth, refining your language abilities to meet professional and academic demands.