Professional Documents
Culture Documents
Full Ebook of Enhancing Adobe Acrobat Forms With Javascript Take Your Forms To The Next Level 1St Edition Jennifer Harder Online PDF All Chapter
Full Ebook of Enhancing Adobe Acrobat Forms With Javascript Take Your Forms To The Next Level 1St Edition Jennifer Harder Online PDF All Chapter
https://ebookmeta.com/product/enhancing-adobe-acrobat-forms-with-
javascript-take-your-forms-to-the-next-level-2nd-edition-
jennifer-harder/
https://ebookmeta.com/product/javascript-next-your-complete-
guide-to-the-new-features-introduced-in-javascript-starting-from-
es6-to-es9-1st-edition-raju-gandhi/
https://ebookmeta.com/product/forms-of-dictatorship-power-
narrative-and-authoritarianism-in-the-latina-o-novel-1st-edition-
jennifer-harford-vargas/
https://ebookmeta.com/product/a-companion-to-literary-forms-
fifth-edition-padmaja-ashok/
https://ebookmeta.com/product/a-companion-to-literary-forms-no-
ocr-padmaja-ashok/
https://ebookmeta.com/product/the-ultimate-guide-to-adobe-
acrobat-dc-2nd-edition-for-pc-mac-daniel-j-siegel-pamela-a-myers/
https://ebookmeta.com/product/flamenco-music-history-forms-
culture-1st-edition-manuel/
Jennifer Harder
Standard Apress
Trademarked names, logos, and images may appear in this book. Rather
than use a trademark symbol with every occurrence of a trademarked
name, logo, or image we use the names, logos, and images only in an
editorial fashion and to the benefit of the trademark owner, with no
intention of infringement of the trademark. The use in this publication
of trade names, trademarks, service marks, and similar terms, even if
they are not identified as such, is not to be taken as an expression of
opinion as to whether or not they are subject to proprietary rights.
The publisher, the authors and the editors are safe to assume that the
advice and information in this book are believed to be true and accurate
at the date of publication. Neither the publisher nor the authors or the
editors give a warranty, express or implied, with respect to the material
contained herein or for any errors or omissions that may have been
made. The publisher remains neutral with regard to jurisdictional
claims in published maps and institutional affiliations.
Note You can find the project files for the book at
www.apress.com/9781484228920.
Any source code or other supplementary material referenced by the
author in this book is available to readers on GitHub. For more detailed
information, please visit http://www.apress.com/source-code.
Acknowledgments
Because of their patience and advice, I would like to thank the following
people, for without them I could never have written this book:
My parents, for encouraging me to read large computer textbooks
that would one day inspire me to write my own books
My dad, for reviewing the first draft before I sent a proposal
My program coordinator, Raymond Chow, at Langara College, who
gave me the chance to teach evening courses and allowing me to find
new and creative ways to teach software
My various freelance clients who I have learned from and researched
more about forms and form layout through working on their projects
I would also like to thank Spandana Chatterjee and Mark Powers at
Apress for showing me how to lay out a professional textbook and
pointing out that even when you think you’ve written it all, there’s still
more to write. Also, thanks to the technical reviewer for providing
encouraging comments and to the rest of the Apress team for being
involved in the printing of this book and making my dream a reality
again. I am truly grateful and blessed.
Table of Contents
Part I: Basic Form Improvements
Chapter 1:A Fundamental Forms Primer
Forms Review
Fields Refresher
Properties Refresher
Text Box Field Properties and Date Field Properties Dialog
Boxes
Dropdown Properties Dialog Box
List Box Properties Dialog Box
Check Box Properties Dialog Box
Radio Button Properties Dialog Box
Button Properties and Image Properties Dialog Box
Digital Signature Properties Dialog Box
Barcode Properties Dialog Box
Tabs Refresher
Editing Your Form with the More Menu and Right Pane
Setting the Field Tab Order Using the Menu Options
Clearing a Form While Working
Summary
Chapter 2:Introduction to Actions
Getting Started
Rating Forms Value Averaging and Sum:Working with Text
Fields
The Validate Tab
The Calculate Tab for the Grand Total Using Sum
Sum and Averaging Using Check Boxes or Radio Buttons with
Text Fields
Using Radio Buttons on Page 3 of the Project
Using Check Boxes on Page 3 of the Project
Turning Check Boxes into Radio Buttons
Basic Action Button Triggers for Reset Buttons and Printing
Buttons
Reset Button
Print Form Button
Summary
Chapter 3:Creating a QR Code Custom Stamp
Customizing Your QR Code Stamp
QR Code Creation
Using the Stamp Tool
Final Thoughts:QR Code for Professional Printing
Summary
Chapter 4:Buttons, Navigation, Form, and Nonform Actions
Creating a Button Icon
Example of a Button as a Label Only
Example of a Button Combination of Icon Only
Nonform Properties Actions
Pages
Bookmarks
Web and Custom Hyperlinks
Rich Media Nonform Navigation Buttons
Layers Basic Actions
Other Nonform Actions That Can Affect Sticky Note or
Markup Tools Indirectly
Triggers for Actions
Choose an Action That Requires No Code
Newsletter Navigation with Buttons
Form Navigation with a Button as a Helpful Hint
Adding a Comb of Characters
Before Comb and After Comb
More Action Triggers to Show and Hide
Hide and Clear Fields Button
Set Layer Visibility
Using Bookmarks
Using Buttons
Summary
Part II: Simplified Field Notation and Basic JavaScript
Chapter 5:Introduction to Simplified Field Notation and JavaScript
Getting Started
Text Field, Date, and Drop-Down List Properties
Actions Tab
Format Tab
Validate Tab
Calculate Tab
Check Box, Radio Button, Image Field, and Button Properties
List Box Properties
Digital Signature Properties
Barcode Properties
Global Document JavaScript
Web Links and References
Regular Forms vs.E-Signature Forms
JavaScript and Acrobat on the Document Level
Summary
Chapter 6:Basic and Complex Calculations
Getting Started
Sum Value
Simplified Field Notation
JavaScript Custom Calculation Script
Final Thoughts on Working with the Calculate Tab
JavaScript Script Validation for Displaying Zero
The Final Line of Code
Drop-Down Alternatives
Set Field Calculation Order
Resetting Your Field of Focus
Summary
Chapter 7:Format Calculations
Number Formatting
Formatting with a Percentage
A Workaround for the Percentage
Reset Fields with JavaScript
Date Formatting
Date Formatting with JavaScript
Time Formatting
Time Formatting with JavaScript, a Custom Example
Comb of Characters for Dates
Special Formatting
Final Thoughts
Drop-Down Alternatives
More Information on Adding Decimal Places and Leading
Zeros
Summary
Chapter 8:Various JavaScript Alerts, Notes, and Time Stamps
Alert Types
Create a Document JavaScript
Viewer Version and Validation Alert
Document Actions
Document Will Close
Document Will Print
Alerts Working with Buttons
Adding a Comment Note, Signature, and Time Stamp
Signature Field and Time Stamp
Summary
Chapter 9:Create Help for Clients with Rollover Text and Alerts
The Rollover Method
Mouse Enter
Mouse Exit
Longer Array Example (Optional)
Extra Noncustom JavaScript Check Box Example
How to Show and Hide Fields with JavaScript
The Default Text Method
The Alert Method
Customer’s Full Name
Date
Customer Order Code
Customer’s Company Name
How to Duplicate Text for Multiple Fields and Make Fields
Read-Only
Set Fields to Read-Only with JavaScript
Final Thoughts
Summary
Chapter 10:Various Types of Formatting with JavaScript
Adding Global Formatting to Text Fields
Color Properties
Array and Variable Examples of Formatting Properties
Multiline Buttons
Multiline Text
Complex Formatting Using Check Boxes and a Text Field
Rich Text Formatting for Text Fields and Comments
Comment Example
Final Thoughts on Formatting with Text
Silent Printing
Options for Submit Button Using Email
Summary
Part III: Working with More Complex Forms
Chapter 11:Validation with Text Boxes, Alerts, and Radio Buttons
Money Transfer Example
Alternate Way to Work with Radio Buttons Without Alerts
Changing the Shipping Price Using Radio Buttons
Additional Radio Button Example with JavaScript and Text
Fields and How to Change Data for Time
Setting Up the Text Fields
Check Box Variation with Date Text Fields
Notes on Changing Formatting Options for Radio Button,
Check Box, and Button Style
Text Field Validation with Regular Expressions
Telephone Validation
Name Validation
Account Number Validation
Email and URL Validation
Another Phone and Date Example with Two Variables
Final Thoughts on Formatting Fields
Summary
Chapter 12:Working with Dropdown Lists
Current Skills Request Form
Parts Order Form
Drop-Down Lists with Select Dates and Discounts
Final Thoughts
Load a Lengthy Single Drop-Down or List Menu
Tips on Changing Custom Formatting for Drop-Down Lists
with JavaScript
Summary
Chapter 13:Working with List Boxes
List Box Priority List with Control Buttons
The Add Button
The Delete Button
The Clear or Reset Button
The Up Button
The Down Button
Check Box, Drop-Down, and List Box:Example 1
Check Box, List Box, and Multi-Drop-Down:Example 2
Button Slide Show Variation
Extra Example Priority List Improved
Final Thoughts
Hidden Fields
Using List Boxes for a Number Rating
Notes on Changing Custom Formatting for List Boxes
Summary
Chapter 14:Advanced Navigation:The Pop-Up Menu
The Pop-Up Menu Example
Add a Pop-Up Menu Using a Bookmark
Final Thoughts
Summary
Part IV: Beyond the Basics
Chapter 15:Action Wizard and JavaScript
Working with the Action Wizard
Reuse JavaScript from Chapter 8
Is It a Custom Action or a Custom Command?
Create and Manage Custom Commands
Summary
Chapter 16:Multistate Check Boxes
The Problem of Multistate Check Boxes
Bonus Star Rating Idea
Select All or Deselect All Check Boxes at Once
Summary
Chapter 17:Importing an Image into a Button
Creating the Button
Summary
Chapter 18:Multiple Formatting
The Problem of Multiple Formatting
Option 1:Do It Yourself
Price Script
No Price Script
Adding a Degree Symbol and Formatting Range
Option 2:Contact a Professional
Summary
Chapter 19:Digital Signatures and Barcodes
Digital Signatures and Security
Working with Digital Signatures and Other Adobe Security
Tools
Create a Security Puzzle
Barcodes
Summary
Chapter 20:What Are E-Signature Forms and Web Forms?
A Brief Look at Request E-Signatures and Resources
What Are Web Forms?
Summary
Part V: Putting It into Practice
Chapter 21:Homework Assignments
Homework Assignment 1:Show and Hide
Homework Assignment 2:Working with JavaScript to Create
Formulas
Area of a Circle A = π r 2
Field:CircumferenceRow1 Circumference of a Circle C =2 π
r
Field: VolumeRow1 Volume of a Sphere V = 4/3 π r3
Field:FahrenheitRow1 Celsius to Fahrenheit to Formula.(°C
x 9/5) + 32 =°F.
Field:CelsiusRow1_2 Fahrenheit to Celsius Formula.(°F -
32) x 5/9 =°C
Homework Assignment 3:Custom Validation and Regular
Expressions
Homework Assignment 4:Personal Drop-Down List Menu and
Definitions Text Box
Summary
Index
About the Author
Jennifer Harder
has worked in the graphic design
industry for more than 15 years. She has
a degree in graphic communications and
is currently teaching Adobe Acrobat and
Adobe Creative Cloud courses at Langara
College. She is the author of several
Apress books and related videos.
About the Technical Reviewer
Sourabh Mishra
is an entrepreneur, developer, speaker, author, corporate trainer, and
animator. His programming experience includes C/C++, ASP.NET, C#, VB
.NET, WCF, SQL Server, Entity Framework, MVC, Web API, Azure, jQuery,
Highcharts, and Angular. Sourabh has been awarded MVP status. He has
the zeal to learn new technologies and enjoys sharing his knowledge on
several online community forums.
He is a founder of IECE Digital and Sourabh Mishra Notes—online
knowledge-sharing platform where people can learn new technologies
easily and comfortably.
He can be reached through the following platforms:
Email: sourabh_mishra1@hotmail.com
YouTube:
https://www.youtube.com/@SourabhMishraNotes
Instagram:
https://www.instagram.com/sourabhmishranotes/?
hl=en
Twitter: @sourabh_mishra1
Part I
Basic Form Improvements
© The Author(s), under exclusive license to APress Media, LLC, part of Springer
Nature 2023
J. Harder, Enhancing Adobe Acrobat Forms with JavaScript
https://doi.org/10.1007/978-1-4842-9470-3_1
Chapter Goal: Creating the right form before you add JavaScript to
your PDF fields takes time and careful planning. Therefore, it’s
important that you become familiar with each of the form tools and the
properties that are associated with them. This chapter provides a quick
overview of forms, fields, properties, and tabs that will serve as the
basis for future chapters. If you are already comfortable with these
topics, feel free to jump ahead to Chapter 2.
Forms Review
Each form field has within it properties that can be accessed by right-
clicking the form field. The properties of that form field are organized
by tabs. Each form field has slightly different properties and therefore
different tabs.
Throughout this book you will be working on lessons with a variety
of different PDF forms and documents for a fictitious company called
the Tourmaline Mining Corporation.
Each chapter (except for Chapters 1 and 5) comes with JavaScript in
a .txt file and PDF files that you can open and compare. You can either
view the final PDF file or use the start PDF file and follow along with
the notes in these chapters. You can find the link to these files in the
introduction and then locate that specific Chapter Project folder.
Note Please be aware that the PDF files used with this book should
be opened only in Adobe Acrobat Pro, Acrobat Reader, or earlier
versions of Acrobat DC and not in your web browser or any other
PDF creation/reader program. Other PDF readers have been known
to corrupt the JavaScript code within the Acrobat PDF files, and then
the calculations fail to work.
Upon opening Acrobat Pro, make sure to check your preferences at Edit
➤Preferences ➤ Forms. Refer to Figure 1-1. They should be set to the
default settings shown in Figure 1-2.
Figure 1-1 Open Acrobat Pro using your Creative Cloud Desktop App
Figure 1-2 Default settings for the Forms tool found in the Preferences
In this case, all of the General check boxes are enabled.
Automatically calculate field values
Automatically adjust tab order when modifying fields
Show focus rectangle
Show text field overflow indicator
Show field preview when creating or editing form fields
Automatically detect Form Fields
Auto-enable text editing in Prepare Form
Highlight Color’s check is enabled to show border hover color for
fields. Light blue is the color for highlighted fields, and red is the
highlight color for required fields.
Auto-Complete is set to Off, and there is a description below it
explaining what this setting means. Other options in the list are Basic or
Advanced.
At this point, if these are your settings, you can click Cancel and Exit
or make your settings like mine and click OK. These preferences are not
saved with the forms but will help you interact with the forms as you
work.
If you are working with Manage Barcode Parameter, refer to this
topic later in the chapter and Chapter 19.
The book assumes you are familiar with filling in basic forms or
have used PDF forms in the past. If you are unsure of how to use the
Prepare Form tool and its autodetection of fields in Acrobat Pro, this
section provides a refresher.
Draw your form either by hand or create the basic structure in MS
Word, Adobe Illustrator, or Adobe InDesign, and then decide what steps
you want the form to do and accomplish. Then plan how to execute
your goals. Is what you want the form to do possible? Do you need to
simplify the form? Or do you need to learn more about the topic of
forms to create what you want? Make sure to consult with your team or
clients as you build the form before you begin to add interactivity.
Except for the program of Adobe InDesign, you cannot assemble the
form’s interactive fields outside of Acrobat, so you need to make a PDF
to do that. Until you are ready to make the PDF, continue to assemble
the form in your layout program such as MS Word until it looks the way
it should. Then save the MS Word file (.doc or .docx). Then create the
PDF. For example, in the case of MS Word, I can use my Acrobat tab to
quickly create a PDF or use my File Print tab. Refer to Figure 1-3.
Figure 1-3 Use the MS Word Ribbon with the Acrobat tab or the Print settings to
create your PDF
Once you have the final PDF, open it in Acrobat Pro and follow these
steps to add interactivity:
1. Click the Tools tab and click the Prepare Form tool, which is found
in the Forms & Signatures section (see Figure 1-4).
Figure 1-4 Location of Prepare Form tool
2. You can use this tool whether you have a PDF Form open or not.
While in the tool, choose, in this case, Single File, locate your file
(you can change the files if the thumbnail is not correct), and make
sure that form field autodetection is on. Do not select “This
document requires signatures” as we will look at that option in
Chapter 20 in more detail (Figure 1-5).
Figure 1-5 The Prepare Form tool when you first create a new form
3. Click Start. Acrobat will scan the file for fields; if it detects any, it
will create the field. However, it is not perfect in its detection, so
you may have to add, delete, or edit some fields afterward.
4. Once you have added your fields, save the file as a new PDF
(Ctrl/Cmd+S). Choose to save the file on your computer and then
select a folder to save the file into. Make sure that the “Convert to”
option is disabled. The new PDF is now an interactive form. Refer to
Figure 1-6.
Figure 1-6 Saving the new PDF form in a folder after autodetection is completed
Note You can now, with the Prepare Form tools, create a PDF form
in three more ways; refer to Figure 1-5: directly from your scanner,
as a blank new document using the Create New option, or using the
Create a Web form. We’ll look at that option in Chapter 20.
You can now begin adding your formatting and actions to the
properties of each field. Test it, and ask others to try it on their
computer, before you email it to your clients. Always keep a backup on a
disk or USB drive in case something happens to your main computer.
Also, make a printout of the PDF and all code in case you need to refer
to it later for another project. In this book I have placed a copy of the
code in the .txt files in each chapter for reference.
Once the fields are in the saved form, you can open the fields at any
time with the Prepare Form tool; you do not need to run the
autodetection again for that form. Refer to Figure 1-7.
You can exit the Prepare Form area partially by toggling the
Preview/Edit button in the upper-right (Figure 1-7). To exit the Prepare
Form tool completely, you must click the Close button in the upper-
right (Figure 1-7).
Figure 1-7 The Prepare Form tool and the tools for adding and working with the
fields. Note the Preview/Edit toggle and Exit (Close) buttons in the upper right. Also
note the view of a form while in Edit mode before switching to Preview
For more information on basic forms or basic form creation, check
out the following links before you proceed any further in this book:
https://helpx.adobe.com/acrobat/using/pdf-forms-
basics.html
https://helpx.adobe.com/acrobat/using/create-
form.html
https://helpx.adobe.com/acrobat/using/creating-
distributing-pdf-forms.html
https://helpx.adobe.com/acrobat/using/filling-
pdf-forms.html
https://helpx.adobe.com/acrobat/using/pdf-form-
field-properties.html
The Adobe HelpX area for forms has additional links as well, and we
will look at some of those options later. But you can use this area as a
resource when you need to work with basic forms.
While working in the Prepare Form Tool area, you will come across
other form tools in the right-side pane, such as the Align and Distribute
options, and in the More drop-down menu (Figure 1-7). I will go into
more detail about this area and the JavaScript area later in the book.
However, you can also refer to the previous web links for more specific
details. Refer to Figure 1-8.
Figure 1-8 Additional options in the right-hand pane of the Prepare Form tool
Fields Refresher
Fields can be blank and inactive, or they can contain a script that, upon
entering or clicking a trigger, sets the action in motion. For example,
they can execute a menu item or import form data. In Acrobat Pro, the
Prepare Form Menu tool area contains all the field options listed next
plus the Selection tool and the newer options Edit Text and Images and
Add Text.
Fields can be used in any form, while the Selection tool is just an
arrow that allows you to select, size, and move them around. From left
to right, let’s look at the tool options in this section more closely; refer
to Figure 1-9.
Selection tool: This arrow allows you select, size, and move fields. It
can also be used to edit text boxes when they are added; you double-
click with the arrow on them. Refer to the arrow in Figure 1-9.
Edit Text and Images: This is not a field option, but it allows you to
edit the text or images surrounding the field while remaining in the
Prepare Form tool and saves you time rather than having to close the
tool and use the Edit PDF tool instead. When text is selected, the right
pane’s Format area changes so that you can edit the selected text or
image that is surrounded by a bounding box. Images can be scaled
and rotated as well. Refer to Figure 1-10.
Figure 1-10 Text change settings in the Prepare Form tool and the selected text with
a bounding box
Add Text: This is not a field option, but it allows you to add a new
text box while remaining in the Prepare Form tool and saves you time
rather than having to close the tool and use the Edit PDF tool instead.
Select the tool and click a location on the page that you want the
text to appear and start typing, or when you select the tool, drag out a
rectangular bounding box for a paragraph area and start typing.
Again, the bounding box will appear around the text, and you can
scale and rotate as well as edit the format of the text on the right.
Refer to Figures 1-10 and 1-11.
Figure 1-11 Adding text to a page while in the Prepare Form tool and tip message
Click the Selection tool arrow if you want to exit the editing
options.
Now look at the form fields. These can be added to the form when
you first select them and then click the page. Use your mouse to
hover over each field to read its description and related name.
Text field: Type text, words, or numbers into the field. Refer to
Figure 1-12.
Figure 1-12 Adding a text field
Check box: Select one or multiple options of an item. Refer to Figure
1-13.
Radio button: Select one option from a group: yes or no. These
options can be mutually exclusive, and you can have more than one
group in a form. You must have at least two radio buttons and can
add a second if prompted with the initial message. Refer to Figure 1-
14.
Figure 1-14 Adding a radio button
List box: Select one or multiple items in a list of choices. Refer to
Figure 1-15.
Figure 1-15 Adding a list box
Dropdown list: Select an option or choice from a list. Refer to Figure
1-16.
Date field: This is the same as a text field but is preformatted to date.
It can operate as a date picker. Refer to Figure 1-19.
Another random document with
no related content on Scribd:
each name mentioned has a story of its own. Two publishers at the outset
attract our regard; except for them, much would have been lost to English
and American children.
As early as Elizabeth’s time, Rafe Newberie, Master of Stationer’s
Company, published Hakluyt’s “Voyages.” From him, John Newbery
(1713–1767) was descended. Given an ordinary schooling, he was
apprenticed to the printer, William Carnan, who, dying in 1737, divided his
worldly goods between his brother Charles, and his assistant John. The
latter, in order to cement his claim still further, married his employer’s
widow, by whom he had three children, Francis, his successor in the
publishing business, being born on July 6, 1743.
Newbery was endowed with much common sense. He travelled
somewhat extensively before settling in London, and, during his
wanderings, he jotted down rough notes, relating especially to his future
book trade; the remarks are worthy of a keen critic. During this time it is
hard to keep Newbery, the publisher, quite free from the picturesque career
of Newbery, the druggist; on the one hand Goldsmith might call him “the
philanthropic publisher of St. Paul’s Churchyard,” as he did in the “Vicar of
Wakefield,” which was first printed by Newbery and Benjamin Collins, of
Salisbury; on the other hand, in 1743, one might just as well have praised
him for the efficacy of the pills and powders he bartered. Now we find him
a shopkeeper, catering to the captains of ships from his warehouse, and
adding every new concoction to his stock of homeopathic deceptions. Even
Goldsmith could not refrain from having a slap at his friend in “Quacks
Ridiculed.”
He made money, however, and he associated with a literary set among
whom gold was much coveted and universally scarce. The portly Dr.
Johnson ofttimes borrowed a much-needed guinea, an unfortunate privilege,
for he had a habit of never working so long as he could feel money in his
pocket. This generosity on the part of Newbery did not deter Johnson from
showing his disapproval over many of the former’s publications. We can
well imagine the implied sarcasm in his declaration that Newbery was an
extraordinary man, “for I know not whether he has read, or written most
books.” Between 1744 and 1802, records indicate that Newbery and his
successors printed some three hundred volumes, two hundred of which
were juvenile; small wonder he needed the editorial assistance of such
persons as Dr. Johnson and Oliver Goldsmith.
One of the first pieces the latter let Newbery have, was an article for the
Literary Magazine of January, 1758. Then there came into existence The
Universal Chronicle, or Weekly Gazette in April, 1758, for which Johnson
wrote “The Idler.” In 1759, The British Magazine or Monthly Repository for
Gentlemen and Ladies, by T. Smollett, M.D., and others was announced,
Smollett then taking a rest cure in jail. As though magazines could be
launched in a few hours without sinking, a daily sheet called the Public
Ledger was brought into existence on January 12, 1760, for which
Goldsmith wrote his “Chinese Letters.” Between this date and 1767,
Goldsmith resided in a room on the upper floor of Newbery’s house at
Islington, and the publisher’s son declares that while there Goldsmith read
to him odd parts of “The Traveller” and the “Vicar of Wakefield.” This has
not so much evidence to support it as the fact that bills presented at the front
door for Goldsmith, usually found their way to Newbery for settlement.
How much actual suggestion Goldsmith gave to his publisher-employer,
how far he influenced the character of the books to be printed, cannot be
determined; he and Griffith and Giles Jones assuredly encouraged the
juvenile picture stories. An advertisement of 1765 calls attention to the
following: “The Renowned History of Giles Gingerbread, a little boy who
lived upon learning” [the combination is very appropriate in its
compensating qualities of knowledge and “sweets”]; “The Whitsuntide Gift,
or the Way to be Happy”; “The Valentine Gift, or how to behave with
honour, integrity and humanity”; and “The History of Little Goody Two
Shoes, otherwise called Margery Two Shoes.”
Though he could not wholly escape the charge of catering to the moral
craze of the time, Newbery at least infused into his little books something
of imagination and something of heroic adventure; not sufficient however to
please Dr. Johnson, who once said: “Babies do not want to hear about
babies; they like to be told of giants and castles, and of somewhat which
can stretch and stimulate their little minds.” A thrust at the ignorance of
grown people, regarding what children like, is further seen in Johnson’s
remark that parents buy, but girls and boys seldom read what is calculated
for them.
There are many to praise Newbery’s prints; they were more or less
oddities, even in their own time. Their usefulness was typified in such
books as the “Circle of Sciences,” a compendium of universal knowledge;
their attractiveness was dependent not only upon the beauty of their make,
but also upon the queerness of their format; for example, such volumes as
were called the snuff-box series, or ready references for waistcoat pockets.
Then there was the combination plan, indicated in the announcement: “A
Little Pretty Pocket-Book, intended for the Instruction and Amusement of
Little Master Tommy and Pretty Miss Polly, with an agreeable letter to read
from Jack-the-Giant-Killer, as also a Ball and Pincushion, the use of which
will infallibly make Tommy a Good Boy, and Polly a Good Girl.... Price of
the Book alone, 6d., with a Ball or Pincushion, 8d.”
The variety of Newbery’s ideas resulted in every species of book-
publishing, from a children’s magazine (The Lilliputian), with Goldsmith as
the reputed editor, to a child’s grammar. Interested one moment in a
machine for the colouring of silks and cloths, at another he would be
extolling the fever powders of Dr. James, a whilom schoolfellow of
Johnson. He was untiring in his business activity. His firm changed name
many times, but always Newbery remained the dominant figure. After his
death, the business continued for some while to be identified with its
founder, and for a long period his original policy was continued. Francis
Newbery, the son, left an autobiography of historic value.
Newbery’s real genius consisted in his trading ability. Modern
advertising is not more clever than that practised by this shrewd man of the
eighteenth century. Not only was he in the habit of soliciting puffs, and of
making some of the characters in his stories proclaim the excellencies of his
books, but the personal note and the friendly feeling displayed in his
newspaper items were uncommonly intimate. Witness the London
Chronicle for December 19–January 1, 1765:
“The Philosophers, Politicians, Necromancers, and the learned in every
faculty are desired to observe that on the first of January, being New Year’s
day (oh, that we all may lead new lives!), Mr. Newbery intends to publish
the following important volumes, bound and gilt, and hereby invites all his
little friends who are good to call for them at the Bible and Sun, in St.
Paul’s Churchyard, but those who are naughty to have none.”
Thomas in later years adopted the same method of advertising.
The most thorough piece of research work done by Mr. Charles Welsh is
his “A Bookseller of the Last Century.” Had he aimed at nothing more than
preserving the catalogue of Newbery’s books, he would have rendered a
great service to the library student. But he has in addition written a very
complete life of Newbery. When it is noted that this printer was brought
into business relations with Robert Raikes, and was further connected with
him by the union of Newbery’s son with Raikes’ sister, it is safe to believe
that some of the piousness which crept into the publisher’s wares was
encouraged by the zealous spirit of the founder of Sunday-schools. Raikes
will be dealt with in his proper place.
Newbery was what may be termed an enthusiastic publisher, a careful
manufacturer of books of the flower-and-gilt species. As a friend he has
been pictured nothing loath to help the needy, but always with generous
security and heavy interest attached; he was a business man above all else,
and that betokens keenness for a bargain, a keenness akin to cleverness
rather than to graciousness. In his “Life of Goldsmith,” Washington Irving
is inclined to be severe in his estimate; he writes:
“The poet [Goldsmith] has celebrated him as the friend of all mankind;
he certainly lost nothing by his friendship. He coined the brains of authors
in the times of their exigency, and made them pay dear for the plank put out
to keep them from drowning. It is not likely his death caused much
lamentation among the scribbling tribe.”
One difficulty Newbery had to contend with was the piracy of his books;
there was no adequate protection afforded by the copyright system, and we
read of Goldsmith and Johnson bewailing the literary thievery of the day.
By some it was regarded as a custom to be accepted; by others as a
deplorable condition beyond control. Early American authorship suffered
from the same evil, and Irving and Cooper were the two prominent victims.
The book list of Isaiah Thomas (1749–1831), the Worcester,
Massachusetts printer, shows how freely he drew from the London
bookseller. Called by many the Didot of America, founder of the American
Antiquarian Society, author of one of the most authentic histories of early
printing in this country, he is the pioneer of children’s books for America.
He scattered his presses and stores over a region embracing Worcester and
Boston, Mass.; Concord, N. H.; Baltimore, Md.; and Albany, N. Y. Books
were kept by him, so he vouched, specially for the instruction and
amusement of children, to make them safe and happy. In his “Memoirs”
there is found abundant material to satisfy one as to the nature of reading
for young folks in New England, previous to the Revolution.
Emerson writes in his “Spiritual Laws” regarding “theological
problems”; he calls them “the soul’s mumps and measles and whooping-
cough.” Already the sombre sternness of Colonial literature for children has
been typified in the “New England Primer.” The benefits of divine songs
and praises; the reiteration of the joy to parents, consequent upon the
behaviour of godly children; the mandates, the terrible finger of retribution,
the warning to all sinners lurking in the throat disease which was prevalent
at one time—all these ogres rise up in the Thomas book to crush juvenile
exuberance. Does it take much description to get at the miserable heart of
the early piety displayed by the heroines of Cotton Mather’s volumes, those
stone images of unthinkable children who passed away early, who were
reclaimed from disobedience, “children in whom the fear of God was
remarkably budding before they died”? Writers never fail to say, in
speaking of Thomas White’s “Little Book for Children” (reprint of 1702),
that its immortality, in the face of all its theology, is centred in one famous
untheological line, “A was an archer who shot at a frog.”
What Thomas did, when he began taking from Newbery, was to change
colloquial English terms to fit new environment; the coach no longer
belongs to the Lord Mayor, but to the Governor instead.[29] The text is only
slightly altered. We recognise the same little boys who would become great
masters; the same ear-marks stigmatise the heroines of “The Juvenile
Biographer,” insufferable apostles of surname-meaning, Mistresses
Allgood, Careful, and Lovebook, together with Mr. Badenough. Oh, Betsey
and Nancy and Amelia and Billy, did you know what it was to romp and
play?
The evident desire on the part of Miss Hewins, in her discussion of early
juvenile books, to emphasise the playful, in her quotations from Thomas’
stories, only indicates that there was little levity to deal with. Those were
the days of gilded “Gifts” and “Delights”; the pleasures of childhood were
strangely considered; goodness was inculcated by making the hair stand on
end in fright, by picturing to the naughty boy what animal he was soon to
turn into, and what foul beast’s disposition was akin to that of the fractious
girl. Intentions, both of an educational and religious nature, were excellent,
no doubt; but, when all is estimated, the residue presents a miserable,
lifeless ash.[30]
So far no distinctive writer for children has arisen. The volumes issued
by Newbery represent a conscious attempt to appeal through form to the
juvenile eye. If the books were addressed intentionally to children, their
amusement consisted in some extraneous novelty; it was rarely contained in
the story. Action rather than motive is the redeeming feature of “Goody
Two Shoes.” As for religious training, it was administered to the child with
no regard for his individual needs. He represented a theological stage of sin;
the world was a long dark road, through the maze of which, by his birth, he
was doomed to fight his little way. Life was a probationary period.
It is now necessary to leave the New England book, and to return to it
through another channel. The viewpoint shifts slightly; a new element is to
be added: a self-conscious recognition of education for children. The
sternness of the “New England Primer” possessed strength. The didactic
school, retaining the moral factor,—several points removed from theology
—sentimentalised it; for many a day it was to exist in juvenile literature
rampant. And, overflowing its borders, it was to influence later chap-books,
and some of the later publications of Thomas and Newbery. Through
Hannah More, it was to grip Peter Parley, and finally to die out on
American shores. For “Queechy” and “The Wide, Wide World” represent
the final flowering of this style. In order to retain a clear connection, it is
necessary to watch both streams, educational and moral, one at first
blending with the other, and flourishing in this country through a long list of
New England authors, until, in the end, the educational, increasing in
volume, conquered altogether.
Bibliographical Note
The Babees Book—Ed. Frederick J. Furnivall, M.A. Published for the
Early English Text Society. London, Trübner, 1868.
In the foreword, note the following:
Education in early England:
1. In Nobles’ Houses; 2. At Home and at Private Tutors’; 3. At English
Universities; 4. At Foreign Universities; 5. At Monastic and Cathedral
Schools; 6. At Grammar Schools. Vide the several other prefaces.
This collection contains:
1. The Babees Book, or a ‘Lytyl Reporte’ of How Young People
Should Behave (circa 1475 a.d.); 2. The A B C of Aristotle (1430 a.d.);
3. The Book of Curteisie That is Clepid Stans Puer ad Mensam (1430
a.d.); 4. The boke of Nurture, or Schoole of good maners: For Men,
Servants, and children (1577); 5. The Schoole of Vertue, and booke of
good Nourture for chyldren and youth to learne theyr dutie by (1557).
Vide Vol. iv, Percy Society, London, 1841:1. The Boke of Curtasye, ed.
J. O. Halliwell. 2. Specimens of Old Christmas Carols, ed. T. Wright. 3.
The Nursery Rhymes of England, ed. J. O. Halliwell, 1842: a. Historical;
b. Tales; c. Jingles; d. Riddles; e. Proverbs; f. Lullabies; g. Charms; h.
Games; i. Literal; j. Paradoxes; k. Scholastic; l. Customs; m. Songs; n.
Fragments.
Vide Vol. xxix, Percy Society, London, 1849. Notices of Fugitive
Tracts and Chap-books printed at Aldermary Churchyard, Bow
Churchyard, etc., ed. J. O. Halliwell.
FOOTNOTES
[15] In “The Child and His Book,” by Mrs. E. M. Field (London: Wells
Gardner, Darton & Co., 1892), the reader is referred to chapters: Before
the Norman Conquest; Books from the Conquest to Caxton; The Child
in England, 1066–1640. Her researches form an invaluable contribution
to the history of children’s books, furnishing sources for considerable
speculation. Much is included of interest to the antiquarian only.
[16] Thomas Newbery was the author. Vide Fugitive Tracts, 1875.
Hazlitt and Huth.
[17] As early as 1262, the macaronic style of delivering sermons was
customary. The gradual substitution of the vernacular for Latin is dealt
with in the introduction to the present author’s edition of “Everyman,”
1903, xxvii.
[18] Chap = An abbreviation of Chapman, which seems to have come
into vulgar use in the end of the 16th c.; but it is rare in books, even in
the dramatists, before 1700. It was not recognised by Johnson. 1577
Breton Toyes Idle Head (Grosart). Those crusty chaps I cannot love. a.
A buyer, purchaser, customer.
Chap-book = f. chap in Chapman + Book. A modern name applied
by book collectors and others to specimens of the popular literature
which was formerly circulated by itinerant dealers or chapmen,
consisting chiefly of small pamphlets of popular tales, etc. 1824 Dibdin
Libr. Comp. It is a chap-book, printed in rather neat black letter. 1882 J.
Ashton Chap-books, 18th Century in Athenæum 2 Sept. 302/1. A great
mass of chap-books.
Chapman = [OE. Céapmann = OHG. Choufman (OHG., MHG.
Koufman), Ger. Kaufmann.] A man whose business is buying and
selling; a merchant, trader, dealer. Vide 890 K. Ælfred Bæda. Vide
further, A New English Dictionary. Murray, Oxford.
[19] “The History of Tom Hickathrift” is regarded as distinctively
English; its literary qualities were likened by Thackeray to Fielding.
Vide Fraser’s Magazine.
[20] The notice ran as follows: “Advertisement: There is now in the
Press, and will suddenly be extant, a Second Impression of The New
England Primer, enlarged, to which is added, more Directions for
Spelling; the Prayer of K. Edward the 6th, and Verses made by Mr.
Rogers, the Martyr, left as a Legacy to his Children. Sold by Benjamin
Harris, at the London Coffee-House in Boston.”
[21] Three typical examples of later reprints are: The N. E. Primer,
Walpole, N. H., I. Thomas & Co., 1814; The N. E. Primer Improved for
the More Easy Attaining the True Reading of English. To which is added
The Assembly of Divines and Episcopal Catechisms. N. Y., 1815; The
N. E. Primer, or an Easy and Pleasant Guide to the Art of Reading,
Mass. Sabbath School Soc., 1841.
[22] Another writer of Contes des fées was Mme. Jeanne Marie Le
Prince de Beaumont (1711–1780), author of “Magasins des Enfans, des
Adolescens et des Dames.”
[23] The Original Mother Goose’s Melody, as first issued by John
Newbery, of London, about a.d. 1760. Reproduced in facsimile from the
edition as reprinted by Isaiah Thomas, of Worcester, Mass., about a.d.
1785. With Introductory Notes by William H. Whitmore. Albany,
Munsell, 1889. [Vide N. E. Hist. and Geneal. Regist., 1873, pp. 144, 311;
Proceed. Am. Antiq. Soc., Oct., 1888, p. 406.]
[24] Lang says the term Mother Goose appears in Loret’s “La Muse
Historique” (Lettre v., 11 Juin, 1650). Vide also Deulin, Charles—Les
Contes de Ma Mère L’Oye, avant Perrault. Paris, 1878; and Halliwell, J.
O.—Percy Society.
[25] He was the author also of a “History of Animated Nature.”
[26] A list of his publications is owned by the Bodleian Library, Oxford.
[27] Vide Notes and Queries, June, 1875, 5th series, iii, 441. Prof.
Edward F. Rimbault.
[28] Gentleman’s Magazine, 1826, Pt. ii, 467–69.
[29] Nurse Truelove’s New Year’s Gift; or, the Book of Books for
Children. Adorned with Cuts; and designed for a Present to every little
Boy who would become a great Man, and ride upon a fine Horse; and to
every little Girl, who would become a great Woman, and ride in a
Governour’s Gilt Coach.
[30] An interesting field of investigation: Early New England Printers.
Mr. Welsh mentions a few in article referred to, p.60. A full list of
Printers and Publishers (North and South) given in Evans’s American
Bibliography.
III. THE OLD-FASHIONED LIBRARY
A child should not need to choose between right and wrong. It
should not be capable of wrong; it should not conceive of wrong.
Obedient, as bark to helm, not by sudden strain or effort, but in the
freedom of its bright course of constant life; true, with an
undistinguished, painless, unboastful truth, in a crystalline
household world of truth; gentle, through daily entreatings of
gentleness, and honourable trusts, and pretty prides of child-
fellowship in offices of good; strong, not in bitter and doubtful
contest with temptation, but in peace of heart, and armour of
habitual right, from which temptation falls like thawing hail; self-
commanding, not in sick restraint of mean appetites and covetous
thoughts, but in vital joy of unluxurious life, and contentment in
narrow possession, wisely esteemed.—John Ruskin, in an
introduction to Grimm’s “German Popular Tales,” illustrated by
Cruikshank.