jodconverter-cli set pdf export option

769 views
Skip to first unread message

marionline

unread,
Jan 9, 2011, 7:47:14 PM1/9/11
to JODConverter
Hi, I want to complete a little bash script that I have created:
https://github.com/marionline/ppt2pdf

I want to add a JPEG compression level. In the OpenOffice
documentation I found JPEG quality option. I don't understand how to
give this directive to jodconverter. I try to modify my document-
formats.xml in the jodconverter-2.2.2 directory adding this for
example:
<entry>
<string>FilterData</string>
<map>
<entry>
<string>Quality</string>
<int>50</int>
</entry>
</map>
</entry>

It doesn't work. I try to give the document-formats.xml path to -x
option of jodconverter-cli but it doesn't work.
How can I do this?

marionline

unread,
Jan 11, 2011, 6:26:15 AM1/11/11
to JODConverter
With -x option is possible to provides to JODConverter the document-
formats.xml, isn't?
Maybe it is not correct my entry? Should be correct this entry?

marionline

unread,
Jan 12, 2011, 10:39:03 AM1/12/11
to JODConverter
> > It doesn't work. I try to give the document-formats.xml path to -x
> > option of jodconverter-cli but it doesn't work.
Please, can anybody esplain me how to set jpeg quality level to
jodconverter-cli?

marionline

unread,
Jan 12, 2011, 11:08:36 AM1/12/11
to JODConverter
> Please, can anybody esplain me how to set jpeg quality level to
> jodconverter-cli?
I found the trick!! I need to add my entry in all entry family. So I
need to add my entry:
<entry>
<string>FilterData</string>
<map>
<entry>
<string>Quality</string>
<int>50</int>
</entry>
</map>
</entry>
in the presentation family if I try to convert a presentation file.
Excuse me.

anil kumar

unread,
Mar 22, 2013, 4:07:34 PM3/22/13
to jodcon...@googlegroups.com, ma...@marionline.it
Hello,

I'm converting ppts to htmls, trying to achieve a better jpg image size i.e width x height, is there an option to set it in document- 
formats.xml in the jodconverter-2.2.2.

Running on linux, using Open office 2.3.


Thanks

sleeping8

unread,
Dec 20, 2013, 10:24:47 AM12/20/13
to jodcon...@googlegroups.com, ma...@marionline.it

D:\jodconverter-2.2.2\jodconverter-2.2.2\lib>java -jar jodconverter-cli-2.2.2.jar
usage: convert [options] input-file output-file; or
               [options] -f output-format input-file [input-file...]
 -f,--output-format <arg>   output format (e.g. pdf)
 -p,--port <arg>            OpenOffice.org port
 -v,--verbose               verbose
 -x,--xml-registry <arg>    XML document format registry

I want to compress the picture ii a pdf file. libreoffice has this facility in draw. pdf file can be read directly with latest version libreoffice.best wishes
Reply all
Reply to author
Forward
0 new messages