Fix transcripts starting with inaccurate lines.

Refactored pdf generation.

refs #7963
Fix transcript processing if starts with three invalid lines.

refs #7963