PDF thumbnails from VBA
I was asked to develop a form where user can see a pdf thumbnail of a pdf file. It was pretty far from what I have been developing so I decided to use "uncle" google to find a solution. There are some solutions but nothing what was expecting. You can use paid version of Adobe or free Adobe Acrobat ActiveX (Acropdf1) or some others free tools that can work along a pdf file. I tested only the free version of Acrobat ActiveX component and it was really nightmare. Then I found a C# project using the GhostScript tool for creating a pdf thumbnail. Unfortunatelly VBA cannot work with this project directly. Read more to find solution.
As I mentioned you can use the Acropdf1 activeX which is automatically installed with the Adobe Reader application.

How to add the Acropdf1 activeX on a VBA form
At the first time the activeX seemed to be a good solution but then I found two "bugs". The first one is more important than the second one. The activeX takes focus and never give it back and if you press the "TAB" key, then the whole application will crash. It's very known bug but Adobe cannot fix it for some reason. And the second bug rather behavior - of the activeX control is uncomfortable - it always takes focus and never give it back and also you don't have option to find out if a pdf document is fully loaded or not. My client was complaining about that for many times so I decided to find another solution.
I found code from Matthew Ephraim. where he uses a free tool Ghostscrip and .NETFramework 3.5 and C#. Form Visual Studio you can use his tool without any problems just include it into your project. Unfortunately we cannot use his dll directly from VBA. That was the reason why I took his code and made a little adjustment to expose methods from his project to the COM object.
Now - after registration the dll to your system - you can reference the dll as usually and use it !!! And it works great.

