
pdfDocument = {
{BEGIN backgroundImage}
	background: {
		image: {$backgroundImage},
		{BEGIN bgWidth}
		imgWidth: {$bgWidth},
		imgHeight: {$bgHeight},
		{END bgWidth}
	},
{END backgroundImage}
	styles: {
				bodycell: {
			fontSize:12,
		},
		headcell: {
			fontSize:12,
			bold: true
		},

	
			},
	defaultStyle: {
		fontSize: 14,
	},
	"content": [
		{BEGIN body}
		{BEGIN embedded_grid}
		{
			text: '{$jscaption order_form}',
		},
		{END embedded_grid}
		{ 
			{BEGIN standalone_page}
			pageBreak: 'before',
			{END standalone_page}
			{BEGIN embedded_grid}
			embeddedPage: true,
			{END embedded_grid}
			layout: {
				hLineWidth: function(i, node) { return 0.1; },
				vLineWidth: function(i, node) { 
					if( node.table.embeddedPage ) {
						return (i === 0 || i === node.table.widths.length) ? 0.1 : 0;
					} else  {
						return 0.1; 
					}
				},
				hLineColor: function(i, node) { return 'gray'; },
				vLineColor: function(i, node) { return 'gray'; },
			},
			table: {
				{BEGIN embedded_grid}
				embeddedPage: true,
				{END embedded_grid}
				
				tableForm: true,
				headerRows: 1 + 1 {BEGIN embedded_grid} -1 {END embedded_grid} ,

				widths: [
														{BEGIN col_grid_0}
					"%",
					{END col_grid_0}
										{BEGIN col_grid_1}
					"%",
					{END col_grid_1}
										{BEGIN col_grid_2}
					"%",
					{END col_grid_2}
										{BEGIN col_grid_3}
					"%",
					{END col_grid_3}
										{BEGIN col_grid_4}
					"%",
					{END col_grid_4}
															],
											heights: [ // first height for header part
					"%",
																		{BEGIN row_grid_0}
							"%",
							{END row_grid_0}
																							 	{BEGIN grid_row}
													{BEGIN row_grid_1}
							"%",
							{END row_grid_1}
													{END grid_row}
																								{BEGIN row_grid_2}
							"%",
							{END row_grid_2}
															],
							
				body: [
				{BEGIN standalone_page}
					[
						{
							colSpan: {$formwidth_grid},
							border:[false, false,false,false],
							stack: [

																										
{
	table: {
	
				
		location: 'top',
		
		
		widths: [
								"*", 
					 ],	
		
	
		body: [
				
				[
																{
	cellId: 'c1',
	col:0,
	row:0,
		
		
	//	static colspan/rowspan
		
			
	
	
			"text": [
		
				
			{"text":""},
				
				
			{"text":"{$jspagetitlelabel order_form masterlist}","hidden":"{$item_hide_masterlist_header}","fontSize":30},
				
		  ],
  "border": [ false, false, false, false ],
              "alignment": 'left',
  },

											],
		
		]
	}
}
,
								
																										
{
	table: {
	
				
		location: 'above-grid',
		
		
		widths: [
								"*", 
					 ],	
		
	
		body: [
				
				[
																{
	cellId: 'c1',
	col:0,
	row:0,
		
		
	//	static colspan/rowspan
		
			
	
	
			"text": [
		
				'',
	  ],
  "border": [ false, false, false, false ],
              "alignment": 'left',
  },

											],
		
		]
	}
}
,
															]
						},
					],
				{END standalone_page}

																	

				
				{BEGIN row_grid_0}
				[
																{BEGIN cellblock_grid_headcell_field}
{
	cellId: 'headcell_field',
	col:0,
	row:0,
			style: 'headcell',
		
		
	//	dynamic colspan/rowspan

		
						
	
	
	
			"text": [
		
				
			{"text":"{$jslabel order_form reference_no }","hidden":"{$item_hide_simple_grid_field30}","bold":true},
				
		  ],
  "border": [ true, true, true, true ],
              "alignment": '{$reference_no_align}',
  },

{END cellblock_grid_headcell_field}
																							{BEGIN cellblock_grid_headcell_field1}
{
	cellId: 'headcell_field1',
	col:0,
	row:0,
			style: 'headcell',
		
		
	//	dynamic colspan/rowspan

		
						
	
	
	
			"text": [
		
				
			{"text":"{$jslabel order_form status }","hidden":"{$item_hide_simple_grid_field32}","bold":true},
				
		  ],
  "border": [ true, true, true, true ],
              "alignment": '{$status_align}',
  },

{END cellblock_grid_headcell_field1}
																							{BEGIN cellblock_grid_headcell_field2}
{
	cellId: 'headcell_field2',
	col:0,
	row:0,
			style: 'headcell',
		
		
	//	dynamic colspan/rowspan

		
						
	
	
	
			"text": [
		
				
			{"text":"{$jslabel order_form driver }","hidden":"{$item_hide_simple_grid_field74}","bold":true},
				
		  ],
  "border": [ true, true, true, true ],
              "alignment": '{$driver_align}',
  },

{END cellblock_grid_headcell_field2}
																							{BEGIN cellblock_grid_headcell_field3}
{
	cellId: 'headcell_field3',
	col:0,
	row:0,
			style: 'headcell',
		
		
	//	dynamic colspan/rowspan

		
						
	
	
	
			"text": [
		
				
			{"text":"{$jslabel order_form truck }","hidden":"{$item_hide_simple_grid_field75}","bold":true},
				
		  ],
  "border": [ true, true, true, true ],
              "alignment": '{$truck_align}',
  },

{END cellblock_grid_headcell_field3}
																							{BEGIN cellblock_grid_headcell_field4}
{
	cellId: 'headcell_field4',
	col:0,
	row:0,
			style: 'headcell',
		
		
	//	dynamic colspan/rowspan

		
						
	
	
	
			"text": [
		
				
			{"text":"{$jslabel order_form logistics_fee }","hidden":"{$item_hide_simple_grid_field1}","bold":true},
				
		  ],
  "border": [ true, true, true, true ],
              "alignment": '{$logistics_fee_align}',
  },

{END cellblock_grid_headcell_field4}
											],
				{END row_grid_0}
		
			
		{BEGIN grid_row}
	{BEGIN grid_record}
				
				{BEGIN row_grid_1}
				[
																{BEGIN cellblock_grid_cell_field}
{
	cellId: 'cell_field',
	col:0,
	row:0,
			style: 'bodycell',
		
		
	//	dynamic colspan/rowspan

		
						
	
	
	
			"text": [
		
				
			{"text":{$reference_no_pdfvalue},"hidden":"{$item_hide_simple_grid_field29}"},
				
		  ],
  "border": [ true, true, true, true ],
              "alignment": '{$reference_no_align}',
  },

{END cellblock_grid_cell_field}
																							{BEGIN cellblock_grid_cell_field1}
{
	cellId: 'cell_field1',
	col:0,
	row:0,
			style: 'bodycell',
		
		
	//	dynamic colspan/rowspan

		
						
	
	
	
			"text": [
		
				
			{"text":{$status_pdfvalue},"hidden":"{$item_hide_simple_grid_field31}"},
				
		  ],
  "border": [ true, true, true, true ],
              "alignment": '{$status_align}',
  },

{END cellblock_grid_cell_field1}
																							{BEGIN cellblock_grid_cell_field2}
{
	cellId: 'cell_field2',
	col:0,
	row:0,
			style: 'bodycell',
		
		
	//	dynamic colspan/rowspan

		
						
	
	
	
			"text": [
		
				
			{"text":{$driver_pdfvalue},"hidden":"{$item_hide_simple_grid_field72}"},
				
		  ],
  "border": [ true, true, true, true ],
              "alignment": '{$driver_align}',
  },

{END cellblock_grid_cell_field2}
																							{BEGIN cellblock_grid_cell_field3}
{
	cellId: 'cell_field3',
	col:0,
	row:0,
			style: 'bodycell',
		
		
	//	dynamic colspan/rowspan

		
						
	
	
	
			"text": [
		
				
			{"text":{$truck_pdfvalue},"hidden":"{$item_hide_simple_grid_field73}"},
				
		  ],
  "border": [ true, true, true, true ],
              "alignment": '{$truck_align}',
  },

{END cellblock_grid_cell_field3}
																							{BEGIN cellblock_grid_cell_field4}
{
	cellId: 'cell_field4',
	col:0,
	row:0,
			style: 'bodycell',
		
		
	//	dynamic colspan/rowspan

		
						
	
	
	
			"text": [
		
				
			{"text":{$logistics_fee_pdfvalue},"hidden":"{$item_hide_simple_grid_field}"},
				
		  ],
  "border": [ true, true, true, true ],
              "alignment": '{$logistics_fee_align}',
  },

{END cellblock_grid_cell_field4}
											],
				{END row_grid_1}
		
		{END grid_record}
	{END grid_row}
			
					
				{BEGIN row_grid_2}
				[
																{BEGIN cellblock_grid_footcell_field}
{
	cellId: 'footcell_field',
	col:0,
	row:0,
			style: 'footcell',
		
		
	//	dynamic colspan/rowspan

		
						
	
	
	
			"text": [
		
				'',
	  ],
  "border": [ true, true, true, true ],
              "alignment": 'left',
  },

{END cellblock_grid_footcell_field}
																							{BEGIN cellblock_grid_footcell_field1}
{
	cellId: 'footcell_field1',
	col:0,
	row:0,
			style: 'footcell',
		
		
	//	dynamic colspan/rowspan

		
						
	
	
	
			"text": [
		
				'',
	  ],
  "border": [ true, true, true, true ],
              "alignment": 'left',
  },

{END cellblock_grid_footcell_field1}
																							{BEGIN cellblock_grid_footcell_field2}
{
	cellId: 'footcell_field2',
	col:0,
	row:0,
			style: 'footcell',
		
		
	//	dynamic colspan/rowspan

		
						
	
	
	
			"text": [
		
				'',
	  ],
  "border": [ true, true, true, true ],
              "alignment": 'left',
  },

{END cellblock_grid_footcell_field2}
																							{BEGIN cellblock_grid_footcell_field3}
{
	cellId: 'footcell_field3',
	col:0,
	row:0,
			style: 'footcell',
		
		
	//	dynamic colspan/rowspan

		
						
	
	
	
			"text": [
		
				'',
	  ],
  "border": [ true, true, true, true ],
              "alignment": 'left',
  },

{END cellblock_grid_footcell_field3}
																							{BEGIN cellblock_grid_footcell_field4}
{
	cellId: 'footcell_field4',
	col:0,
	row:0,
			style: 'footcell',
		
		
	//	dynamic colspan/rowspan

		
						
	
	
	
			"text": [
		
				'',
	  ],
  "border": [ true, true, true, true ],
              "alignment": 'left',
  },

{END cellblock_grid_footcell_field4}
											],
				{END row_grid_2}
		
				
									]
			
			}
		},
		{END body}
	]
}
