Skip to content

Commit

Permalink
Issue #3 - Enhancing the PDF
Browse files Browse the repository at this point in the history
  • Loading branch information
Gulix committed Jan 27, 2016
1 parent 49feb1c commit 22b0f6d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions generator/scripts/pdf.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ function generate_pdf()
bold: true,
marginLeft: 10,
marginTop: 3,
marginBottom: 2
marginBottom: 2,
background: '#AAAAAA'
},
details: {
fontSize: 12,
Expand All @@ -39,10 +40,12 @@ function generate_pdf()
{
var currentSection = jsonPlayset.sections[iSection];
docDefinition.content.push({ text: currentSection.label + " ...", style: 'sectionHeader' });
// Chaque catégorie de la page
for (var iCategory = 0; iCategory < currentSection.categories.length; iCategory++)
{
var currentCategory = currentSection.categories[iCategory];
docDefinition.content.push({ text: (iCategory + 1) + " - " + currentCategory.label, style: 'category' });
docDefinition.content.push({ text: (iCategory + 1) + " - " + currentCategory.label, style: 'category' } );
// Chaque élément de la catégorie
for (var iDetail = 0; iDetail < currentCategory.details.length; iDetail++)
{
var currentDetail = currentCategory.details[iDetail];
Expand Down

0 comments on commit 22b0f6d

Please sign in to comment.