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 "Could not create system bitmap!"


I run LibreOffice dev version Build ID: d276993a1b60f66ce4322c29709c0c3907977663 in a headless mode - soffice.exe -accept="socket,host=,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: Could not create system bitmap!
    at com.sun.proxy.$Proxy122.print(Unknown Source)

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);
props.put("Wait", true);
props.put("CopyCount", copyCount);

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: Build ID: d276993a1b60f66ce4322c29709c0c3907977663 TinderBox: Win-x86@42, Branch:libreoffice-4-4, Time: 2015-05-20_15:31:13

Thank you in advance