01-06-2011, 11:16 PM | #1 |
Wandering Vagabond
Posts: 282
Karma: 350000
Join Date: Apr 2010
Device: iPod Touch
|
Any Way To Delete Titles And Page Numbers?
In many books they have the author name, title of the book and page number on each page. Is there any way to remove them using Calibre?
|
01-07-2011, 01:30 AM | #2 |
Guru
Posts: 695
Karma: 822675
Join Date: May 2010
Device: Kobo Aura, Nokia Lumia 920 (Freda)
|
What format are these books? If they're PDFs and you're attempting to convert to something else, you can enable the header and footer regular expressions during conversion and then write appropriate regular expressions to remove the header and footer.
Note that you have to check the checkbox as well as fill out the regular expression. Too often I find myself writing the perfect regular expression, doing a conversion, looking at the output and wondering why it didn't work when it did during testing. It's always because I forgot to check the checkboxes. |
01-07-2011, 01:39 AM | #3 |
Wandering Vagabond
Posts: 282
Karma: 350000
Join Date: Apr 2010
Device: iPod Touch
|
Yes, theyre PDFs. How do I do that? What menu do I go into and how do I get there? Please forgive me, Im still kind of new to this so I really have no idea what Im doing.
|
01-07-2011, 02:10 AM | #4 |
Guru
Posts: 695
Karma: 822675
Join Date: May 2010
Device: Kobo Aura, Nokia Lumia 920 (Freda)
|
It's in the conversion dialog
From here you have "Remove Header" and "Remove Footer" options. They are pre-populated by default with a regular expression that probably won't work for you. For best results, you'll have to figure out the correct regular expressions on your own. This is where the test mode (the wand-looking buttons to the right of the regular expression text fields) is extremely useful. Google for a python regular expression reference and then build the expression you need to remove the headers and footers from your book. Just remember to check the checkboxes when you're done before you start the conversion. Also, it's probably a good idea to use the "preprocess input file" option as that can make building your regular expressions easier (it's not going to do it for you, but by preprocessing the contents of what you're running the expressions over should be more uniform). |
01-07-2011, 02:55 AM | #5 |
Wizard
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
you may find it easier to google pdfscissors & use that to remove all the headers & footers before adding pdf to calibre. saves having to learn regex syntax.
|
01-07-2011, 07:13 AM | #6 |
Grand Sorcerer
Posts: 12,882
Karma: 35535698
Join Date: Nov 2010
Location: USA
Device: Nexus 7 2, Samsung Galaxy Tab A 8" (retired=Sony PRS650, Kobo Mini)
|
Dear Author wrote a how-to guide on using Calibre to remove headers and footers from PDFs. It takes some experimenting, but is worth the effort for a clean conversion.
http://dearauthor.com/wordpress/2010...6-inch-screen/ It's the "REGULAR EXPRESSIONS" section about half-way down the post. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Is there a hack for displaying page numbers rather than location numbers? | nesler | Kindle Developer's Corner | 16 | 02-15-2011 12:00 AM |
Best Way To Delete Page Numbers? | gtshadow | Calibre | 5 | 11-18-2010 04:53 AM |
Page numbers | Fincary | Astak EZReader | 4 | 02-18-2010 03:06 PM |
Series Titles and Numbers | jgoulden | Calibre | 9 | 12-29-2009 05:43 PM |
Page numbers imported as titles... :-/ | ^_Pepe_^ | Sony Reader | 2 | 10-08-2007 08:39 AM |