[C#.NET] Afficher une zone d'un fichier PDF dans une fenetre ?

Afficher une zone d'un fichier PDF dans une fenetre ? [C#.NET] - C#/.NET managed - Programmation

Marsh Posté le 27-09-2006 à 16:43:56    


Bonjour,
 
Pour un "Aprecu avant impression" de mon programme, je souhaite faire afficher une certaine zone d'un fichier PDF. J'utilise PDFBox, mais la fonction PDFtoImage() ne fonctionne pas encore, vu qu'elle est en phase beta.  
 
Maintenant je ne sais pas trop comment faire. Si je pouvais convertir un PDF en image, je pourrais faire afficher l'image ... mais actuellement, je n'ai pas trouvé de librairie gratuite, opensource et avec autorisée pour un usage commercial. J'ai PDFLib ici (900$ :sarcastic: ) et ca ne me sert pas :/
 
Qqun a une idée de génie ?
 
 :jap:


---------------
Pier noir la mèr - La chanson par HFR Band - Topic TrueCrypt
Reply

Marsh Posté le 27-09-2006 à 16:43:56   

Reply

Marsh Posté le 27-09-2006 à 19:53:31    

Hello,
J'ai eu presque le même problème que toi et je me suis servi de
http://www.codeproject.com/dotnet/pdfthumbnail.asp
si ca peux t'aider...

Reply

Marsh Posté le 27-09-2006 à 20:45:02    

ça a l'air intéressant, je vais tester ça demain au boulot, merci beaucoup. :)
On peut faire une image 1:1 en png (par ex) du document PDF avec cette méthode ?


---------------
Pier noir la mèr - La chanson par HFR Band - Topic TrueCrypt
Reply

Marsh Posté le 28-09-2006 à 20:26:37    

en théorie oui.

Reply

Marsh Posté le 28-09-2006 à 23:35:30    

Bon j'ai testé, ça marche plutot bien, mais ... il faut adobe acrobat (pas le reader !) d'installé ! Jpeux pas filer ça aux clients  :sweat:


---------------
Pier noir la mèr - La chanson par HFR Band - Topic TrueCrypt
Reply

Marsh Posté le 29-09-2006 à 19:14:13    

euh j'ai fait cela avec acrobat reader version 5 et ca fonctionne

Reply

Marsh Posté le 29-09-2006 à 19:52:18    

Pourtant:
 

Citation :

The Acrobat SDK combined with the full version of Adobe Acrobat (sadly the free reader does not expose the COM interfaces) exposes a COM library of objects that can be used to manipulate and access PDF information.


 
Je vais tester, alors :)


---------------
Pier noir la mèr - La chanson par HFR Band - Topic TrueCrypt
Reply

Marsh Posté le 29-09-2006 à 19:55:21    

Résutat du test: ça ne marche pas, comme prévu :D
 
On va acheter ça:
 
http://www.tallcomponents.com/Defa [...] r-versions
 
[:spamafote]


---------------
Pier noir la mèr - La chanson par HFR Band - Topic TrueCrypt
Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed