1 pièce(s) jointe(s)
afficher un aperçu d'un fichier pdf en java web
Bonsoir chers amis.
J'ai un souci actuellement sur comment faire pour aficher un pdf sotcké sur mon disque dur à partir de mon programme java
Après toutes les recherches voici ce que j'ai trouvé.
Code:
1 2 3 4 5 6 7 8 9 10 11 12
|
<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://xmlns.jcp.org/jsf/html">
<h:head>
<title>Facelet Title</title>
</h:head>
<h:body>
<object data="C:\Checklistversiontest.pdf" type="application/pdf" width="815" height="875"></object>
</h:body>
</html> |
ca n'affiche rien dans mon navigateur.
Ce qui me surprend en plus c'est que lorsque j'écris ceci sous notepad++ la portion de code qui suit en utilisant la balise <object>ce dernier marche et affiche parfaitement ma page
Code:
1 2 3 4 5 6 7 8 9 10 11
|
<HTML>
<HEAD>
</HEAD>
<body>
<object data="C:\Checklistversiontest.pdf" type="application/pdf" width="815" height="875"></object>
<body/>
</HTML> |
Ma question est pourquoi depuis mon IDE Netbeans lorsque je lance l'index.xhtml ca ne marche pas et ca marche sous mon notepad++