06-27-2018 11:30 PM
<adf-viewer [showViewer]="true" [overlayMode]="true" [fileNodeId]="'d367023a-7ebe-4f3a-a7d0-4f27c43f1045'"></adf-viewer>
With simple hardcoded pdf doc id Viewer component fails. Please suggest resolution. Thanks.
core.js:1427 ERROR Error: Uncaught (in promise): TypeError: Cannot read property 'mimeType' of undefined
TypeError: Cannot read property 'mimeType' of undefined
at ViewerComponent.setUpNodeFile (adf-core.js:829)
at eval (adf-core.js:788)
at ZoneDelegate.invoke (zone.js:391)
at Object.onInvoke (core.js:4753)
at ZoneDelegate.invoke (zone.js:390)
at Zone.run (zone.js:141)
at eval (zone.js:831)
at ZoneDelegate.invokeTask (zone.js:424)
at Object.onInvokeTask (core.js:4744)
at ZoneDelegate.invokeTask (zone.js:423)
at ViewerComponent.setUpNodeFile (adf-core.js:829)
at eval (adf-core.js:788)
at ZoneDelegate.invoke (zone.js:391)
at Object.onInvoke (core.js:4753)
06-28-2018 02:11 AM
Are you sure the GUID is correct and you point to the PDF that exists? Trying to reproduce your issue by at my side Viewer displays everything correctly.
Would be interesting to get some more details, like ACS version, "node" details, etc.
06-28-2018 02:11 AM
Are you sure the GUID is correct and you point to the PDF that exists? Trying to reproduce your issue by at my side Viewer displays everything correctly.
Would be interesting to get some more details, like ACS version, "node" details, etc.
06-28-2018 10:47 AM
I am an idiot. I used folder GUID. Thanks for the comment.
06-28-2018 02:14 AM
You can use GitHub - Alfresco/alfresco-content-app: Alfresco Example Content Application for testing purposes. It has a rich viewer integration.
Explore our Alfresco products with the links below. Use labels to filter content by product module.