2020-12-01 23:01:21 +01:00
|
|
|
<script>
|
2023-05-17 15:34:56 +02:00
|
|
|
import { fs_file_url } from "../FilesystemUtil.js";
|
2020-12-01 23:01:21 +01:00
|
|
|
export let state
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<iframe
|
|
|
|
class="container"
|
2023-05-17 15:34:56 +02:00
|
|
|
src={"/res/misc/pdf-viewer/web/viewer.html?file="+encodeURIComponent(fs_file_url(state.root.id, state.base.path))}
|
2020-12-01 23:01:21 +01:00
|
|
|
title="PDF viewer">
|
|
|
|
</iframe>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
.container {
|
|
|
|
position: relative;
|
|
|
|
display: block;
|
|
|
|
height: 100%;
|
|
|
|
width: 100%;
|
|
|
|
text-align: center;
|
|
|
|
overflow: hidden;
|
|
|
|
border: none;
|
|
|
|
}
|
|
|
|
</style>
|