Advertisement
Guest User

Convert VitalSource Bookshelf vbk ebooks to PDF

a guest
Dec 4th, 2010
27,396
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.38 KB | None | 0 0
  1. DMT's magically awesome 2010 guide to...
  2. ========================================
  3.  
  4. - How to convert VitalSource BookShelf E-books (.vbk) to PDF
  5.  
  6. - How to remove DRM from VitalSource Bookshelf E-books
  7.  
  8. - How to Remove DRM from .vbk files
  9.  
  10. - How to be realise that DMT loves you
  11.  
  12. * All conveniently the same thing, but we has to make our offerings to the Google overlords. When you make offerings, the overlords see fit to pass knowledge to more persons. We find this a tolerable trade-off. For now.
  13.  
  14.  
  15. þ Ü±Ü þ
  16. ÛÛÛÛÛ ÞÜ ÜÛÜ ÜÝ ÛÛÛÛÛ
  17. ÛÛÛÛÛ ÛÛÜÜÜÛÛÛÛÛÜÜÜÛÛ ÛÛÛÛÛ
  18. ÛÛÛÛÛ ßßßßßßßßßßßßßßß ÛÛÛÛÛ
  19. ÛÛÛÛÛßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßß
  20. ÛÛÛÛÛ ÛÛÛÛÛ ÛÛÛÛÛ ÛÛÛÛÛ ÛÛÛÛÛ ÛÛÛÛÛ
  21. ÛÛÛÛÛ ÛÛÛÛÛ ÛÛÛÛÛ ÛÛÛÛÛ ÛÛÛÛÛ ÛÛÛÛÛ ÛÛÛÛÛ
  22. ÛÛÛÛÛ ÛÛÛÛÛ ÛÛÛÛÛ ÛÛÛÛÛ ÛÛÛÛÛ ÛÛÛÛÛ
  23. ÛÛÛÛÛÜÜÜÜÜÛÛÛÛÛ ÛÛÛÛÛ ÛÛÛÛÛ ÛÛÛÛÛÜÜÜÜÜÛÛÛÛÛ
  24.  
  25. °°°°° DO MORE TRIBE °°°°°
  26.  
  27. °°°°° PROUDLY PRESENTS °°°°°
  28. ±±±±± ±±±±±
  29. ²²²²² Company: VitalSource ²²²²²
  30. ÛÛÛÛÛ Product: BookShelf E-books ÛÛÛÛÛ
  31. ÛÛÛÛÛ Protection: Evil proprietary DRM ÛÛÛÛÛ
  32. ÛÛÛÛÛ Platform: Windows + Mac ÛÛÛÛÛ
  33. ÜÛÛÛÛÛÜ ÜÛÛÛÛÛÜ
  34. ÜÜÜÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÜÜÜ
  35. ÛÛÛÛÛßß ßßÛÛÛÛÛ
  36. ÛÛÛÛÛ ÛÛÛÛÛ
  37. ÛÛÛÛÛ We are coming for this world.. ÛÛÛÛÛ
  38. ÛÛÛÛÛ ÛÛÛÛÛ
  39. ÛÛÛÛÛ ÛÛÛÛÛ
  40. ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ
  41. ÛÛÛÛÛ ÛÛÛÛÛ
  42. ÛÛÛÛÛ Do More Tribe is proud to announce the release of a new ÛÛÛÛÛ
  43. ÛÛÛÛÛ DRM-removal technique. VitalSource BookShelf sells DRM'd Ebooks ÛÛÛÛÛ
  44. ÛÛÛÛÛ in a proprietary format. ÛÛÛÛÛ
  45. ÛÛÛÛÛ ÛÛÛÛÛ
  46. ÛÛÛÛÛ We find this unacceptable. ÛÛÛÛÛ
  47. ÛÛÛÛÛ ÛÛÛÛÛ
  48. ÛÛÛÛÛ If you pay for an ebook, it is yours to view on any device you ÛÛÛÛÛ
  49. ÛÛÛÛÛ own. Do not let anyone ever tell you otherwise. It's very ÛÛÛÛÛ
  50. ÛÛÛÛÛ surprising that nobody on the interwebs seems to have figured out ÛÛÛÛÛ
  51. ÛÛÛÛÛ how to bypass the restriction. It's quite a fun little trick. ÛÛÛÛÛ
  52. ÛÛÛÛÛ ÛÛÛÛÛ
  53. ÛÛÛÛÛ The VitalSource Bookshelf software allows you to print your ÛÛÛÛÛ
  54. ÛÛÛÛÛ Ebook, but only 5 pages at a time. On the surface this would ÛÛÛÛÛ
  55. ÛÛÛÛÛ seem to foil the print-to-PDF method, however using some ÛÛÛÛÛ
  56. ÛÛÛÛÛ AppleScript magic we can have their own software do all the work ÛÛÛÛÛ
  57. ÛÛÛÛÛ for us ;) ÛÛÛÛÛ
  58. ÛÛÛÛÛ ÛÛÛÛÛ
  59. ÛÛÛÛÛ You will need a computer running MacOS in order to do this, ÛÛÛÛÛ
  60. ÛÛÛÛÛ however the resulting PDF will work on any computer. There are ÛÛÛÛÛ
  61. ÛÛÛÛÛ VMWare images of MacOS available online if you don't have a Mac. ÛÛÛÛÛ
  62. ÛÛÛÛÛ ÛÛÛÛÛ
  63. ÛÛÛÛÛ The AppleScript code below will dump the entire ebook out into ÛÛÛÛÛ
  64. ÛÛÛÛÛ a bunch of pdfs, each containing 5 pages each. We can then ÛÛÛÛÛ
  65. ÛÛÛÛÛ easily merge them together to create one DRM-free PDF containing ÛÛÛÛÛ
  66. ÛÛÛÛÛ all the pages. ÛÛÛÛÛ
  67. ÛÛÛÛÛ ÛÛÛÛÛ
  68. ÛÛÛÛÛ 1. Open your ebook up in the VitalSource app. ÛÛÛÛÛ
  69. ÛÛÛÛÛ ÛÛÛÛÛ
  70. ÛÛÛÛÛ 2. Load up AppleScript and paste in the following code: ÛÛÛÛÛ
  71.  
  72. set totalPages to 340
  73. set startPage to 0
  74. set authorName to "DMT"
  75.  
  76. tell application "VitalSource Bookshelf"
  77. activate
  78. repeat with theIncrementValue from startPage to totalPages - 1 by 5
  79. if (theIncrementValue = 0) then
  80. set thisValue to "a"
  81. else
  82. set thisValue to theIncrementValue
  83. end if
  84. tell application "System Events" to keystroke "p" using command down
  85. tell application "System Events" to keystroke thisValue as string
  86. tell application "System Events" to keystroke tab
  87. tell application "System Events" to keystroke theIncrementValue + 5 as string
  88. tell application "System Events" to keystroke tab
  89. tell application "System Events" to keystroke return
  90. tell application "System Events" to keystroke return
  91. tell application "System Events" to keystroke "p" using command down
  92. tell application "System Events" to keystroke theIncrementValue as string
  93. tell application "System Events" to keystroke tab
  94. tell application "System Events" to keystroke tab
  95. tell application "System Events" to keystroke authorName
  96. tell application "System Events" to keystroke return
  97. delay 7
  98. end repeat
  99. end tell
  100.  
  101. ÛÛÛÛÛ Did you notice how we even took away the sides of our sexy ASCII ÛÛÛÛÛ
  102. ÛÛÛÛÛ art just so you would have hassle-free copy+paste? That is how ÛÛÛÛÛ
  103. ÛÛÛÛÛ much DMT loves you <3 ÛÛÛÛÛ
  104. ÛÛÛÛÛ ÛÛÛÛÛ
  105. ÛÛÛÛÛ I'm not even joking. We really do love you. ÛÛÛÛÛ
  106. ÛÛÛÛÛ ÛÛÛÛÛ
  107. ÛÛÛÛÛ 3. Change the totalPages to the number of pages, and authorName ÛÛÛÛÛ
  108. ÛÛÛÛÛ to whatever you want that field set to in the pdf. ÛÛÛÛÛ
  109. ÛÛÛÛÛ ÛÛÛÛÛ
  110. ÛÛÛÛÛ 4. The delay of 7 seconds is quite conservative, this should do ÛÛÛÛÛ
  111. ÛÛÛÛÛ nicely for most people. If your computer is really fast then ÛÛÛÛÛ
  112. ÛÛÛÛÛ you can probably lower it a bit, but if the saving of any one ÛÛÛÛÛ
  113. ÛÛÛÛÛ pdf takes more than the delay then the script will break and ÛÛÛÛÛ
  114. ÛÛÛÛÛ you'll have to manually stop it. If this happens just set the ÛÛÛÛÛ
  115. ÛÛÛÛÛ startPage to the Next page you don't have. Pages are saved ÛÛÛÛÛ
  116. ÛÛÛÛÛ starting from 0 (page 0 is called "a" in the app, fuck knows why) ÛÛÛÛÛ
  117. ÛÛÛÛÛ and up in increments of 5, so you'll end up with 0.pdf, 5.pdf, ÛÛÛÛÛ
  118. ÛÛÛÛÛ 10.pdf, etc etc. So if it breaks and you have to re-start it, ÛÛÛÛÛ
  119. ÛÛÛÛÛ the number you start it from will always be either 0 or a ÛÛÛÛÛ
  120. ÛÛÛÛÛ multiple of 5. ÛÛÛÛÛ
  121. ÛÛÛÛÛ ÛÛÛÛÛ
  122. ÛÛÛÛÛ 5. So now you have your pdfs, time to join them together. If ÛÛÛÛÛ
  123. ÛÛÛÛÛ you want to do this on MacOS, install the textlive-context ÛÛÛÛÛ
  124. ÛÛÛÛÛ port with: ÛÛÛÛÛ
  125. ÛÛÛÛÛ ÛÛÛÛÛ
  126. ÛÛÛÛÛ # port install texlive-context ÛÛÛÛÛ
  127. ÛÛÛÛÛ ÛÛÛÛÛ
  128. ÛÛÛÛÛ If you want to merge them on a ubuntu or debian linux box, then ÛÛÛÛÛ
  129. ÛÛÛÛÛ you want to do: ÛÛÛÛÛ
  130. ÛÛÛÛÛ ÛÛÛÛÛ
  131. ÛÛÛÛÛ # apt-get install context ÛÛÛÛÛ
  132. ÛÛÛÛÛ ÛÛÛÛÛ
  133. ÛÛÛÛÛ Make sure all the pdfs are in one directory, then cd into that ÛÛÛÛÛ
  134. ÛÛÛÛÛ directory and type: ÛÛÛÛÛ
  135. ÛÛÛÛÛ ÛÛÛÛÛ
  136. ÛÛÛÛÛ # texexec --pdfarrange --result all.pdf `ls -1 *.pdf |sort -n` ÛÛÛÛÛ
  137. ÛÛÛÛÛ ÛÛÛÛÛ
  138. ÛÛÛÛÛ You now have your fully DRM-free PDF :) ÛÛÛÛÛ
  139. ÛÛÛÛÛ ÛÛÛÛÛ
  140. ÛÛÛÛÛ -DMT 2010, be love ÛÛÛÛÛ
  141. ÛÛÛÛÛ ÛÛÛÛÛ
  142. ÛÛÛÛÛ ÛÛÛÛÛ
  143. ßßÛÛÜ ÜÛÛßß
  144. ßÜ Üß
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement