Ask Your Question
0

In converting to a format for e-publishing a book manuscript formatted for printing, how do I delete the page breaks? Thank you.

asked 2015-12-08 23:56:49 +0100

editormichael gravatar image

Originally in Word, now in (of course) LibreOffice.

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted
1

answered 2020-08-24 02:03:00 +0100

LeroyG gravatar image

To delete one page break, put the cursor at the beggining of the page wich is after the page break, and press Backspace.

To delete multiple page breaks see the answer to: https://ask.libreoffice.org/en/questi...


Add Answer is reserved for solutions.

edit flag offensive delete link more
0

answered 2020-08-24 08:21:34 +0100

gabix gravatar image

updated 2020-08-24 08:22:04 +0100

Another solution: a macro as follows:

Sub  DeleteAutoPageBreaks 
     oDoc = ThisComponent 
     oStyles = oDoc.getStyleFamilies 
     oPageStyles = oStyles.getByName("PageStyles") 
     oPageStyleNames() = oPageStyles.getElementNames() 
     For i = 0 to uBound(oPageStyleNames) 
               thisName = oPageStyleNames(i) 
               oPageStyles.removeByName(thisName) 
     Next i
     oCursor = oDoc.Text.CreateTextCursor()
     oCursor.GoToStart(False)
        Do
                 If oCursor.BreakType <> com.sun.star.style.BreakType.PAGE_BEFORE Then
                           If NOT IsEmpty(oCursor.PageDescName) Then
                                      oCursor.PageDescName = ""
                                      oCursor.BreakType = com.sun.star.style.BreakType.NONE
                           End If
                 End If
        Loop Until NOT oCursor.gotoNextParagraph(False)
     Msgbox "Farite"
 End Sub
edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2015-12-08 23:56:49 +0100

Seen: 75 times

Last updated: Aug 24 '20