Printer Dialogs

At least I'm not alone :wink:

M

Hi All,

I just want to explore about the filter in writer component that does the doc or xls to pdf conversion.If someone can give me the part of code or the filter that does this conversion it would be very helpful to me.Also what are the libraries that are involved in conversion.
Please give me some link from where I can get the complete knowledge on this.

Basically I want to develop my own tool in Java which would convert any word,xls or ppt kind of document to pdf format without using the direct utility of LibreOffice that does this conversion.

Any help on this would be greatly appreciated.

Thanks in advance.
Ankit

Hi :slight_smile:
You could use LibreOffice in "headless mode", ie from a command-line without opening LibreOffice at all.

Java is an increasingly vulnerable pile of mess with frequent updates in order to overcome known threats that are "out in the wild" even before a version of java gets released.  The last 3 versions, 7.0, 7.1 and 7.2 didn't even get released before work started on the next one due to known threats and other problems.

The LibreOffice project is trying to write-out any dependance on java in order to avoid forcing people to install java. 
Regards from
Tom :slight_smile:

Hi Tom/ All,

Thanks for your reply but as I said I want to make my own tool that does the file conversions-doc,xls or ppt to PDF format without installing either Libre Office or Portable Libre Office on my machine. So I want the component or the code or any name of the part of the source code of Libre Office that does this conversion utility.
I hope my question is clear now.

Can someone provide me any kind of help on this. Even if I get some web link that may help me then also it's fine.

Regards,
Ankit

Hi Ankit,

I just want to explore about the filter in writer component that does the doc or xls to pdf conversion.If someone can give me the part of code or the filter that does this conversion it would be very helpful to me.Also what are the libraries that are involved in conversion.
Please give me some link from where I can get the complete knowledge on this.

Basically I want to develop my own tool in Java which would convert any word,xls or ppt kind of document to pdf format without using the direct utility of LibreOffice that does this conversion.

Any help on this would be greatly appreciated.

Try looking here :

http://wiki.documentfoundation.org/Development/Code_Overview#writerfilter

http://docs.libreoffice.org/writerfilter.html

http://docs.libreoffice.org/writerfilter/html/classes.html

and the corresponding places in the git master repo.

Alex

Thanks a lot Alex.

I hope this will help me.

Ankit

Hi :slight_smile:
Ahhh, that does make sense now.  I hope Alex's answer was able to help
Apols and regards from
Tom :slight_smile:

Hi All,

I seek for a method to have the
particular code required for converting documents into PDF and invoke
only the methods that do the actual conversion.

Is there any solution for this.
Please give me some links or any supported reference on this or the approach for doing this.

Regards,
Ankit

LO is free (LGPL) software; you should study the source code.

Is your java program going to be released under GPLv3?

Yes if I am able to do that it will be released under GPLv3.

Not sure if this will help or not, but you might try setting:
Tools>Options>LibreOffice Writer|Print:Other|Paper tray from printer
settings

From the Help file:
Paper tray from printer settings
For printers with multiple trays, the "Paper tray from printer settings"
option specifies whether the paper tray used is specified by the system
settings of the printer.
...

For me checking that boxes doesn't appear to do anything at all

:frowning:

but thanks for thinking about this

best wishes

M

Can you print out the document as a PDF file?
When you then use your default PDF viewer, do you have the print options for those different paper options when printing using the PDF viewer? I cannot get LO to print a document in duplex mode, so I print/export the document to a PDF file and then use my PDF viewer to print it out duplex. That is my work-around.

You might need to do something like that as well.

I just installed 3.5.3 RC2 and it seems to work fine !!!

I removed everything openSUSE LO related and installed RC2
from LO rather than the suse repos and I seem good to go now.

No doubt you will hear from me some more when I get stuck again
but in the meantime many thanks to everyone :slight_smile:

M