<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Enabling Thumbnails for Viewer Component in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/enabling-thumbnails-for-viewer-component/m-p/40874#M17144</link>
    <description>&lt;P&gt;Probably useful to paste a screenshot of the entire console contents:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="adf-js-console.png" style="width: 772px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/79iAAC433011CE28818/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;:&lt;/P&gt;</description>
    <pubDate>Tue, 07 Jul 2020 09:22:04 GMT</pubDate>
    <dc:creator>Mark_Davidson</dc:creator>
    <dc:date>2020-07-07T09:22:04Z</dc:date>
    <item>
      <title>Enabling Thumbnails for Viewer Component</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/enabling-thumbnails-for-viewer-component/m-p/40870#M17140</link>
      <description>&lt;P&gt;I'm using the Viewer Component. It renders various types of content correctly - PDF, TXT, DOCX, etc. I'm struggling to enable thumbnails.&lt;/P&gt;&lt;P&gt;I have 'allowThumbnails' set to true but no thumbnails are displayed. I had a look at the documentation at&amp;nbsp;&lt;A href="https://www.alfresco.com/abn/adf/docs/core/components/viewer.component/" target="_blank" rel="noopener nofollow noreferrer"&gt;https://www.alfresco.com/abn/adf/docs/core/components/viewer.component/&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;There's mention of configuring the PDF.js library. I ran 'npm install&amp;nbsp;pdfjs-dist' as suggested. As for the next step 'vendors.ts' - I don't see this anywhere. Can someone point me in the right direction? Is there anything else that I need to do to enable thumbnails?&lt;/P&gt;&lt;P&gt;- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -&amp;nbsp;- - - - - - - - - - - - - - - - - -&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rtfm-pdfjs.png" style="width: 910px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/78i13411085895E2D51/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -&amp;nbsp;- - - - - - - - - - - - - - - - - -&lt;/P&gt;&lt;P&gt;I'm running ACS 6.2. The ADF app was created using the Yeoman generator.&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;P&gt;PS&lt;/P&gt;&lt;P&gt;Is there anyway of adding new tags for posts? I see that I can choose 'ACS 6.1.x' but not 'ACS 6.2.x'. There's not even a tag for ADF posts, nevermind specific ADF components.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jul 2020 13:53:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/enabling-thumbnails-for-viewer-component/m-p/40870#M17140</guid>
      <dc:creator>Mark_Davidson</dc:creator>
      <dc:date>2020-07-06T13:53:21Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling Thumbnails for Viewer Component</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/enabling-thumbnails-for-viewer-component/m-p/40871#M17141</link>
      <description>&lt;P&gt;Hi, that property&amp;nbsp;&lt;SPAN&gt;allowThumbnails&lt;/SPAN&gt;&amp;nbsp;is only to toggle the thumbnails area in the pdf viewer. By default, the viewer already gives you this button option. You don't need more code to enable it&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jul 2020 16:50:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/enabling-thumbnails-for-viewer-component/m-p/40871#M17141</guid>
      <dc:creator>eugenio_romano</dc:creator>
      <dc:date>2020-07-06T16:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling Thumbnails for Viewer Component</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/enabling-thumbnails-for-viewer-component/m-p/40872#M17142</link>
      <description>&lt;P&gt;I must be doing something wrong then as I don't get thumbnails in the Viewer. I've tried with files of various mime types. I've pasted the code/markup below. Have I missed out anything?&lt;/P&gt;&lt;P&gt;---------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="adf-viewer-missing-thumbnails.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/81iA29F96732E2AE920/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;---------------------------------------------------------------------------------------&lt;/P&gt;&lt;PRE&gt;&amp;lt;adf-viewer *ngIf="documentId"
  id="docViewer"
  [overlayMode]="overlayMode"
  [nodeId]="documentId"
  [allowDownload]="allowDownload"
  [allowFullScreen]="allowFullScreen"
  [allowGoBack]="allowGoBack"
  [allowLeftSidebar]="allowLeftSidebar"
  [allowNavigate]="allowNavigate"
  [allowPrint]="allowPrint"
  [allowRightSidebar]="allowRightSidebar"
  [allowThumbnails]="allowThumbnails"
  [canNavigateBefore]="canNavigateBefore"
  [canNavigateNext]="canNavigateNext"
  [showLeftSidebar]="showLeftSidebar"
  [showRightSidebar]="showRightSidebar"
  [showToolbar]="showToolbar"
  [showViewer]="showViewer"
