Resource Description for DocumentLayout

Properties for DocumentLayout

Property Name Type Required Is Collection?
Property Name Type Required Is Collection?
defaultFontFamily string
defaultFontSize float
firstPageFooterHeight float
firstPageFooterHtml string
firstPageHeaderHeight float
firstPageHeaderHtml string
leftMargin float
name string
orientation string
otherPagesFooterHeight float
otherPagesFooterHtml string
otherPagesHeaderHeight float
otherPagesHeaderHtml string
paperSize string
rightMargin float
showAddressEnvelopeSize string

SDK Example for PHP

<?PHP

use Arbor\Api\Gateway\RestGateway;
use Arbor\Model\ModelBase;
use Arbor\Model\DocumentLayout;

ModelBase::setDefaultGateway(
    new RestGateway(
        "https://my-school.arbor.sc/rest-v2",
        "my.username@my-school.arbor.sc",
        "3bh54435v3gh45"
    )
);

$documentLayout = DocumentLayout::retrieve(5433);

$layoutName = $documentLayout->getLayoutName();
$pageFormat = $documentLayout->getPageFormat();
$pageNumberStyle = $documentLayout->getPageNumberStyle();
$headerHtml = $documentLayout->getHeaderHtml();
$headerPage1html = $documentLayout->getHeaderPage1html();
$footerHtml = $documentLayout->getFooterHtml();
$footerPage1html = $documentLayout->getFooterPage1html();
$marginTop = $documentLayout->getMarginTop();
$marginBottom = $documentLayout->getMarginBottom();
$marginHeader = $documentLayout->getMarginHeader();
$marginFooter = $documentLayout->getMarginFooter();
$marginLeft = $documentLayout->getMarginLeft();
$marginRight = $documentLayout->getMarginRight();
$marginPage1top = $documentLayout->getMarginPage1top();
$marginPage1bottom = $documentLayout->getMarginPage1bottom();
$marginPage1header = $documentLayout->getMarginPage1header();
$marginPage1footer = $documentLayout->getMarginPage1footer();