Ask Your Question

psg's profile - activity

2016-03-12 22:57:15 +0200 received badge  Famous Question (source)
2016-01-27 11:14:27 +0200 received badge  Notable Question (source)
2016-01-27 11:14:27 +0200 received badge  Popular Question (source)
2015-12-03 19:33:03 +0200 received badge  Famous Question (source)
2015-12-03 19:28:53 +0200 received badge  Editor (source)
2015-12-03 19:24:20 +0200 asked a question com.sun.star.uno.RuntimeException "Could not create system bitmap!"

Hi,

I run LibreOffice dev version 4.4.4.0.0+ Build ID: d276993a1b60f66ce4322c29709c0c3907977663 in a headless mode - soffice.exe -accept="socket,host=0.0.0.0,port=8100;urp;StarOffice.ServiceManager" -headless -nodefault -nofirststartwizard -nolockcheck -nologo -norestore

A separate web app requests a conversion of file.docx to file.pdf followed by a print command and I got (for now just one time):

Caused by: com.sun.star.uno.RuntimeException: Could not create system bitmap!
    at com.sun.star.lib.uno.environments.remote.Job.remoteUnoRequestRaisedException(Job.java:161)
    at com.sun.star.lib.uno.environments.remote.Job.execute(Job.java:125)
    at com.sun.star.lib.uno.environments.remote.JobQueue.enter(JobQueue.java:319)
    at com.sun.star.lib.uno.environments.remote.JobQueue.enter(JobQueue.java:288)
    at com.sun.star.lib.uno.environments.remote.JavaThreadPool.enter(JavaThreadPool.java:80)
    at com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge.sendRequest(java_remote_bridge.java:619)
    at com.sun.star.lib.uno.bridges.java_remote.ProxyFactory$Handler.request(ProxyFactory.java:142)
    at com.sun.star.lib.uno.bridges.java_remote.ProxyFactory$Handler.invoke(ProxyFactory.java:123)
    at com.sun.proxy.$Proxy122.print(Unknown Source)
    at com.as.beacons.srv.cmd.util.office.impl.OfficeMgrImpl.printDocument(OfficeMgrImpl.java:417)
    at com.as.beacons.srv.cmd.util.office.impl.OfficeMgrImpl.convert(OfficeMgrImpl.java:166)

The document is a simple one containing only text. The exception is thrown on the last line of the following code:

XPrintable xPrintable = UnoRuntime.queryInterface(XPrintable.class, document);
Map<String, Object> props = new HashMap<String, Object>();
props.put("Name", printerName);
xPrintable.setPrinter(toUnoProperties(props));
props.clear();
props.put("Wait", true);
props.put("CopyCount", copyCount);
xPrintable.print(toUnoProperties(props));

What could be the reason for this exception? I couldn't find any information on the web or in libreoffice forums.

2015-08-07 13:59:25 +0200 received badge  Notable Question (source)
2015-08-07 13:59:25 +0200 received badge  Popular Question (source)
2015-05-24 00:33:22 +0200 answered a question docx watermark shows under all content in LibreOfficeDev 4.4.4

I found a work-around - i removed all <w:shd w:color="auto" w:fill="auto" w:val="clear"/> tags which made all paragraphs and table cells transparent

2015-05-23 23:21:36 +0200 asked a question docx watermark shows under all content in LibreOfficeDev 4.4.4

Hi, I am trying to display a water mark in a document that can grow to multiple pages. The requirement is to use docx, so I am stuck with than. I use docx4j to edit he document and a headless LibreOffice to save as PDF and print.

The problem is that LibreOffice renders the watermark under all content if it is in the header or in the footer. If the watermark is in the body (document.xml), LibreOffice shows it on top but as expected it renders it on the first page only.

Is this a bug or is there a trick with the docx OpenXML tags to display it properly?

I am using the dev version as it fixes another problem with headless socket exceptions: Version: 4.4.4.0.0+ Build ID: d276993a1b60f66ce4322c29709c0c3907977663 TinderBox: Win-x86@42, Branch:libreoffice-4-4, Time: 2015-05-20_15:31:13

Thank you in advance