WebAPI/WebPrintAPI: Difference between revisions

Remove ctx.isFilePrint + ctx.DPI -> ctx.dpi
(Update question about CMYK colors + add proposal link)
(Remove ctx.isFilePrint + ctx.DPI -> ctx.dpi)
Line 58: Line 58:
   pDoc.renderPage = function(pageNumber, ctx) {
   pDoc.renderPage = function(pageNumber, ctx) {
     if (ctx.isPreview) {
     if (ctx.isPreview) {
       var dpi = ctx.DPI;
       var dpi = ctx.dpi;
        
        
       // Only draw images in low resolution for preview
       // Only draw images in low resolution for preview
       // ...
       // ...
    }
    else if (ctx.isFilePrint) { // E.g. if the user clicked "saveAs PDF".
      // ... 
     }
     }
      
      
49

edits