Hi, is it possible to command the pdf to automatically fit to width?
Topic on Extension talk:PDFEmbed
Change the file PDFEmbed.hooks
static private function embed(File $file, $width, $height, $page) {
return Html::rawElement(
'iframe',
[
//'width' => $width,
'width' => '100%',
'height' => $height,
'src' => $file->getFullUrl().'#page='.$page,
'style' => 'max-width: 100%;'
]
);
}