DownloadCourseSmartBooks
DownloadCourseSmartBooks copied to clipboard
getofflineflashpage files?
Hello, I wasn't able to find the getofflineflashpage files in my cache? all i saw were offlineimagepage files, which were encrypted jpgs.
did CourseSmart change patch your trick, or am I doing something wrong?
Hi Philip,
I suspect you are using the "non-flash" version of the site. I'm not sure whether this is book-specific or something you've chosen, (my books were all "flash" verisons), but I'm investigating the encoding mechanism used with the JPGs.
I will update the repo with a fix once I've figured it out. Feel free to poke through the JS in your Google Cache, I suspect the decoding routines will be found there.
Cheers
Hey man,
this is my first time using CourseSmart for ebooks, and it seems like it's book specific as I didn't see any options to turn flash off nor did I touch anything.
And yeah for sure, let me know whenever you have an update, and thanks for this most recent update reply.
- P
On 4/10/14, 11:48 AM, J Skoba wrote:
Hi Philip,
I suspect you are using the "non-flash" version of the site. I'm not sure whether this is book-specific or something you've chosen, (my books were all "flash" verisons), but I'm investigating the encoding mechanism used with the JPGs.
I will update the repo with a fix once I've figured it out. Feel free to poke through the JS in your Google Cache, I suspect the decoding routines will be found there.
Cheers
— Reply to this email directly or view it on GitHub https://github.com/SpikedCola/DownloadCourseSmartBooks/issues/1#issuecomment-40123294.
Hey Guys,
This sweet thing works on the Mac, too! Here's how I did it on the latest version of OSX Mavericks as of August 2014 for a final I'm studying for:
- I'm assuming that you already have a CourseSmart account, already know how to checkout a book in your online library for offline use, and have Windows installed as a guest OS under VMWare Fusion.
- On the Mac, Chrome's cache folder is at: ~/Library/Caches/Google/Chrome Go to details view, sort by date, and snag the files that begin with f_ and don't have extensions
- In Windows, run the decryptor on those files
- Then run the stitcher on the SWF files
- The stitcher will create a PDF with text, graphics, and everything!
Thanx to SpikedCola for this great tool!
...The decryptor will create decrypted SWF files that will also work with the SWFRENDER.EXE utility. I wrote a batch file that converts the decrypted SWF files to decrypted PNGs, that can then be imported into Acrobat:
Set objFSO = Wscript.CreateObject("Scripting.FileSystemObject") Set objShell = Wscript.CreateObject("Wscript.Shell")
strparm = "{path to SWF files}"
'strFileName = "\Slide" strFileName = ""
Set objFolder = objFSO.GetFolder(strParm)
lngKludge = 0 lngCount = 1 + lngKludge lngEnd = 64 + lngKludge
For Each objFile In objFolder.Files ' 4 includes the beginning "." of extension If LCase(Right(objFile.Name, 4)) = ".swf" Then objShell.Exec strparm & "\swfrender.exe -p 1 " & strparm & strFileName & lngCount & _ ".swf -o " & strparm & strFileName & lngCount & ".png" lngCount = lngCount + 1 End If Next
Set objFSO = Nothing Set objShell = Nothing
varToUser = MsgBox("Done. " & lngCount & " attempts processed", VBInformation, "Convert SWF to PDF")
Any luck on the image issue?
I have good news and bad news. Apparently, under Windows 7 running in VMWare Fusion running under Mavericks, on a MacBook Pro, the stitcher will still cut the bottoms of the images off.
SWFRENDER.EXE will extract the pages out as PNGs correctly, but once in a PDF the OCR feature of Acrobat won't work on em. So I have a PDF of the book I wanted but I can't search the text at the moment.
Also, experiencing the image encryption problem. I used the whole process on the regular files though on another textbook flawlessly.
the same problem here...
I avoided the graphics issues by not using SpikedCola's SWF to PDF renderer, and using SWFRENDER.EXE for windows instead. It's a command-line clone of the *nix utility, and it can be batched thusly, in Wscript (save this in a plain text file with a .VBS extension in the same folder as the EXE, edit the global variables, and run it):
' instantiate objects Set objFSO = Wscript.CreateObject("Scripting.FileSystemObject") Set objShell = Wscript.CreateObject("Wscript.Shell")
' global vars strparm = "[d:][path][folderWhereImagesAre]" strFileName = "[filenameOfPNGImagesWithoutTheNumber]" lngKludge = 0 lngCount = 1 + lngKludge lngEnd = 64 + lngKludge
' object pointer to where the images are Set objFolder = objFSO.GetFolder(strParm)
' processing loop For Each objFile In objFolder.Files ' 4 includes the beginning "." of extension If LCase(Right(objFile.Name, 4)) = ".swf" Then ' this runs SWFRENDER.EXE. It converts the SWF to a 960X720 PNG with the correct parms objShell.Exec strparm & "\swfrender.exe -X 960 -Y 720 -p 1 " & strparm & strFileName & lngCount & ".swf -o " & strparm & strFileName & lngCount & ".png" lngCount = lngCount + 1 End If Next
' clean up Set objFSO = Nothing Set objShell = Nothing
' inform user it's done varToUser = MsgBox("Done. " & lngCount & " images processed", VBInformation, "Convert SWF to PNG")
I have followed the instructions from Spikedcola and as Slowly said, it cuts off the bottom of the page when I use the stitcher. Slowly, can you please explain what you mean by edit the global variables? I am new to this. I also tried your instructions, but either I got the wrong program or I am doing something wrong. And after you convert them to png, any recommendation on putting it all in one pdf file?
Once they are png files, just combine them using Adobe Acrobat and add bookmarks and OCR. That is the easy part.
test
Date: Wed, 27 Aug 2014 23:20:51 -0700 From: [email protected] To: [email protected] CC: [email protected] Subject: Re: [DownloadCourseSmartBooks] getofflineflashpage files? (#1)
I have followed the instructions from Spikedcola and as Slowly said, it cuts off the bottom of the page when I use the stitcher.
Slowly, can you please explain what you mean by edit the global variables? I am new to this.
And after you convert them to png, any recommendation on putting it all in one pdf file?
— Reply to this email directly or view it on GitHub.
For those beginning computer users whose primary interest is NOT computers: - have an intermediate or advanced computer user read this, then help you :) For those intermediate computer users who are comfortable with Microsoft Office and/or Adobe apps: - The code that I provided in a previous message is a Windows VBscript script file (not a windows command batchfile, which runs at a command prompt). You put that code in a plain text file with a .vbs file extension, then you edit the global variables, changing them to where you have the SWF files located, then you save the script file and run it. The script will call the SWF renderer once for each decrypted SWF file, extracting the PNG file out of it. Then if you have Acrobat properly installed, if you pick (highlight) all the PNG files and right-click, you will see in the context menu a way to merge all the PNG files into a single PDF file. Choose that, and you're done :) For those advanced computer users, power users, and programmers whose primary interest IS computers: - This should be dirt simple for you, but if you have any questions, email me directly on github :)
Date: Wed, 27 Aug 2014 23:20:51 -0700 From: [email protected] To: [email protected] CC: [email protected] Subject: Re: [DownloadCourseSmartBooks] getofflineflashpage files? (#1)
I have followed the instructions from Spikedcola and as Slowly said, it cuts off the bottom of the page when I use the stitcher.
Slowly, can you please explain what you mean by edit the global variables? I am new to this.
And after you convert them to png, any recommendation on putting it all in one pdf file?
— Reply to this email directly or view it on GitHub.
Hello,
After getting the files on google chrome and using the decrypter, I have put the files created by it in a folder in my desktop. So, first thing I do is download swftools, from the website which contains the swfrender.exe. Then I open notepad, and change the path for the folder (which is located in my desktop), save it as swfrender.vbs and move it to where swfrender.exe (which is in a folder under programs along with other utilities that came with swftools). I double click either swfrender.exe or the vbs file and either I get an error or nothing happens. What have I done wrong? could it be that I wrote the path of the folder wrong?
Thanks
You can run the script from a command prompt, I believe. Here is the link I got the information from: http://technet.microsoft.com/en-us/library/ee156587.aspx
On Thu, Aug 28, 2014 at 7:16 PM, jpdog [email protected] wrote:
Hello,
After getting the files on google chrome and using the decrypter, I have put the files created by it in a folder in my desktop. So, first thing I do is download swftools, from the website which contains the swfrender.exe. Then I open notepad, and change the path for the folder (which is located in my desktop), save it as swfrender.vbs and move it to where swfrender.exe (which is in a folder under programs along with other utilities that came with swftools). I double click either swfrender.exe or the vbs file and either I get an error or nothing happens. What have I done wrong? could it be that I wrote the path of the folder wrong?
Thanks
— Reply to this email directly or view it on GitHub https://github.com/SpikedCola/DownloadCourseSmartBooks/issues/1#issuecomment-53805810 .
This is the newest version of the script: ' ============================================================================== Set objFSO = Wscript.CreateObject("Scripting.FileSystemObject")Set objShell = Wscript.CreateObject("Wscript.Shell") strparm = "Z:\root\Projects\AdobePresenterBreezeExtract\presentation"strFileName = "\Slide" Set objFolder = objFSO.GetFolder(strParm) lngKludge = 0lngCount = 1 + lngKludgelngEnd = 64 + lngKludge For Each objFile In objFolder.Files ' 4 includes the beginning "." of extension If LCase(Right(objFile.Name, 4)) = ".swf" Then objShell.Exec strparm & "\swfrender.exe -X 960 -Y 720 -p 1 " & strparm & strFileName & lngCount & _ ".swf -o " & strparm & strFileName & lngCount & ".png" lngCount = lngCount + 1 End IfNext Set objFSO = NothingSet objShell = Nothing varToUser = MsgBox("Done. " & lngCount & " attempts processed", VBInformation, "Convert SWF to PNG") ' ==========================================================================================
- The .VBS file, the SWFRENDER.EXE file, and all the SWF files that you want to process must be in the same folder, for this to work.2. This may be obvious to me but...this will only work on Windows, it will not work on OSX or any unix distro.3. There are three global variables in the script that you must change: a. STRPARM is the [drive][path] to the folder that has all the files. This must be an absolute path, not a relative path. b. STRFILENAME is the alpha part of the filenames of all the SWF files, fronted by a backslash. So if your SWF files are named SLIDE1.PNG, SLIDE2.PNG, etc, then this variable should be changed to \SLIDE c. LNGEND is the count of how many SWF files you have. So if you have 64 SWF files, then you would change the number to 64.4. Save the .VBS file, and run it. It should work :)
Date: Thu, 28 Aug 2014 14:46:58 -0700 From: [email protected] To: [email protected] CC: [email protected] Subject: Re: [DownloadCourseSmartBooks] getofflineflashpage files? (#1)
Hello,
After getting the files on google chrome and using the decrypter, I have put the files created by it in a folder in my desktop.
So, first thing I do is download swftools, from the website which contains the swfrender.exe. Then I open notepad, and change the path for the folder (which is located in my desktop), save it as swfrender.vbs and move it to where swfrender.exe (which is in a folder under programs along with other utilities that came with swftools). I double click either swfrender.exe or the vbs file and either I get an error or nothing happens. What have I done wrong? could it be that I wrote the path of the folder wrong?
Thanks
— Reply to this email directly or view it on GitHub.
Thanks guys for the help. I really appreciate it.
So, letting you know that I am running windows 7, I get the cut off portion by using Spikedcola's way. Slowly, I have followed your latest instructors but when I run it, and says that it's done and the attempts have been processed, but the files look the same.
I think it's because on the step you told me that STRFILENAME should be changed. Remember that after I use the decrypter, the files are numbered, and some have roman numerals... how should I change that then?
The script will break if any of the SWF file names don't end with a number. Also, all the SWF files have to have the .SWF file extension.
If you want to process, say, 40 SWF files, it should say that 40 files were processed, and you should see 40 PNG files in the processing folder. Once you see that, you can delete the SWF files, then just merge all the PNG files in Acrobat. Date: Thu, 28 Aug 2014 16:10:48 -0700 From: [email protected] To: [email protected] CC: [email protected] Subject: Re: [DownloadCourseSmartBooks] getofflineflashpage files? (#1)
Thanks guys for the help. I really appreciate it.
So, letting you know that I am running windows 7, I get the cut off portion by using Spikedcola's way.
Slowly, I have followed your latest instructors but when I run it, and says that it's done and the attempts have been processed, but the files look the same.
I think it's because on the step you told me that STRFILENAME should be changed. Remember that after I use the decrypter, the files are numbered, and some have roman numerals... how should I change that then?
— Reply to this email directly or view it on GitHub.
Unless the processing folder is somewhere else, I don't see any PNGs. Since my SWF are already numbered, should I leave 'strFileName = "\Slide" strFileName = "" just like that?
Yes, if your SWF files are already named SLIDE1.PNG, SLIDE2.PNG, etc, then you can leave strFileName alone. Just make sure that if you have anything other than 64 SWF files, to change that variable too, to how many SWF files you have. And, both the script AND the EXE file have to be in the same folder as the SWF files and the script has to be run in that folder. BTW, since this is in Windows, case is not important. If anybody converts my scripts to a BASH shell script, then it will have to take case into account.
Date: Thu, 28 Aug 2014 16:30:06 -0700 From: [email protected] To: [email protected] CC: [email protected] Subject: Re: [DownloadCourseSmartBooks] getofflineflashpage files? (#1)
Unless the processing folder is somewhere else, I don't see any PNGs. Since my SWF are already numbered, should I leave 'strFileName = "\Slide" strFileName = "" just like that?
— Reply to this email directly or view it on GitHub.
I guess I didn't explain it right. After decrypting the files using Spikedcola's decrypter, I get files like this "1,2,3, xi, xii" , How should I change the strFileName for these?
Thanks again
...suppose you have a set of SWF files that are called this:123xixii you would rename the files like this:1 ---> Slide1.swf2 ---> Slide2.swf3 ---> Slide3.swfxi ---> Slide4.swfxii ---> Slide5.swf That way, when the script looks for the SWF files it will find them. Now, in the statement that actually runs the EXE, you'll see these two numbers: 960 720these are the width and height, respectively, of the resulting PNG files. So if you want the width and length of the final PNG files to be something different, you can change it here. If you want to, you can add any parameter that SWFRENDER supports here, and the script will make SWFRENDER do it to all the resulting PNGs. Date: Thu, 28 Aug 2014 16:37:17 -0700 From: [email protected] To: [email protected] CC: [email protected] Subject: Re: [DownloadCourseSmartBooks] getofflineflashpage files? (#1)
I guess I didn't explain it right. After decrypting the files using Spikedcola's decrypter, I get files like this "1,2,3, xi, xii" , How should I change the strFileName for these?
Thanks again
— Reply to this email directly or view it on GitHub.
Ok, now that we are on the same page. I understand what you mean by renaming the files to slide 1, slide 2 and so on, but that would take forever if i had a lot of files. Unless there is a quick way that I am not aware of. I was asking if there is a way I could keep the files numbered the way they are and still get the PNGs, if not, did you mean for me to rename them one by one?
...I don't remember having nearly that much trouble with this...So, when I did this, I copy/pasted the files in Chrome's cache into a temporary folder. Then I ran the decryptor on them, and it named the files in an intuitive way, I.E. I could use 1 command at the windows command prompt to get the files named properly, I didn't have to add the 1,2,3,4, and so on manually. For example you can add a file extension to a set of files in a folder that don't have file extensions by entering : ren *. *.swf
That would rename a set of files like so:1 ---> 1.swf2 ---> 2.swf3 ---> 3.swf
Date: Thu, 28 Aug 2014 17:08:13 -0700 From: [email protected] To: [email protected] CC: [email protected] Subject: Re: [DownloadCourseSmartBooks] getofflineflashpage files? (#1)
Ok, now that we are on the same page. I understand what you mean by renaming the files to slide 1, slide 2 and so on, but that would take forever if i had a lot of files. Unless there is a quick way that I am not aware of. I was asking if there is a way I could keep the files numbered the way they are and still get the PNGs, if not, did you mean for me to rename them one by one?
— Reply to this email directly or view it on GitHub.
You are too advanced on this material than I am, that's probably why you didn't have any trouble. Haha. But I don't get to choose the file names when I use the decrypter, it's already set for me. I double click the decrypter, find the output and set an input, and the files come out already numbered for me. But with your script, I have to add the word "Slide" in front of every numbered file.
...then in the script remove the word slide and remove the letters 'swf' and try it...it really helps if you know how to code and know commands...
Sent from my Samsung Galaxy Tab®4
-------- Original message -------- From: jpdog [email protected] Date:08/28/2014 5:33 PM (GMT-07:00) To: SpikedCola/DownloadCourseSmartBooks [email protected] Cc: Slowly [email protected] Subject: Re: [DownloadCourseSmartBooks] getofflineflashpage files? (#1)
You are too advanced on this material than I am, that's probably why you didn't have any trouble. Haha. But I don't get to choose the file names when I use the decrypter, it's already set for me. I double click the decrypter, find the output and set an input, and the files come out already numbered for me. But with your script, I have to add the word "Slide" in front of every numbered file.
Reply to this email directly or view it on GitHub: https://github.com/SpikedCola/DownloadCourseSmartBooks/issues/1#issuecomment-53824607
It still didn't work, and I tried everything I could think of. Thanks for your help, I guess it's impossible for me. You should make a video tutorial... just saying. Haha.
...Ssiigghh. This post is off-topic, but I just can't help getting onto my soapbox because I feel so strongly about it. This session underscores why I am a massive proponent of skill classes support in computing software and hardware design. I see that dozens of folks have accessed the site, and because they are advanced users and have programming skills I haven't heard from them, I'm sure that a few have already written a unix shell script that does the whole thing in one step. And one or two have compiled SpikedColas' great source code and even the SWFtools source code for their system (I'd like to compile the code for Android for my tablet). Operating systems and other software should be designed with skill classes in mind, not designed ONLY for the lowest-common-denominator-basic-newbie-primary-interest-is-not-computers type of user. Dumbed-down software design doesn't annoy this skill class, because it's designed for them; advanced power users and computing pros (like me) don't care because they can hack away the dumbed-downness by configuration modification or scripting. Who it frustrates is the intermediates; those with beyond basic skill but not yet at my level. The dumbed-downness irritates them to no end, but they can't yet hack it away. This session took a lot of time, with no success. Developers and advanced power users don't have the time, so they design things for the lowest-common-denominator skill class - but then they forget the intermediate users. I don't...when I design software I keep this stuff in mind, and try to get skill class info from a new user right away and then present the proper user interface as appropriate. For example, if I were in charge of Aero for Windows, The first time a new user logs in I'd throw up a wizard that asks a few questions about the user's tech skill. If the user is what everybody seems to design for, I'd handhold the user every step and make all tasks available thru easy-to-use wizards. Intermediates would always get the chance to hack it away in a dialog box. At the other end of the skill class scale, if the user is for example an advanced power user or a computing pro, everything would be set to Expert mode automatically and they'd get a command or shell prompt by default. [stepping off soapbox]
Date: Thu, 28 Aug 2014 18:17:25 -0700 From: [email protected] To: [email protected] CC: [email protected] Subject: Re: [DownloadCourseSmartBooks] getofflineflashpage files? (#1)
It still didn't work, and I tried everything I could think of. Thanks for your help, I guess it's impossible for me. You should make a video tutorial... just saying. Haha.
— Reply to this email directly or view it on GitHub.
Curious if any progress has been made on decrypting the jpg files CourseSmart is using.
I am wondering the same as well, most of the above posts discuss the image cut off problem, which I never had, probably because I am using a 1080p screen. The image decryption problem still annoys me though.