I've an issue when a try to convert an ODT file to PDF.
What happens is that, when the text spans across two pages part of it goes hidden by the header logo.
Here my java snippet code:
Code: Select all
public void convertToPDF(String sourceURL, String destURL, Map<String, Object> properties) throws Exception {
XComponentLoader xComponentLoader = (XComponentLoader) UnoRuntime.queryInterface(XComponentLoader.class, this.xDesktop);
XComponent xComponent = xComponentLoader.loadComponentFromURL(sourceURL, "_blank", 0,
getPropertyValues(new Property[] { new Property("Hidden", new Boolean(true)) }));
XStorable xStorable = (XStorable) UnoRuntime.queryInterface(XStorable.class, xComponent);
xStorable.storeToURL(destURL,
getPropertyValues(new Property[] { new Property("FilterName", "writer_pdf_Export"),
new Property("FilterData", getPropertyValues(properties)) }));
xComponent.dispose();
}
Here the pdf file:
Has anyone ever seen this behavior?
If anyone knows please help me.
Thanks.
Kind regards,
Michele