![]() |
#1 |
Junior Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5
Karma: 3872
Join Date: Jun 2009
Device: Sony prs-505
|
Best Way To Delete Page Numbers?
This isn't specifically a calibre question (although there may be some way of doing what I want with calibre that I don't know of) so I hope it is okay to post this here.
I have a lot of books (mostly pdf files) that have page numbers that I want to get rid of. Going through each book and manually deleting all the page numbers would obviously be way too time consuming, but I have been unable to think up any other way of doing it. Right now, the fastest method I have come up with is using a search and replace feature, but I still would have to manually enter each page number and leave the replace text blank, which isn't very fast at all. I understand that regular expressions can sometimes be used in these situations, but I don't know anything about regular expressions, so I don't know where they would be used or how to make the regex anyway. So... I am hoping that some people here can tell me the method or methods that they use to accomplish this feat... Thanks in advance for any help you can give. |
![]() |
![]() |
![]() |
#2 |
Addict
![]() ![]() ![]() ![]() ![]() Posts: 219
Karma: 404
Join Date: Nov 2010
Device: Kindle 3G, Samsung SIII
|
Have a look at header/footer removal in calibre.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Junior Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5
Karma: 3872
Join Date: Jun 2009
Device: Sony prs-505
|
Thanks for the reply. I will look into that.
![]() |
![]() |
![]() |
![]() |
#4 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,130
Karma: 91256
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
|
The manual has a regex tutorial that might be of interest to you.
|
![]() |
![]() |
![]() |
#5 |
Junior Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5
Karma: 3872
Join Date: Jun 2009
Device: Sony prs-505
|
Thanks for the regex tutorial. After looking at that and other sources I finally have something that does what I want. In case others may see this post and wonder, the regex I came up with is:
Page\s*\d+ This gets rid of the word "Page" and the page numbers after. The only thing it doesn't do is repair breaks in the text where the page numbers were inserted. Still not sure how to do that, but this is a start. Thanks again for setting me in the right direction. |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,130
Karma: 91256
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
|
Try looking at the XHTML- markup (use the magic wand symbol) and removing relevant parts of it as well. That might repair the breaks you see.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Page numbers | Fincary | Astak EZReader | 4 | 02-18-2010 03:06 PM |
page numbers | nenad | Amazon Kindle | 2 | 12-19-2009 09:01 AM |
DX, PDF, and Page Numbers | tklaus | Amazon Kindle | 1 | 06-28-2009 08:20 PM |
Page numbers, AGAIN | orlincho | Bookeen | 92 | 08-19-2008 07:15 AM |
Page numbers (again) | Prospect | Workshop | 50 | 04-10-2008 02:19 AM |