![]() |
#1 |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Mar 2012
Device: none
|
"On the fly"-creation on own server
Hi there,
we are looking for a solution to insert a transactional watermark to an ebook (epub), that gets inserted after a user bought the ebook. E.g. his username/name get inserted in the ebook or some/all images get the some sort of ID in the metadata that is related to the buyer. We don´t mind people sharing their ebook with friends, but we would like to make it a little more difficult for those, who would upload the ebook to filesharing websites. (I know the watermark can get removed and therefore this method is not perfect, but that´s ok. It should just be little more difficult for non-technical guys.) Steps: 1.) User buys ebook in epub format 2.) Watermark gets inserted in ebook 3.) Ebook gets created 4.) User receives download link via email I wonder, if Calibre might be the software to use for the “on the fly” ebook creation on the server? Or are there other/more suitable tools for “on the fly” online creation of ebooks on our own server? I am aware, that the watermarking would need to be done with a custom script and is not part of what Calibre offers. Thank you very much for your feedback. AgeG |
![]() |
![]() |
![]() |
#2 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,903
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
IMHO the best watermark is the one that appears to 'belong' in the book and not stick out like a signpost.
Calibre is not intended to do this type of actions. The Help section at the download site lists the CLI tools (part of Calibre) available. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Mar 2012
Device: none
|
was this meant concerning the "on the fly"-creation process on server?
That I will need a custom script for the watermarking, as it´s not included with Calibre - that I know. I was more asking for dynamic creation process of an ebook on our server and whether Calibre might be the right tool for that. |
![]() |
![]() |
![]() |
#4 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,903
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
As I said. What you want to script, was not intended, but might be doable via the CLI. |
|
![]() |
![]() |
![]() |
#5 |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Mar 2012
Device: none
|
Thanks theducks,
I had a first look at the CLI manual. Looks very promising. I would have in mind the following process: 1.) After purchase ebook files get copied in a temp folder 2.) Watermarks gets imported/loaded/placed 3.) Ebook gets converted via Calibre CLI and saved in folder on server 4.) User gets download link 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. AgeG |
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
hopeless n00b
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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:
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. |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Feature Request - cover browse in the "Fetch Metadata from server" function | nathander13 | Calibre | 1 | 01-30-2010 02:11 PM |
Création d'un "reflowable" pdf | chatlumo | E-Books | 1 | 09-06-2009 10:59 AM |