<?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 adf-viewer-extension not working in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/adf-viewer-extension-not-working/m-p/15760#M6956</link>
    <description>&lt;P&gt;I am trying the `adf-viewer-extension` but seems it's not reflecting.&lt;BR /&gt;Does anyone have idea?&lt;BR /&gt;&lt;BR /&gt;My adf package version is&amp;nbsp;&lt;SPAN&gt;4.8.0.&lt;BR /&gt;&lt;/SPAN&gt;(It works for other files like pdf, csv, png/jpg. I just want to explore if I can display word file.)&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2022-07-21 at 12.46.45 PM.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/129iE8A87DB6D28717ED/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;PRE&gt;&amp;lt;adf-viewer
  id="dw-viewer-id"
  [(showViewer)]="showViewer"
  [displayName]="name"
  [blobFile]="content"
  (showViewerChange)="onViewerVisibilityChanged()"
&amp;gt;
  &amp;lt;adf-viewer-extension [supportedExtensions]="['doc', 'docx']" #extension&amp;gt;
    &amp;lt;ng-template let-urlFileContent="urlFileContent" let-extension="extension"&amp;gt;
      &amp;lt;div&amp;gt;word&amp;lt;/div&amp;gt;
    &amp;lt;/ng-template&amp;gt;
  &amp;lt;/adf-viewer-extension&amp;gt;

  &amp;lt;adf-viewer-more-actions *ngIf="enableDownload" id="dw-viewer-more-action-id"&amp;gt;
    &amp;lt;button mat-menu-item (click)="downloadContent()"&amp;gt;
      &amp;lt;mat-icon&amp;gt;file_download&amp;lt;/mat-icon&amp;gt;
      &amp;lt;span&amp;gt;{{ 'ADF_VIEWER.ACTIONS.DOWNLOAD' | translate }}&amp;lt;/span&amp;gt;
    &amp;lt;/button&amp;gt;
  &amp;lt;/adf-viewer-more-actions&amp;gt;
&amp;lt;/adf-viewer&amp;gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 21 Jul 2022 04:49:09 GMT</pubDate>
    <dc:creator>michael-chan</dc:creator>
    <dc:date>2022-07-21T04:49:09Z</dc:date>
    <item>
      <title>adf-viewer-extension not working</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/adf-viewer-extension-not-working/m-p/15760#M6956</link>
      <description>&lt;P&gt;I am trying the `adf-viewer-extension` but seems it's not reflecting.&lt;BR /&gt;Does anyone have idea?&lt;BR /&gt;&lt;BR /&gt;My adf package version is&amp;nbsp;&lt;SPAN&gt;4.8.0.&lt;BR /&gt;&lt;/SPAN&gt;(It works for other files like pdf, csv, png/jpg. I just want to explore if I can display word file.)&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2022-07-21 at 12.46.45 PM.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/129iE8A87DB6D28717ED/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;PRE&gt;&amp;lt;adf-viewer
  id="dw-viewer-id"
  [(showViewer)]="showViewer"
  [displayName]="name"
  [blobFile]="content"
  (showViewerChange)="onViewerVisibilityChanged()"
&amp;gt;
  &amp;lt;adf-viewer-extension [supportedExtensions]="['doc', 'docx']" #extension&amp;gt;
    &amp;lt;ng-template let-urlFileContent="urlFileContent" let-extension="extension"&amp;gt;
      &amp;lt;div&amp;gt;word&amp;lt;/div&amp;gt;
    &amp;lt;/ng-template&amp;gt;
  &amp;lt;/adf-viewer-extension&amp;gt;

  &amp;lt;adf-viewer-more-actions *ngIf="enableDownload" id="dw-viewer-more-action-id"&amp;gt;
    &amp;lt;button mat-menu-item (click)="downloadContent()"&amp;gt;
      &amp;lt;mat-icon&amp;gt;file_download&amp;lt;/mat-icon&amp;gt;
      &amp;lt;span&amp;gt;{{ 'ADF_VIEWER.ACTIONS.DOWNLOAD' | translate }}&amp;lt;/span&amp;gt;
    &amp;lt;/button&amp;gt;
  &amp;lt;/adf-viewer-more-actions&amp;gt;
&amp;lt;/adf-viewer&amp;gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 21 Jul 2022 04:49:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/adf-viewer-extension-not-working/m-p/15760#M6956</guid>
      <dc:creator>michael-chan</dc:creator>
      <dc:date>2022-07-21T04:49:09Z</dc:date>
    </item>
    <item>
      <title>Re: adf-viewer-extension not working</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/adf-viewer-extension-not-working/m-p/15761#M6957</link>
      <description>&lt;P&gt;It seems to me that your problem has nothing to do with ADF. Make sure your local transformation services are up and running correctly (especially libreoffice)&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2022 10:13:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/adf-viewer-extension-not-working/m-p/15761#M6957</guid>
      <dc:creator>KarekMedAM</dc:creator>
      <dc:date>2022-07-26T10:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: adf-viewer-extension not working</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/adf-viewer-extension-not-working/m-p/15762#M6958</link>
      <description>&lt;P&gt;This issue is coming while using blobFile in ADF viewer, you should try this...&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;adf-viewer
  id="dw-viewer-id"
  [(showViewer)]="showViewer"
  [displayName]="name"
  [blobFile]="content"
  (showViewerChange)="onViewerVisibilityChanged()"&lt;BR /&gt;  #adfviewer .....&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;PRE&gt;@ViewChild('adfviewer', { static: false }) &lt;BR /&gt;adfviewer: ViewerComponent; &lt;BR /&gt;&lt;BR /&gt;private changeDetectorRef: ChangeDetectorRef &lt;BR /&gt;....&lt;BR /&gt;if(this.content){ //blob content&lt;BR /&gt;  this.changeDetectorRef.detectChanges(); &lt;BR /&gt;  this.adfviewer.viewerType = 'custom'; &lt;BR /&gt;  this.adfviewer.extensionTemplates[0].isVisible = true; // forcefully assign 1st template for blobFile value. &lt;BR /&gt;  const url = URL.createObjectURL(this.content); // create blob url&lt;BR /&gt;  this.adfviewer.urlFileContent = url; &lt;BR /&gt;}&lt;/PRE&gt;</description>
      <pubDate>Fri, 22 Sep 2023 03:25:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/adf-viewer-extension-not-working/m-p/15762#M6958</guid>
      <dc:creator>mohib</dc:creator>
      <dc:date>2023-09-22T03:25:46Z</dc:date>
    </item>
  </channel>
</rss>

