Margins

<< Click to Display Table of Contents >>

Navigation:  EasyPDFMaker documentation > Getting started > Step by Step > Working with PDF file >

Margins

Previous pageReturn to chapter overviewNext page

Any element can have a margin:

 

 ! margin: [left, top, right, bottom]

 dd.AddText('sample', '"margin": [ 5, 2, 10, 20 ]')

 

 ! margin: [horizontal, vertical]

 dd.AddText('another text', '"margin": [ 5, 2 ]')

 

 ! margin: equalLeftTopRightBottom

 dd.AddText('last one', '"margin": 5')

 

 

[=== compare with pdfmake:

(...)

// margin: [left, top, right, bottom]

{ text: 'sample', margin: [ 5, 2, 10, 20 ] },

 

// margin: [horizontal, vertical]

{ text: 'another text', margin: [5, 2] },

 

// margin: equalLeftTopRightBottom

{ text: 'last one', margin: 5 }

(...)

===]