WebAPI/WebPrintAPI: Difference between revisions

Jump to navigation Jump to search
m
Convert getPageSize and getUnrwiteableMargin to getters
No edit summary
m (Convert getPageSize and getUnrwiteableMargin to getters)
Line 85: Line 85:
   // Provided API functions
   // Provided API functions
   // ---
   // ---
   pDoc.getPageSize = function() {
 
     return {
  // Getter:
      width:  <widthInInch>,
   pDoc.pageSize = {
      height: <heightInInch>,
     <widthInInch>,
    }
    <heightInInch>,
   }
   }
    
    
   pDoc.getUnwriteableMargin = function() {
  // Getter:
     return {
   pDoc.unwriteableMargin {
      top:    <inch>,
     top:    <inch>,
      bottom: <inch>,
    bottom: <inch>,
      left:  <inch>,
    left:  <inch>,
      right:  <inch>
    right:  <inch>
    }
   }
   }
    
    
49

edits

Navigation menu