Thread: Remove Footer
View Single Post
Old 03-09-2010, 09:17 AM   #39
matthias
Enthusiast
matthias has a spectacular aura aboutmatthias has a spectacular aura aboutmatthias has a spectacular aura aboutmatthias has a spectacular aura aboutmatthias has a spectacular aura aboutmatthias has a spectacular aura aboutmatthias has a spectacular aura aboutmatthias has a spectacular aura aboutmatthias has a spectacular aura aboutmatthias has a spectacular aura aboutmatthias has a spectacular aura about
 
Posts: 25
Karma: 4212
Join Date: Nov 2009
Location: South Tyrol, Italy
Device: Sony Reader PRS-505
i know i'm repeating myself, but i converted last week (with calibre 0.6.43) to convert several PDF-Files with pagenumbers in all the different ways there are. For most of them, the following Regex worked:
(i know it won't be highlighted in the wizard, but when you convert it, you will notice that it works anyway)

Code:
(<p>\s*\d+\s*<p>)
this regex will remove every pagenumber that stands by itself in a row.

if there is something like "Page 3" (having the html-Syntax of "<p>Page 3 </p>", you have to adjust your regex, too:

Code:
(<p>Page\s*\d+\s*<p>)
If it's becoming more difficult, you can use the wizard to verify your results, but in general you have to replace the closing tag with a "normal" to get it to work with in the conversion.

Last edited by matthias; 03-09-2010 at 09:24 AM.
matthias is offline   Reply With Quote