A voir également:
- Pdf to image
- Lire le coran en français pdf - Télécharger - Histoire & Religion
- Extraire image pdf - Guide
- Save as pdf office 2007 - Télécharger - Bureautique
- Qwerty to azerty - Guide
- Image iso - Guide
10 réponses
Un petit Google et hop :
http://stackoverflow.com/questions/4695695/convert-pdf-to-jpg-or-png-using-c-sharp-or-command-line
"convert tool from the ImageMagick bundle can do this
convert myfile.pdf myfile.png"
http://stackoverflow.com/questions/4695695/convert-pdf-to-jpg-or-png-using-c-sharp-or-command-line
"convert tool from the ImageMagick bundle can do this
convert myfile.pdf myfile.png"
XX
Je voudrais savoir sur les bibliothèques libres
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question
Essaye celle-ci
https://code.google.com/p/lib-pdf/
C'est du GPL mais c'est grossièrement la même chose
https://code.google.com/p/lib-pdf/
C'est du GPL mais c'est grossièrement la même chose
J'ai rajouter le "pdf_lib.dll "au références de mon projet et j'ai rajouter le code suivant:
using (FileStream file = File.OpenRead(@"..\path\to\pdf\file.pdf")) // in file
{
var bytes = new byte[file.Length];
file.Read(bytes, 0, bytes.Length);
using (var pdf = new LibPdf(bytes))
{
byte[] pngBytes = pdf.GetImage(0,ImageType.PNG); // image type
using (var outFile = File.Create(@"..\path\to\pdf\file.png")) // out file
{
outFile.Write(pngBytes, 0, pngBytes.Length);
}
}
}
ça marche paaa
using (FileStream file = File.OpenRead(@"..\path\to\pdf\file.pdf")) // in file
{
var bytes = new byte[file.Length];
file.Read(bytes, 0, bytes.Length);
using (var pdf = new LibPdf(bytes))
{
byte[] pngBytes = pdf.GetImage(0,ImageType.PNG); // image type
using (var outFile = File.Create(@"..\path\to\pdf\file.png")) // out file
{
outFile.Write(pngBytes, 0, pngBytes.Length);
}
}
}
ça marche paaa
Je ne peux pas t'aider plus que cela, je ne programme pas en C#.
Essaye le forum : https://www.developpez.net/forums/
Essaye le forum : https://www.developpez.net/forums/