Using PDF2Image in .NET Solution

127 views
Skip to first unread message

Support

unread,
Sep 1, 2010, 1:33:09 PM9/1/10
to PDF2Image
Q: I have downloaded your trial PDF2Image trial sdk and I am trying to
use it with Visual Studio. I have tried Win XP, Win 7, VS2010 and
VS2008 and got error messages from all when I tried to add a reference
to your pdf2image.dll. Words to the effect of 'this is not a valid
format'. What am I doing wrong?

------------------
A: PDF2Image is not a .NET assembly but a plain 'C' DLL that can be
accessed via PInvoke (from C#, VB, etc). As a result you can't add an
assembly reference to 'pdf2image.dll', but if you place pdf2image in
the same folder as your application dll (or Windows/System32) it will
be automatically detected by your application. Also in case you are
running on a 64-bit Windows you would need a 64-bit SDK (instead of
the 32-bit version). For an example integration with C# and VB please
see the sample solutions that are included as part of the SDK.

In case you would like to use a true .NET component to convert PDF to
images, you may want to use PDFNet SDK (http://www.pdftron.com/pdfnet/
index.html) instead. PDFNet can do everything that is possible with
PDF2Image, plus much more (http://www.pdftron.com/pdfnet/
features.html). You can directly add a direct reference to PDFNet.DLL
assembly from your project solution. As a starting point you may want
to take a look at PDFDraw sample project:
http://www.pdftron.com/pdfnet/samplecode.html#PDFDraw


Reply all
Reply to author
Forward
0 new messages