I did a pdf to epub and was easily able to strip header & footer ( including page numbers) with the new feature & wizards.

but I'd like to be able to toggle S&R so that when I now do e.g. epub to mobi, the S&R is not reapplied. I can opt for reset to defaults on search replace but then I lose my carefully constructed expressions. I "should" not need them again but keeping them would preserve my "start over" path if I screw up the epub, later.

so an option to disable, but preserve, field contents would be good.

& keep the source ( pdf) used by the SR wizard in memory after constructing 1st epxression, so that when needed again for 2nd expression there is no delay

AFAIK, conversion options are only stored once per book, not by source type within book ( which would be better ) ?

In most cases the search and replace regex will not match between different inputs. Usually the regex used is also not complex enough to see any slow down by having it run without finding any matches.

pdttohtml only runs once per PDF input. Each search and replace expression is run over the html produced by pdftohtml. It actually runs over the html produced by any input plugin. Each expression is run once per page. In the case of PDF input only one page is generated so it is only run once. In the case of an EPUB book (or an input plugin that creates multiple pages within the OEB) there is no way to avoid running the search and replace multiple time. It has to run over each independent page.

If you're seeing the search and replace run multiple times it's because the document has multiple pages and it has to be run over each page. When I say page I'm talking about the independent xhtml files found with an OEB (EPUB).

Also, there is a bug I'm aware of with the regex input field. It should be saving all previous regex used in the drop down. It's not and I plan to look into why. Once that's fixed you can put your expressions, save, then remove it, then later find it in the list to reenable it.

thanks for response - maybe I was not totally clear about the pdftohtml bit.

I am at the stage of setting conversion fields for pdf to epub

1.
I take a large pdf ask and the wizard to help me create S&R 1- to do that it runs pdftohtml and takes a few seconds.
2
I am happy with that, so I ask the wizard to now help me create S&R2. This is where it seems to go back to the beginning and spend many seconds preparing the PDF for wizard use ( even though it's done it once already in step 1). in task manager I see that pdftohtml is running & using lots of CPU during these seconds.

what I am suggesting is keep the file used for wizard / testing from step 1 so that it does not have to be re-created for step 2 of the setup test - . I am not talking about the actual conversion to epub. does that make sense

ps on saving previous S&R into a drop down - will that then work across different books - as some expressions may be re-usable elsewhere? Ideally it would be good to accumulate a user's mini library of expressions somewhere, or to have a way of sharing them on this forum

1.
I take a large pdf ask and the wizard to help me create S&R 1- to do that it runs pdftohtml and takes a few seconds.
2
I am happy with that, so I ask the wizard to now help me create S&R2. This is where it seems to go back to the beginning and spend many seconds preparing the PDF for wizard use ( even though it's done it once already in step 1). in task manager I see that pdftohtml is running & using lots of CPU during these seconds.

what I am suggesting is keep the file used for wizard / testing from step 1 so that it does not have to be re-created for step 2 of the setup test - . I am not talking about the actual conversion to epub. does that make sense

I understand what you're asking for now. Unfortunately, the design of the components does not allow for this to be easily achieved. Open a ticket for this enhancement so it doesn't get lost but I can't guarantee when if ever it gets implemented.

Quote:

Originally Posted by cybmole

ps on saving previous S&R into a drop down - will that then work across different books - as some expressions may be re-usable elsewhere? Ideally it would be good to accumulate a user's mini library of expressions somewhere, or to have a way of sharing them on this forum

Settings are saved on a per book basis when set in a conversion of a specific book. If you set a setting in Preferences it's global. So you could create a few that work across books there and just disable them when necessary on a per book basis. The per book settings will remember you've disabled it for subsequent conversions.

However, it sounds more like you want a global settings scratch pad where you can see all stored settings and probably what book they were stored for... If you have some idea of how it would work open a ticket for it too. Someone might like the idea (or be bored) and implement it.