Chomp all imput lines.
Add sample picklist report
Fold logic into single loop

Having two loops makes adding logic common to all lines more difficult.
Use a single loop and use a state variable to decide how to process the
input.
Accumulate lines for each page

We want to interleve the report text with item images.  Keep track of
each page so it can be printed out individually.
Trim from-feed from lines

The form-feed indicates a page break and is not a part of the line.
Remove it and adjust the state handling appropriately.