11-16-2012, 09:06 AM | #1 |
Connoisseur
Posts: 80
Karma: 1023042
Join Date: Nov 2011
Device: Kobo Touch, iPad
|
PHP code library for watermarking an ePub
Hi everyone, hope your friday is going well!
I'm looking for some php code library for watermarking an epub when selling on our internet site. I asked to some programmers and they all told me they were able to do it (automaticly) on a pdf but not on an ePub. Is anyone here can help me to get a script or code library to make it work automaticly when someone's buying an epub out of my internet site? Thanks a lot for your help, Have a good friday (TGIF!!!) P.S. If I posted in the wrong section, please feel free to move my thread. I didn't know where's the place to post this. Thanks! |
11-17-2012, 06:40 AM | #2 |
Color me gone
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
|
|
Advert | |
|
11-17-2012, 03:04 PM | #3 |
Digital Amanuensis
Posts: 727
Karma: 1446357
Join Date: Dec 2011
Location: Turin, Italy
Device: Several eReaders and tablets
|
If by "watermark" you just mean "adding a XHTML page with some info about the customer", you can use my python library to add an ex libris, which accepts an XHTML page template, with string placeholders, and pass the customer-dependant information.
https://www.mobileread.com/forums/sho...d.php?t=180065 (There is also a Calibre plugin, using this library.) |
11-19-2012, 03:27 PM | #4 |
Connoisseur
Posts: 80
Karma: 1023042
Join Date: Nov 2011
Device: Kobo Touch, iPad
|
WOW, a big thank you, AlPe, that is really nice!
Hope the programmer will find that usefull, this is really king from you! |
11-19-2012, 03:34 PM | #5 |
Digital Amanuensis
Posts: 727
Karma: 1446357
Join Date: Dec 2011
Location: Turin, Italy
Device: Several eReaders and tablets
|
You are welcome.
Just a warning: as your developer might notice, the OPF/NCX parsing is done with RegEx instead of a full DOM parser --- because, in the original project, I had to deal with some non-compliant EPUBs files. This means that the code might not work properly for your EPUBs. So far, it has worked on anything I tried, but there is no "formal" guarantee for that. |
Advert | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Kindle Watermarking format | sasq | Kindle Developer's Corner | 3 | 03-23-2016 09:15 PM |
Code showing in mobi (from epub) | BKh | Conversion | 4 | 07-23-2012 04:08 PM |
HTML code in epub book | Giselleco | Kobo Reader | 4 | 07-26-2011 01:33 PM |