PDF Viewerv1

Embed PDF Viewer to display PDF file's stored in the DAM on the page.

Examples

Full Window

The viewing area renders in the full browser. Best suited for storage and productivity applications.

  1. showPrintPdf: true
  2. dockPageControls: true
  3. documentPath: /content/dam/core-components-examples/library/sample-assets/Bodea Brochure.pdf
  4. defaultViewMode: FIT_PAGE
  5. type: FULL_WINDOW
  6. showPageControls: true
  7. showLeftHandPanel: true
  8. showFullScreen: true
  9. showDownloadPdf: true
  10. showAnnotationTools: false
  11. sling:resourceType: core-components-examples/components/pdfviewer
  12. borderless: false
    
        

    

Sized Container

The sized container mode displays PDFs in a boxed container with landscape orientation. Best suited for presentations.

  1. showPrintPdf: true
  2. dockPageControls: false
  3. documentPath: /content/dam/core-components-examples/library/sample-assets/Bodea Brochure.pdf
  4. defaultViewMode: FIT_PAGE
  5. type: SIZED_CONTAINER
  6. showPageControls: false
  7. showLeftHandPanel: true
  8. showFullScreen: false
  9. showDownloadPdf: true
  10. showAnnotationTools: false
  11. sling:resourceType: core-components-examples/components/pdfviewer
  12. borderless: false
    
        

    

In-Line

All PDF pages rendered in line within a web page. Best suited for reading applications.

  1. showPrintPdf: true
  2. dockPageControls: true
  3. documentPath: /content/dam/core-components-examples/library/sample-assets/Bodea Brochure.pdf
  4. defaultViewMode: FIT_PAGE
  5. type: IN_LINE
  6. showPageControls: true
  7. showLeftHandPanel: true
  8. showFullScreen: true
  9. showDownloadPdf: true
  10. showAnnotationTools: false
  11. sling:resourceType: core-components-examples/components/pdfviewer
  12. borderless: false