File "viewer04.php"

Full Path: /home/analogde/www/MDPH/explorer/viewer04.php
File size: 712 bytes
MIME-type: text/html
Charset: utf-8

<!DOCTYPE html>
<html lang="fr">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Intégration de Google Drive Viewer</title>
</head>
<body>
    <h1>Document PDF intégré</h1>
    <?php
    // URL de votre fichier PDF
    $pdfUrl = 'https://example.com/path/to/your/document.pdf';

    $pdfUrl = 'https://analog-design.net/2024_PHP/2024_PHP_28_10_2024/explorer/aaa.pdf';

    // URL de Google Drive Viewer
    $viewerUrl = 'https://drive.google.com/viewerng/viewer?embedded=true&url=' . urlencode($pdfUrl);
    ?>
    <iframe src="<?php echo $viewerUrl; ?>" width="600" height="400" frameborder="0" allowfullscreen></iframe>
</body>
</html>