View Single Post
Old 03-14-2012, 07:05 PM   #6
ilovejedd
hopeless n00b
ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.
 
ilovejedd's Avatar
 
Posts: 5,110
Karma: 19597086
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, Libra H2O, iPad 10.5, iPad 11, iPad 12.9
Quote:
Originally Posted by AgeG View Post
As the convesion seems to be present via CLI this might be working out.

Will talk to our developer about that.

If someone gots some experience with that or has another/better idea - any help is most welcome.
My suggestion, create a script to manually insert the watermark to an existing EPUB. This would be faster and less resource-intensive than doing an HTML/OEB/EPUB to EPUB conversion via Calibre.

Prepare your source EPUB file so it has a placeholder for where you want to insert the watermark. Then, just open the EPUB file using whatever language you're using for server side scripting (most should have native ZIP support and EPUB is basically a ZIP file with a different extension), edit the placeholder files to insert the user's personal information and serve the book to the client. Doing it this way would use less server resources and the script will probably take just milliseconds to complete. You don't even need to create temporary copies as everything could be handled via the script(s).

P.S.
There is, however, an advantage with doing this via Calibre CLI. With Calibre, you could output to different formats including MOBI (the Kindle likely has the biggest install base among all readers). Using the method I outlined above, you could only output EPUB.

Last edited by ilovejedd; 03-14-2012 at 07:18 PM.
ilovejedd is offline   Reply With Quote