Who is interested how to create a C# dll that can work with VBA I attached the zip file with entire C# solution. Look at the Attachment section.
And who just want to use it as soon as possible, download the installer and install it. I also prepare a sample and you can find everything in the Attachment section.
The installer just check if your system contains the .NETFramework 4 and if not, it will suggest to download it and then register the dlls into your system.
Your code can look like this one
and then you can take the output file as an ordinary image file and load it - for example - to an image control.
Option Explicit
'********************************************************************************
'TestPDFThumbnailGeneration
'
' Purpose: It uses reference to GhostscriptWrapper library.
' From a pdf file creates a jpg file that represents a thumbnail of the pdf.
' You can set page number and DPI quality.
'
' Inputs: -none-
'
' Outputs: -none-
'
' Created: 02/10/2011 Premysl Lazecky
'
' Modified: .
'
'********************************************************************************
Sub TestPDFThumbnailGeneration()
Dim PDF As GhostscriptWrapper
Dim strPath As String
Dim strInputFile As String
strInputFile = "Test.pdf"
strPath = ActiveWorkbook.Path
If Right$(strPath, 1) <> Application.PathSeparator Then
strPath = strPath & Application.PathSeparator
End If
Set PDF = New GhostscriptWrapper
PDF.GeneratePDFThumb inputPath:=strPath & strInputFile, _
outputPath:=strPath & "Output.jpg", _
Page:=1, _
Width:=72, Height:=72
Set PDF = Nothing
End Sub
As the result of this code you will get a jpg file called Output.jpg with thumbnail of defined page in the pdf file - in this case page 1 - with defined resolution.
Attachments
Installer and sample files
C# project
Komentáře
Přehled komentářů
You can find a bibliography that makes you scream. This PDF is a list. It is a book. The digital format is read. see and do. https://youcanscreampdf.top/ You Can Scream Text Format
Alcott Hall Pdf Fast Download
(alcotthallpdfesorm, 21. 12. 2025 2:53)Get the Alcott Hall PDF and explore the history of the estate. This document is a valuable resource for students and enthusiasts. Download it today to access a well-researched text that provides a complete overview of the building's past. https://alcotthallpdf.top/ Alcott Hall Pdf Download Free
An Archive Of Romance Online Reader
(anarchiveofromanceesorm, 21. 12. 2025 0:19)For those who are learning to edit, reading bad and good books helps. An archive of romance has a mix of everything. I download PDF novels to study what makes a story work and what doesn't, which helps me in my own writing projects. https://anarchiveofromancepdf.top/ Download An Archive Of Romance Pdf
An Archive Of Romance Pdf Doc
(anarchiveofromanceesorm, 20. 12. 2025 16:31)I recently decided to switch to digital reading to save paper. Using an archive of romance is an eco-friendly way to enjoy my favorite hobby. The PDF files are high quality and offer a sustainable alternative to buying paperback throwaways that simply gather dust on the shelf. https://anarchiveofromancepdf.top/ An Archive Of Romance A Study In Drowning Novella Pdf
Sunrise On The Reaping Audiobook
(sunriseonthereapinesorm, 19. 12. 2025 20:33)Sunrise on the Reaping offers profound insight into Haymitch Abernathy's transformation. This fifth Hunger Games novel PDF reveals his traumatic past during the fiftieth Games. Suzanne Collins masterfully connects this prequel to the original trilogy. Get your instant download with no signup hassle. https://sunriseonthereapingpdf.top/ The Hunger Games Sunrise On The Reaping Pdf Free
Промокод и Бонусы 2026
(Dennisagigo, 19. 12. 2025 13:54)Go to our fresh website : https://madguy.ru/
Iron Flame Pdf Fliphtml5
(ironflamepdfesorm, 19. 12. 2025 0:57)Iron Flame roars triumph! Violet claims victory amid flames. Epic read. PDF free from ironflamepdf.top! https://ironflamepdf.top/ Iron Flame Map
Lisa Marie Presley Lights Out
(lightsoutpdfesorm, 18. 12. 2025 15:45)Download the Lights Out PDF and make the most of your screen. Our files look great on high-DPI displays. visual perfection for your documents. https://lightsoutpdf.top/ Where Can I Watch Lights Out
A Court Of Mist And Fury Summary
(acourtofmistandfuresorm, 17. 12. 2025 18:37)Why is the Night Court feared by so many? Find out by reading the A Court of Mist and Fury PDF. This document contains the entire thrilling narrative of alliance and betrayal. It is the perfect format for binge-reading the series on your electronic device. https://acourtofmistandfurypdf.top/ A Court Of Mist And Fury Chapter 55
How Many Books Will Be In The Fourth Wing Series
(fourthwingpdfesorm, 17. 12. 2025 8:41)The final battle is a masterpiece of tension. Read it in the Fourth Wing PDF. It leaves you breathless and wanting the sequel immediately. https://fourthwingpdf.top/ How Many Chapters In Fourth Wing
tropicana online casino new jersey b98xwi
(ArielAders, 16. 12. 2025 14:41)
You expressed it wonderfully.
rocket play casino canada https://bhcmerced.org/canadian-casino-online/ casino canada online
https://bergkompressor.ru/
(Justinbaisy, 16. 12. 2025 2:25)На официальном сайте компании всегда актуальные данные > https://bergkompressor.ru/
Промокод и Бонусы 2026
(Brianstype, 13. 12. 2025 20:58)Check our site for updates — https://www.apelsin.su/
Промокод и Бонусы 2026
(ElvinWoums, 6. 12. 2025 3:52)Посетите официальный сайт бренда : https://sushikim.ru/
Fast emergency locksmith in Tampa FL that doesn’t leave you waiting?
(Charlesmup, 5. 12. 2025 3:46)
Locked myself out of my place in Tampa and figured I’d share this in case it helps someone else.
I used a local locksmith from this site:
https://tampa24hrlocksmith.com/
They offer day and night mobile service in Tampa for:
- Vehicle lockouts and lost car keys
- House / apartment lockouts
- Rekey service for new owners or tenants
- Small business / office locks
The tech came out pretty quickly, explained the cost up front and there were no hidden fees at the end.
If you get locked out, it’s worth saving this:
**https://tampa24hrlocksmith.com/**
Posting this because it’s hard to tell which locksmiths are real and which are sketchy, and this one actually did the job without turning it into a circus.
Canada Lumiere Gaming
(NancyFooky, 3. 12. 2025 22:09)
Good to have you here. something interesting usually starts with a simple hello.
Enjoy wave flow slot action with smooth movement, calming design, and polished mechanics. Built for Canadian relaxation and enjoyment.
п»їhttps://besthotcasino.ca
1xBet Промокод 2026 — Фрибет и Бонус до 32 500 RUB
(WilliamMon, 3. 12. 2025 16:40)
где найти промокод для 1xBet Активируйте бонусом при регистрации на https://solo.to/bergkompressor и заберите 32 500? + 100% к депозиту, чтобы получить дополнительное преимущество.
Unlосk 200 Frее Sріns & a Саsh Воnus up to 1800Dоl
(Gregoryknise, 2. 12. 2025 21:25)
Rеgіster now and receive a welсоme раckage:
up to 230 frее sріns and as much as 2100€ Воnus funds!
Huge range of games, instant winnings, and a trusted саsіnо experience await at
https://Tdeybestnews.shop/ba1gcsu
Промокод и Бонусы 2026
(Lloydshews, 2. 12. 2025 5:12)Latest updates are here > https://tako-text.ru/
1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60
You Can Scream Pdf File
(youcanscreampdfesorm, 21. 12. 2025 7:22)