&amp;gt;
&amp;lt;/adf-viewer&amp;gt;&lt;/PRE&gt;&lt;PRE&gt;import { Component, OnInit, Input } from '@angular/core';
import { StateService } from 'app/state.service';

@Component({
  selector: 'app-viewer',
  templateUrl: './viewer.component.html',
  styleUrls: ['./viewer.component.scss']
})
export class ViewerComponent implements OnInit {

  overlayMode: boolean = false;
  allowDownload: boolean = true;
  allowFullScreen: boolean = true;
  allowGoBack: boolean = false;
  allowLeftSidebar: boolean = true;
  allowNavigate: boolean = false;
  allowPrint: boolean = true;
  allowRightSidebar: boolean = true;
  allowThumbnails: boolean = true;
  canNavigateBefore: boolean = true;
  canNavigateNext: boolean = true;
  showLeftSidebar: boolean = true;
  showRightSidebar: boolean = false;
  showToolbar: boolean = true;
  showViewer: boolean = true;

  @Input() documentId: string;

  constructor(private state: StateService) { }

  ngOnInit() {}

}&lt;/PRE&gt;</description>
      <pubDate>Tue, 07 Jul 2020 08:24:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/enabling-thumbnails-for-viewer-component/m-p/40872#M17142</guid>
      <dc:creator>Mark_Davidson</dc:creator>
      <dc:date>2020-07-07T08:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling Thumbnails for Viewer Component</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/enabling-thumbnails-for-viewer-component/m-p/40873#M17143</link>
      <description>&lt;P&gt;Here's some more info. When I select a doc from the doc list component (which is bound to the viewer component) I see this in the browser console.&lt;/P&gt;&lt;PRE&gt;pdf.js:7221 Uncaught (in promise) TypeError: Promise.allSettled is not a function
    at MessageHandler._deleteStreamController (pdf.js:7221)
    at MessageHandler._processStreamMessage (pdf.js:7160)
    at Worker.MessageHandler._onComObjOnMessage (pdf.js:6817)
    at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:423)
    at Object.onInvokeTask (core.js:14134)
    at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:422)
    at Zone.push../node_modules/zone.js/dist/zone.js.Zone.runTask (zone.js:195)
    at ZoneTask.push../node_modules/zone.js/dist/zone.js.ZoneTask.invokeTask [as invoke] (zone.js:498)
    at invokeTask (zone.js:1744)
    at Worker.globalZoneAwareCallback (zone.js:1781)&lt;/PRE&gt;&lt;P&gt;I'm wondering if this is why the thumbnails aren't appearing?&lt;/P&gt;&lt;P&gt;I googled the error message &amp;amp; some have suggested that zone.js needs to be updated.&amp;nbsp; Any ideas?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jul 2020 09:15:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/enabling-thumbnails-for-viewer-component/m-p/40873#M17143</guid>
      <dc:creator>Mark_Davidson</dc:creator>
      <dc:date>2020-07-07T09:15:44Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling Thumbnails for Viewer Component</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/enabling-thumbnails-for-viewer-component/m-p/40874#M17144</link>
      <description>&lt;P&gt;Probably useful to paste a screenshot of the entire console contents:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="adf-js-console.png" style="width: 772px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/79iAAC433011CE28818/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;:&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jul 2020 09:22:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/enabling-thumbnails-for-viewer-component/m-p/40874#M17144</guid>
      <dc:creator>Mark_Davidson</dc:creator>
      <dc:date>2020-07-07T09:22:04Z</dc:date>
    </item>
  </channel>
</rss>

