Don't know much about UNO, but using the PrinterSetup to force page
format might help.
Smath/.uno:PrinterSetup
http://help.libreoffice.org/Common/Printer_Setup#bm_id3150620
In linux, generic pdf might be perfect as it is probably available on
all variants
Paul
On 10/19/2011 5:41 AM, Gabriel Monnerat wrote:
Hello,
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 exportingto another
document format using PyUNO ?
I have found some example code in Basic, however I couldn't transcode it to
working Python code :-
/
Do you have the link to the example code in Basic? I would like to see :)
Regards,
--
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.