Sorry for my english. I have a document (ODT) with a page formated in landscape mode. If I export this page directly from Writer, the PDF export is in landscape mode. It's also OK if I use a macro registered with the recorder in the ODT document. If I use 'writer_pdf_Export' in a macro, the PDF file is always on portrait mode. I have used variants like 'PaperOrientation' or 'IsLandscape' with no success. The same code was OK in release 3.5. Thank you for his very good application Jacques ============================================================================= Part of the macro used : ============================================================================= oPublipostage = createUnoService("com.sun.star.text.MailMerge") FilterData(0).Name = "IsAddStream" FilterData(0).Value = False ' ne pas incorporer le fichier OpenDocument FilterData(1).Name = "IsSkipEmptyPages" FilterData(1).Value = True ' ne pas séparer les pages du fichier en sortie ArgsProprietes(0).Name = "FilterData" ArgsProprietes(0).Value = FilterData() With oPublipostage .DataSourceName = sSource .CommandType = TypeCmde .Command = sQuery .OutputType = com.sun.star.text.MailMergeType.FILE .FileNameFromColumn = False .SaveAsSinglefile = True .SaveFilter = "writer_pdf_Export" .FilenamePrefix = sPrefixe .DocumentURL = ConvertToURL(sModele) .OutputURL = ConvertToURL(sRepTemp) .PrintOptions = ArgsProprietes() .Execute(Array()) .Dispose() End with =============================================================================
This bug tracker is not an helpdesk. Please could you ask for help on the FR users mailing-list or via https://fr.libreoffice.org/get-help/poser-une-question There was changes in the API after version 3.5 so perhaps you should update your macro. Closing as INVALID. Feel free to reopen if discussion on users mailing-list make you pretty sure that there is a bug there. Thank you for your understanding. Best regards. JBF