Adobe RMSDK and DL Reader

Testing Book2png

You will need to create a cmd.txt file and load it into the mobile device to use Book2png. The Book2png sample application does not have an interface for devices that you can use to load books or to control rendering options. The cmd.txt file will include a command-line argument for running Book2png, including an option or series of options, and a file name, and the path name might be needed as well. The Book2png command line and options need to be in a single line in the cmd.txt file.

When book2png launches, it will create the PNG files according to the options provided in your cmd.txt file. If you change cmd.txt file, you will need to stop and then restart the app.

For EPUB 2 and PDF files, refer to RMSDK_User_Manual(obj).pdf section on Book2png (page 31) for a complete list of command line options.

Note:The Book2png will only read the first line of a series of command line arguments, so make sure that any commands you add to the cmd.txt file are expressed as a single line. If you enter a set of command line arguments with line breaks, so that the command is shown over four or five lines in the text file, Book2png will only read the first line, and will ignore the rest.


Install the Android Application Package (apk) file and create a “book2png” folder in the /mnt/sdcard on the mobile device.

Copy the test EPUB or PDF files to that folder.

Create a “data” folder inside new “book2png” folder.

Specify the path to test files as:
book2png /mnt/sdcard/book2png/sample.epub
The system will create a log file, book2pnglog.txt, and store it in the directory book2png/data.


Use iTunes or other tools you are familiar with to install the Book2png app.

Use an app like iExplorer on Mac. With this app you can examine the Book2png-iOS app folder structure and copy files for testing.

Copy the test EPUB and PDF files to the app’s Documents folder or sub-folders (if needed) using iExplorer for Mac. Copy these files from the Mac to the mobile device.

The path to test file are relative to the Documents folder.

For EPUB 3 books, a sample set of command line options in the cmd.txt file might look like this:
book2png -page-count 1 -epubreader 3 /mnt/sdcard/book2png/sample_epub3.epub