Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index


On Mon, 17 Oct 2011, Alexander Thurgood wrote:

Le 17/10/11 13:17, Gabriel Monnerat a écrit :

I would like to know that is possible change the document layout via
UNO because after convert the document it is not opened in standard
layout(is opening in another layout).

So, is possible change the layout and define it on document?

You might need to give us a bit more detail about what it is exactly
that you are trying to do ?

You write "after convert document" :
- which document ?
- which format(s) ?
- how are you converting it ?

Also, what do you mean by "another layout" ?

Since Gabriel and I are both working on similar tools, I think I know what he needs. We both have written a tool to convert documents using LibreOffice import and export filters. We use PyUNO to open and save documents and during this 'conversion' problems have been reported that the page format (eg. A4) is not retained.

My understanding is that either the original document has no paper format configured, or it does not fit the expected dimensions. So the question is, how can we set (enforce) the correct page dimensions before exporting to another document format using PyUNO ?

I have found some example code in Basic, however I couldn't transcode it to working Python code :-/

PS The tool I am working on is available from:

    http://github.com/dagwieers/unoconv

Kind regards,
--
-- dag wieers, dag@wieers.com, http://dag.wieers.com/
-- dagit linux solutions, info@dagit.net, http://dagit.net/

[Any errors in spelling, tact or fact are transmission errors]
--
For unsubscribe instructions e-mail to: users+help@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.