[Python][Writer] Remove empty pages?

Keyboard macros or custom scripts

[Python][Writer] Remove empty pages?

Postby yijinger » Thu Apr 22, 2021 11:49 pm

Hello,

I compiled my document and found some empty pages. How can I look through each page and remove empty ones? I could not find anything useful for my case.
LibreOffice 6.0.7.3 on Linux Mint 20
yijinger
 
Posts: 10
Joined: Fri Apr 02, 2021 8:00 am

Re: [Python][Writer] Remove empty pages?

Postby JeJe » Fri Apr 23, 2021 12:04 am

What do you mean by 'empty page'... a page of blank paragraphs or unwanted manual page breaks?
Openoffice 4.1.6
Windows 8
JeJe
Volunteer
 
Posts: 1505
Joined: Wed Mar 09, 2016 2:40 pm

Re: [Python][Writer] Remove empty pages?

Postby yijinger » Fri Apr 23, 2021 5:39 am

Blank pages appeared due to paragraph breaks - the last element on the previous page inserts "PARAGRAPH_BREAK", and it adds another page, which does not fill. But if I insert a condition concerning this paragraph break, I observe bugs with the previous paragraph.
LibreOffice 6.0.7.3 on Linux Mint 20
yijinger
 
Posts: 10
Joined: Fri Apr 02, 2021 8:00 am


Return to OpenOffice Basic, Python, BeanShell, JavaScript

Who is online

Users browsing this forum: Google [Bot] and 5 guests