FIX The preview of PDF was never refreshed if PDF document was changed
This commit is contained in:
parent
0211ad64ee
commit
c51bc09e39
@ -144,7 +144,7 @@ if ($id > 0 || ! empty($ref))
|
|||||||
print "</table>\n";
|
print "</table>\n";
|
||||||
|
|
||||||
// Conversion du PDF en image png si fichier png non existant
|
// Conversion du PDF en image png si fichier png non existant
|
||||||
if (! file_exists($fileimage) && ! file_exists($fileimagebis))
|
if ((! file_exists($fileimage) && ! file_exists($fileimagebis)) || (filemtime($fileimage) < filemtime($file)))
|
||||||
{
|
{
|
||||||
if (class_exists("Imagick"))
|
if (class_exists("Imagick"))
|
||||||
{
|
{
|
||||||
|
|||||||
@ -142,7 +142,7 @@ if ($id > 0 || ! empty($ref))
|
|||||||
print "</table>\n";
|
print "</table>\n";
|
||||||
|
|
||||||
// Conversion du PDF en image png si fichier png non existant
|
// Conversion du PDF en image png si fichier png non existant
|
||||||
if (! file_exists($fileimage) && ! file_exists($fileimagebis))
|
if ((! file_exists($fileimage) && ! file_exists($fileimagebis)) || (filemtime($fileimage) < filemtime($file)))
|
||||||
{
|
{
|
||||||
if (class_exists("Imagick"))
|
if (class_exists("Imagick"))
|
||||||
{
|
{
|
||||||
|
|||||||
@ -280,7 +280,7 @@ if ($id > 0 || ! empty($ref))
|
|||||||
print "</table>\n";
|
print "</table>\n";
|
||||||
|
|
||||||
// Conversion du PDF en image png si fichier png non existant
|
// Conversion du PDF en image png si fichier png non existant
|
||||||
if (! file_exists($fileimage) && ! file_exists($fileimagebis))
|
if ((! file_exists($fileimage) && ! file_exists($fileimagebis)) || (filemtime($fileimage) < filemtime($file)))
|
||||||
{
|
{
|
||||||
if (class_exists("Imagick"))
|
if (class_exists("Imagick"))
|
||||||
{
|
{
|
||||||
|
|||||||
@ -124,7 +124,7 @@ if ($id > 0 || ! empty($ref))
|
|||||||
print "</table>\n";
|
print "</table>\n";
|
||||||
|
|
||||||
// Conversion du PDF en image png si fichier png non existant
|
// Conversion du PDF en image png si fichier png non existant
|
||||||
if (! file_exists($fileimage) && ! file_exists($fileimagebis))
|
if ((! file_exists($fileimage) && ! file_exists($fileimagebis)) || (filemtime($fileimage) < filemtime($file)))
|
||||||
{
|
{
|
||||||
if (class_exists("Imagick"))
|
if (class_exists("Imagick"))
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user