https://bugs.freedesktop.org/show_bug.cgi?id=46325
--- Comment #1 from Yaytay <jim.tal...@groupgti.com> 2012-02-22 00:51:05 PST --- Additional information: Some HTML files work, some don't, I haven't yet narrowed down what makes one fail. I've been comparing with the --convert-to command line and found that: These work: "C:\Program Files (x86)\LibreOffice 3.5\program\soffice.exe" --in-filter="HTML (StarOffice)" -convert-to pdf:writer_pdf_Export -outdir C:\Temp -headless "C:\Work\esb-doc-converter\src\test\resources\docs\DeaneryFixedHTML.html" -writer "C:\Program Files (x86)\LibreOffice 3.5\program\swriter.exe" --in-filter=HTML -convert-to pdf:writer_web_pdf_Export -outdir C:\Temp -headless "C:\Work\esb-doc-converter\src\test\resources\docs\DeaneryFixedHTML.html" This doesn't work: "C:\Program Files (x86)\LibreOffice 3.5\program\soffice.exe" --in-filter=HTML -convert-to pdf:writer_web_pdf_Export -outdir C:\Temp -headless "C:\Work\esb-doc-converter\src\test\resources\docs\DeaneryFixedHTML.html" In an attempt to copy what convert-to does I'm using: load properties: propValuesIn.add(new PropertyValue("FilterName", -1, filter.name, PropertyState.DIRECT_VALUE)); propValuesIn.add(new PropertyValue("ReadOnly", -1, true, PropertyState.DIRECT_VALUE)); propValuesIn.add(new PropertyValue("OpenNewView", -1, true, PropertyState.DIRECT_VALUE)); propValuesIn.add(new PropertyValue("Silent", -1, true, PropertyState.DIRECT_VALUE)); propValuesIn.add(new PropertyValue("UpdateDocMode", -1, 0, PropertyState.DIRECT_VALUE)); propValuesIn.add(new PropertyValue("Hidden", -1, true, PropertyState.DIRECT_VALUE)); propValuesIn.add(new PropertyValue("MediaType", -1, inputFileType.mediaType, PropertyState.DIRECT_VALUE)); propValuesIn.add(new PropertyValue("MacroExecutionMode", -1, 0, PropertyState.DIRECT_VALUE)); and save properties: outputProperties.put("FilterName", "writer_pdf_Export"); For the filters I've tried both "HTML" and "HTML (StartOffice)" for load and "writer_web_pdf_Export" and "writer_pdf_Export" for save. -- Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. _______________________________________________ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs