Preview PDF files with documentViewerField and problem with spacing between other components

Good afternoon.

We have a requirement to preview a PDF file.

For that, we are using the documentViewerField component (green circle).
Both the documentViewerField component and the other components displayed in the image are inside a cardLayout.
However, there is a lot of space (blue box) because of the height occupied by the documentViewerField and we want to avoid that space, making the documentViewerField component occupy exactly the same height as the rest of the components, to avoid the large space that is displayed (blue box) and that the resulting space is only the space occupied by the yellow box.
We want to display pdf files in thumbnail and at the same time we want the thumbnail to be adjustable to the box we have in yellow, to avoid that space (blue box).

On the other hand, is it possible, somehow, to make that with some click we can have a thumbnail in a larger viewer and be able to download the document.

Does anyone know any way to do this, or any component or plugin that fits the requirements explained?

Thank you very much.

  Discussion posts and replies are publicly visible

Parents Reply Children
No Data