For the complete experience, please enable JavaScript in your browser. Thank you!

  • Creative Cloud
  • Photoshop
  • Illustrator
  • InDesign
  • Premiere Pro
  • After Effects
  • Lightroom
  • See all
  • See plans for: businesses photographers students
  • Document Cloud
  • Acrobat DC
  • Sign
  • Stock
  • Elements
  • Marketing Cloud
  • Analytics
  • Audience Manager
  • Campaign
  • Experience Manager
  • Media Optimizer
  • Target
  • See all
  • Adobe for enterprise
  • Acrobat Reader DC
  • Adobe Flash Player
  • Adobe AIR
  • Adobe Shockwave Player
  • All products
  • Creative Cloud
  • Individuals
  • Photographers
  • Students and Teachers
  • Business
  • Schools and Universities
  • Creative Cloud
  • Marketing Cloud
  • Document Cloud
  • Stock
  • Elements
  • All products
  • Get Support
    Find answers quickly. Contact us if you need to.
    Start now >
  • Learn the apps
    Get started or learn new ways to work.
    Learn now >
  • Ask the community
    Post questions and get answers from experts.
    Start now >
Adobe is changing the world through digital experiences. Our creative, marketing and document solutions empower everyone — from emerging artists to global brands — to bring digital creations to life and deliver them to the right person at the right moment for the best results.
    • About Us
    • Newsroom
    • Careers At Adobe
    • Privacy
    • Security
    • Corporate Responsibility
    • Customer Showcase
    • Investor Relations
    • Events
    • Contact Us
Preorder Estimated Availability Date. Your credit card will not be charged until the product is shipped. Estimated availability date is subject to change. Preorder Estimated Availability Date. Your credit card will not be charged until the product is ready to download. Estimated availability date is subject to change.
Qty:
vat included
Subtotal
Promotions
Estimated shipping
Tax
Calculated at checkout
Total
Review and Checkout
Adobe Developer Connection / Digital publishing /

A simplified Note-taking System for use in DPS Folios

by James Lockman

James Lockman
  • http://blogs.adobe.com/jlockman

Content

  • Improved Reader Context
  • Using the note-taking system

Created

25 November 2014

Page tools

Share on Facebook
Share on Twitter
Share on LinkedIn
Bookmark
Print
Digital Publishing Suite, Pr...
Was this helpful?
Yes   No

By clicking Submit, you accept the Adobe Terms of Use.

 
Thanks for your feedback.

Prerequisite knowledge

  • This article requires that the readers have an understanding of Web Content overlays in DPS. In addition, CSS styling and HTML coding are required to extend or customize the solution.

User level: All

Required Adobe products (retail)

  • Digital Publishing Suite, Enterprise Edition
  • InDesign CS6 or higher

Additional required other products (third-party/labs/open source)

  • Content Context functions found in the DPS DevNet article on determining Content Context.
    • http://www.adobe.com/devnet/digitalpublishingsuite/articles/content-context.html
  • HTML Editor of choice for customization

Sample files

  • Notes_v2.zip

By downloading software from the Adobe website you agree to the terms of our license agreement. Please read it before downloading.

Note: If you have questions about this article, use the DPS forum. Please don’t contact technical support with questions about Adobe Developer Connection articles.

Introduction

The ability to take notes in a folio is an important requirement for many educational and corporate use cases. Customers have implemented many different solutions, two of which are already documented on the DPS Developer Center: Derek Lu’s “Add note-taking functionality to a folio” article and this author’s “A Flexible Note-taking System for use in DPS Folios” article. This new system seeks to further simplify note-taking overlays by extending the functions documented in “A Flexible Note-taking System for use in DPS Folios” to include the folioDataService methods available with the DPS Reading SDK. folioDataServce provides access to the current page number as well as other metadata about the folio and its articles.

In addition, this new note-taking system consists of a single HTML file with supporting JavaScript, CSS and assets that can be used on a master page in InDesign to provide note-taking for every page in every article in a folio, with no configuration and no custom coding.

