Added text inspector. Updated PDF generation.