Tutorial "Creating
a protected eBook"
During this tutorial, you will create an eBook with protected pages
requiring registration before they can be viewed.
Step 1. Open the compiler.
Step 2. Click New on the toolbar to create a new project.
Step 3. Select General on the navigation bar and specify the following
setting:
EBook > EBook Name: Enter «My protected eBook»
Step 4. Select Files on the navigation bar and
specify the following settings:
EBook Files > EBook Directory: Specify the path to the Tutorial
3 subdirectory of the Tutorials directory in the directory where
the compiler is installed.
EBook Files > EBook Default File: Specify the path to the file
index.html in this subdirectory.
EBook Files > Left Panel Sub Directory: Specify the path to
the Table of Contents subdirectory of the Tutorial 3 directory.
EBook Files > Left Panel Default File: Specify the path to the
file index.html in the Contents subdirectory.
Compiled eBook > Output eBook EXE File: Change
the path of the final eBook.
Step 5. Select User Interface on the navigation
bar and make the following changes:
Left Panel > Enabled: Make sure this checkbox is selected
for the Left Panel to be enabled.
Step 6. Select Protection on the navigation bar
and do the following:
-
Enable the checkbox Protection > Enabled.
- Use Protection > eBook
Sub-Directory to protect to specify the path to the Protected subdirectory
of the Tutorial 3 directory.

- Use Initialization to enter random sequences
of letters and digits in both fields and click Initialize for
each of them.

Step 7. Click Save on the toolbar to save the
project settings, then click Compile and wait till 100% is reached.
After the compiler creates the eBook file, the Run button will become
active. Click it to run the created application. Do not close the
compiler.
Step 8. Open various eBook pages until you open
the page telling you that «The eBook is not registered».
Step 9. Switch back to the compiler. Make sure the Protection button
is highlighted on the navigation bar and do the following:
- Move down to the Key Generator section.
- Enter your name into
the Reg. Name field.
- Click Generate under the Reg.Code field.
- Click Copy Code under
the Reg.Code field.
Step 10. Switch back to the eBook. Click "Activate
Registration" on
the page offering you to register. Enter the name you generated the
code for. Click Paste to the right from the Reg.Code field. Click
Activate. Now the eBook is registered! Try to open this page again. |