Portrait or landscape
Tags: Extensions Writer
last edited: 2023-01-24
This extension is intended as a help to all the daily users of the page breaks. In particular it is possible to manage the direction of page, insert portait or landscape pages and to set document with first page. In addition it's possible to set simply
The extension inserts a toolbar containing five buttons that allow the order of:
- Set the default page style or the landscape page style (Portrait or landscape direction)
- Insert a page break applying the default page style (Portrait direction)
- Insert a page break applying the landscape page style
- Set the page with the First Page style
- Choice three option for set a document with "First page"
- Set A5 format page
- Set A4 format page
- Set A3 format page
- Show a message containing the name of the page style currently applied to the current page
- Release Description Compatibility Operating Systems License Release notes
Linux, Windows, macOS
- Added the management of the following styles for inserting page breaks;
- Added page number and next style to the info window;
- Typos on EN sentences and language proofreading for DE sentences.;
- Minor fix.
Linux, Windows, macOS
Total rewrite with the Python language, addition of some features and bug fixes.Download
- 2.0.0 improve existing functions and add new features 4.0 Linux, Windows, macOS LGPL Download
- 1.0.1 First release: portrait, landscape and first page 4.0 Linux, Windows, macOS LGPL Download
Marlon Escobar Aug 20, 2022, 1:03 AM (10 months ago)
Great Idea, but I can not install it.
Failed to register package for vnd.sun.star.expand:$UNO_USER_PACKAGES_CACHE/uno_packages/lu145927r0i3.tmp_/portraitorlandscape-v3.oxt/python/ ./scripting/source/provider/MasterScriptProvider.cxx:526
Marlon Escobar Aug 20, 2022, 1:07 AM (10 months ago)
The information of my PC is:
Operating System: Kubuntu 22.04
KDE Plasma Version: 5.24.4
KDE Frameworks Version: 5.92.0
Qt Version: 5.15.3
Kernel Version: 5.15.0-46-generic (64-bit)
Graphics Platform: X11
Processors: 4 × AMD A10-8700P Radeon R6, 10 Compute Cores 4C+6G
Memory: 11.1 GiB of RAM
Graphics Processor: AMD Radeon R6 Graphics
Version: 18.104.22.168 / LibreOffice Community
Build ID: 30(Build:2)
CPU threads: 4; OS: Linux 5.15; UI render: default; VCL: kf5 (cairo+xcb)
Locale: es-GT (es_GT.UTF-8); UI: en-US
Ubuntu package version: 1:7.3.5-0ubuntu0.22.04.1
Salvo Salvaggio Jun 18, 2022, 12:00 PM (12 months ago)
Great idea for me too, but can't install in my LO 22.214.171.124
Failed to register package for vnd.sun.star.expand:$UNO_USER_PACKAGES_CACHE/uno_packages/lu6140jouoaz.tmp_/portraitorlandscape-v3.oxt/python/ ./scripting/source/provider/MasterScriptProvider.cxx:532
DG Randy Apr 28, 2021, 1:45 PM (2 years ago)
It's a great idea, it just isn't working on Windows 10 64 bit version of Libra Office 7.0. nor the recent update of 126.96.36.199
With first install it asked for Java 64bit JDK, which was already installed, but I reinstalled anyway.
The following error occurred after restarting Libre Office following extension install and trying to use it to change the direction of layout.
(I updated Libre Office and restarted to see if that would help, unfortunately the error still exists, so I had to uninstall it. Hope you get it fixed, because I really need an easy way to print in landscape, and I can't find the option in Libre Office so far.)
Hope this feedback helps.
A Scripting Framework error occurred while running the Python script vnd.sun.star.script:portraitorlandscape.oxt|python|main.py$insLandscape?language=Python&location=user:uno_packages.
Message: <class 'KeyError'>: 'portraitorlandscape.oxt'
File "C:\Program Files\LibreOffice\program\pythonscript.py", line 1047, in getScript
File "C:\Program Files\LibreOffice\program\pythonscript.py", line 417, in getStorageUrlFromPersistentUrl
package = self.mapPackageName2Path[ packageName ]
Antonio Faccioli Jun 1, 2021, 8:17 PM (2 years ago)
could you please uninstall the version you installed and try to install the one you can download from here?
Antonio Faccioli May 21, 2021, 1:41 PM (2 years ago)
Unfortunately I can't replicate your mistake. The extension was developed on 64-bit Windows 10 and then tested on Linux and Mac, so rest assured it works.
I checked your error and saw that several extensions developed with Python have this problem, I need to investigate further.
Have you tried having the LibreOffice user folder regenerate and then reinstall the extension?