02-11-2011, 09:48 AM | #1 |
Member
Posts: 24
Karma: 322
Join Date: Jan 2011
Device: Kindle
|
Simply remove ALL headers/footers?
I've read the guides (a few times ) about the new Search & Replace feature, but sadly, I'm not grasping. I never used the header/footer feature in previous Calibre editions either, so this element is brand new for me. I also know that PDF conversions are riddled with problems.
That said, is there a Regex that can simply remove all headers and footers when doing a PDF to mobi conversion? Don't want to replace anything, just make them all disappear. Any possible way? Thanks, Rach |
02-11-2011, 10:25 AM | #2 |
Member
Posts: 12
Karma: 42
Join Date: Jan 2011
Device: Kindle 3
|
If you just leave the 'replace' section blank, it will remove the matched text.
The regex that you need depends on what's in your PDF. Pulling page numbers is different than removing path information. Since the stuff you want to get rid of is usually on one line, you can use pretty simple regexes like: Code:
file:///.+ Code:
file:///F|/rah/Author%20D.%20Writerperson%20Title%20Book.txt (1 of 105) [1/14/03 10:48:52 PM]<br> Code:
file:///F|/rah/Author%20D.%20Writerperson%20Title%20Book.txt<br> |
Advert | |
|
02-11-2011, 10:45 AM | #3 | |
Wizard
Posts: 3,130
Karma: 91256
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
|
Quote:
There's no single regex that can eliminate all headers and footers during conversion. If there were, it would be hardcoded somewhere instead of having the user writing the regex. |
|
02-12-2011, 09:56 AM | #4 | |
Wizard
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
Quote:
once again it needs manual intervention though - you have to tell the program where to crop. I prefer the crop solution to the regex solution as it is easier to see what it is doing; plus the less work that calibre has to do, the faster the pdf convert should be. *pdf xchange lite is currently free for home / academic use. http://www.tracker-software.com/free_lite_home.html , but for cropping you need the pro version - unless you can get all of your books cropped before the free evaluation period times out !!! Last edited by cybmole; 02-12-2011 at 10:08 AM. |
|
02-12-2011, 02:08 PM | #5 | |
Guru
Posts: 776
Karma: 2751519
Join Date: Jul 2010
Location: UK
Device: PW2, Nexus7
|
Quote:
See the crop option in pdfmanipulate for more details and https://www.mobileread.com/forums/sho...d.php?t=103437 for an example of using it. |
|
Advert | |
|
02-17-2011, 04:36 AM | #6 |
Wizard
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
NB some PDF viewer crop options do not actually remove anything - I found out the hard way but trying to convert "cropped" output from pdf -x change.
all that crop does is hides the parts of the page you tell it to. when the PDF is uses as input to calibre convert it reads the whole page, including the stuff you thought you'd cropped out of existence! so thats a point in favour of regex solutions |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Removing Headers/Footers Help? | Anarel | Workshop | 10 | 11-09-2010 12:53 PM |
Remove Headers & Footers | Mamaijee | Introduce Yourself | 8 | 09-26-2010 01:05 PM |
Pls help with removing headers /footers | Mamaijee | Calibre | 0 | 09-19-2010 01:29 PM |
EPUB Headers & Footers? | Hamlet53 | ePub | 11 | 04-23-2010 08:41 PM |
page headers/footers | daesdaemar | Workshop | 20 | 12-12-2008 09:22 PM |