# NG Desktop & Pdf\_Viewer Inconsistency

**URL:** <https://forum.servoy.com/t/ng-desktop-pdf-viewer-inconsistency/20632>\
**Category:** Questions\
**Created:** [December 6, 2021, 12:10pm UTC](https://forum.servoy.com/t/ng-desktop-pdf-viewer-inconsistency/20632 "2021-12-06T12:10:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pitc](https://avatars.discourse-cdn.com/v4/letter/p/858c86/32.png) [@pitc](https://forum.servoy.com/u/pitc)\
**Post date:** [December 6, 2021, 12:10pm UTC](https://forum.servoy.com/t/ng-desktop-pdf-viewer-inconsistency/20632/1 "2021-12-06T12:10:03Z")

</div>

I am using the pdf\_viewer component by specifying a dataprovider as a form variable to provide the pdf bytes.  
When testing in developer in the Ng Client ( browser) the pdf bytes display correctly.  
However when testing and launching the NGDesktop the pdf bytes are displayed correctly but there is a string of characters in the tool bar that look like a UUID.

The layout and the icons are different.  
Note that the NgClient displays is identical to the native browser display when using File:// Browser is Firefox.  
Note that the NgDesktop dispaly is identical to the Chromium browser.  
Note that if I have NgClient run in the Chome browser then it is identical to the NgDesktop display.

To make it more interesting I tried to set the documentUrl instead of the dataprovider (still set in the properties but the value is null) bytes but got a blank pdf displayed.  
Does the pdf\_viewer component (NOT the pdf\_js\_viwer component) only work with the dataprovider?

Using Servoy 2021.09.3703 Servoy PDF Viewer 1.4.1 Servoy Extra components 4.2.0, Bootstrap Extra components 1.4.1

![pdf_viewer_ngclient.jpg](https://canada1.discourse-cdn.com/flex010/uploads/servoy/optimized/2X/d/db00669e4b68854f34f5433e07a49b261bf17386_2_690x80.jpeg)

 ![pdf_viewer_ngdesktop.jpg](https://canada1.discourse-cdn.com/flex010/uploads/servoy/original/1X/55b4e040bd486ab092f6805b81e2c9f7d869d6c7.jpeg)

---

<div class="post-metadata">

**Author:** ![robert.edelmann](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/robert.edelmann/32/4494_2.png) [@robert.edelmann](https://forum.servoy.com/u/robert.edelmann)\
**Post date:** [December 8, 2021, 11:10am UTC](https://forum.servoy.com/t/ng-desktop-pdf-viewer-inconsistency/20632/2 "2021-12-08T11:10:12Z")

</div>

There’s a ticket requesting an option to provide the name of the file: [Jira](https://support.servoy.com/browse/SVYX-55). At the moment it seems the name is random.

I think the icons in the pdf-viewer are the browser-defaults, ngDesktop is based on electon / chromium.

If you want to display a file you have to save it on the server and provide the corresponding URL from ```  
plugins.file.getUrlForRemoteFile()

```auto

```