(If you have my DPS Examples app installed on your iPad, and you're reading this blog on your iPad, then tap here to see an example of a notes overlay in my DPS Examples app.)    

Improved Reader Context

In this author’s earlier note-taking example, we used the Content Context JavaScript functions to determine the folio, article and HTML file that was currently being displayed to the reader. At the time when that article was written, there was no way to programmatically determine the current page that was currently being displayed. DPS Release 30 introduced a new set of methods called the folioDataService, which gives Web Overlays access to much more information about the folio while it’s being read.

folioDataService has several methods that can be used to determine folio and article metadata as well as the current reading position. You can learn more and see a detailed example at Derek Lu’s article about the R30 APIs. Brian Hinkelman uses these same APIs for his “Customizing DPS Navigation with the Reading API” article. Both of these provide detailed instructions and example code showing how to use the R30 Reading SDK.

The new note-taking overlay uses folioDataService to gather the following information about the current reader’s context and uses it in the note-taking system:

  • Current folio title (which appears in the Library)
  • Current article title (which appears in the Table of Contents)
  • Current page of the current article

These three items along with the existing Content Context JavaScript comprise the indexing components of the new overlay. Since we can now programmatically determine which page any given occurrence of the overlay is on, we can use that information to index our notes. Access to the the page number as well as the folio, article, and HTML file to index our notes, allows us to use one HTML file as the common overlay for all notes within a folio.

The overlay consists of the following components:

  • index.html: the html file that renders the overlay
  • styles.css: the CSS that styles the overlay
  • notes.js: the JavaScript that comprises the note-taking functionality
  • AdobeReadingAPI.min.js: the DPS Reading API libraries
  • images folder: contains the two states of the note icon in the overlay (add.png and edit.png)

A common strategy is to place the note-taking overlay on a Master page in InDesign. The Web Content Overlay that will display the note-taking system needs to be at the top of all other content, so it is best to create a layer called “notes” at the top of the layer stack in your InDesign document and to place the overlay on this layer. It is best to make the Web Content Overlay fill the entire screen, as it contains a semitransparent background that will cover the page content when it is active. The overlay needs to be set to AutoPlay with 0 or .125 sec delay; it needs to be transparent; it needs to allow user interaction; and it needs access to Entitlement Information. This last requirement is critical, because without access to Entitlement information, folioDataService will not work.

fig1_notes_master
Figure 1. In this example, the note-taking system has been placed on a Master Page. It completely fills the page, and it will appear on all pages that use this Master Page.

Once you have created your overlay, you can lock the “notes” layer. In order to display the note-taking overlay in your layout, simply apply this master page to any page of your article on which you want to allow readers to take notes.

Using the note-taking system

To use the note-taking system, all a reader needs to do is to tap the icon in the lower right hand corner of the screen, and the note-taking interface will appear. The icon will change depending on whether there is a note stored for the current page. If there is no note, then the icon has a green “plus” sign on it, and if there is a note, then it has a yellow pencil on it. The icon is semitransparent, and since it is just a .png, you can adjust the icon to meet your style and branding requirements.

fig2_overlay
Figure 2. The overlay appears as an icon in the lower right hand corner of the page. Its appearance depends on whether there is a note on the page. In this instance, there is no note on the page.
fig3_pencil
Figure 3. In this instance, there is a note on the page, so the icon changes to include a pencil.

The note overlay itself consists of a text entry area and five controls. In the upper right hand corner of the overlay is the close box. Along the bottom of the overlay are four actions: Email all of the notes; Email this note; Delete this note; Delete all notes. Tapping on either of the Email buttons will format an email message and send it to the Mail app on the tablet. While the overlay works well on iOS, you will likely need to adjust the message format for Android and Windows to accommodate their mail applications.

fig4_controls
Figure 4. When the reader taps the icon, the note overlay appears. The controls are self-explanatory.

The email message now reports the following information:

  • The Folio Title of the folio to which the notes refer
  • The Article Title (if available) of the article to which the notes refer
  • The page number of the article
  • The note content
fig5_format
Figure 5. Format of a single note when the user taps the “Email This Note” button

If the user emails all the notes, then the notes are listed with page number and article detail as well as the folio title for reference.

fig6_emailall
Figure 6. Format of the notes list when the user taps the “Email All Notes” button

The other two buttons delete either the current note or all of the notes, respectively. The user will see a dialog asking for confirmation, so they will have a chance to decline if they tap the button by mistake.

Where to go from here

While this system offers an easy to manage note-taking solution for many use cases, it is likely that customers will want to extend the content of the notes to include other functions and a more customized experience for the reader. With CSS treatment, it is possible to brand the sample code to match most requirements. One interesting possibility is to include snapshots of the pages in which the notes appear. At the present time, there is no way to pass an image or any other attachment to the mail application, so it will be necessary to provide an online service to host the page images and then link to them in the body of the email message. If a regular naming convention is followed, then it is easy to determine the file name of the appropriate image, since the system knows the folio, article and page number for each note.

Comments are currently closed as we migrate to a new commenting system. In the interim, please provide any feedback using our feedback form. Thank you for your patience.

Creative Commons License
This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License

Choose your region United States (Change)   Products   Downloads   Learn & Support   Company
Choose your region Close

Americas

Europe, Middle East and Africa

Asia Pacific

  • Brasil
  • Canada - English
  • Canada - Français
  • Latinoamérica
  • México
  • United States
  • Africa - English
  • Österreich - Deutsch
  • Belgium - English
  • Belgique - Français
  • België - Nederlands
  • България
  • Hrvatska
  • Cyprus - English
  • Česká republika
  • Danmark
  • Eesti
  • Suomi
  • France
  • Deutschland
  • Greece - English
  • Magyarország
  • Ireland
  • Israel - English
  • ישראל - עברית
  • Italia
  • Latvija
  • Lietuva
  • Luxembourg - Deutsch
  • Luxembourg - English
  • Luxembourg - Français
  • Malta - English
  • الشرق الأوسط وشمال أفريقيا - اللغة العربية
  • Middle East and North Africa - English
  • Moyen-Orient et Afrique du Nord - Français
  • Nederland
  • Norge
  • Polska
  • Portugal
  • România
  • Россия
  • Srbija
  • Slovensko
  • Slovenija
  • España
  • Sverige
  • Schweiz - Deutsch
  • Suisse - Français
  • Svizzera - Italiano
  • Türkiye
  • Україна
  • United Kingdom
  • Australia
  • 中国
  • 中國香港特別行政區
  • Hong Kong S.A.R. of China
  • India - English
  • 日本
  • 한국
  • New Zealand
  • Southeast Asia (Includes Indonesia, Malaysia, Philippines, Singapore, Thailand, and Vietnam) - English
  • 台灣

Commonwealth of Independent States

  • Includes Armenia, Azerbaijan, Belarus, Georgia, Moldova, Kazakhstan, Kyrgyzstan, Tajikistan, Turkmenistan, Ukraine, Uzbekistan

Copyright © 2016 Adobe Systems Incorporated. All rights reserved.

Terms of Use | Privacy | Cookies

AdChoices