parent::prepareStub();
Files::rmdir($this->stub . '/pdfjs');
$this->vdir->copyDirectory(resource_path('pdfjs'), '/pdfjs');
- $css = file_get_contents(resource_path('pdfjs') . '/web/viewer.css');
- $css = '.article #sidebarContainer, .article .toolbar {display:none !important;}';
+ $css = file_get_contents(resource_path('pdfjs/web/viewer.css'));
+ $css .= '.article #sidebarContainer, .article .toolbar {display:none !important;}';
$css .= '.article .pdfViewer{padding:0 !important;}';
$css .= '.article #viewerContainer{top:0 !important;overflow:visible !important;}';
$css .= '.article{--page-border:0;--page-margin:0;--body-bg-color:transparent;}';