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ářů
megaweb7 https://canigocerramientos.com/ru/sayt-kraken-novosti-kraken-tor-rabochie-_3594.html
Mega Run — действующий onion сайт, подключение в даркнет
(Megassow, 26. 1. 2026 18:16)тор браузер mega https://bygris.es/ru/ssylka-v-kraken-telegram-kraken-rabochie_8412.html
Mega Market — действующий darknet портал, подключение через Onion
(Megassow, 26. 1. 2026 16:34)mega fo сайт https://annaribas.es/ru/sayt-kraken-ne-otkryvaetsya-onion-rabota_2561.html
CГіdigo promocional de MelBet 2026: ZEVS777 - Bono del 100%
(MarcomeflY, 26. 1. 2026 15:46)
ObtГ©n acceso instantГЎneo a todos los descuentos, ofertas y cГіdigos promocionales de miles de tiendas online. ВЎNo mГЎs cupones desperdiciados! Honey te garantiza el precio mГЎs bajo.
Source:
- https://Classifieds4Free.biz/389/posts/1/1/1967587.html
CГіdigo promocional de MelBet 2026: ZEVS777 - Bono del 100%
Мега Мориарти — актуальный onion сайт, доступ через VPN
(Megassow, 26. 1. 2026 14:51)mega зеркала вход https://mcrajman.com/ru/kraken-cc-market-newmaketycom-kraken-ple_4577.html
Mega Market — проверенный вход, доступ через Onion
(Megassow, 26. 1. 2026 13:09)домены на мегу https://recentnews.online/ru/ne-mogu-bleeksprt-zayti-na-bleksprut-s-a_9250.html
Mega Мориарти — основной вход, подключение через Tor
(Megassow, 26. 1. 2026 11:29)megaweb11.store https://tradingmasterr.shop/ru/blacksprut-onion-na-segodnya-bleksprut-o_4511.html
Mega Run — основной onion сайт, доступ в Tor сети
(Megassow, 26. 1. 2026 9:50)что с сайтом мега даркнет https://usuknews.blog/ru/proekt-rutor-darknet-rutor-pryamaya-ssyl_8557.html
Мега Мориарти — основной вход, вход через Onion
(Megassow, 26. 1. 2026 8:10)mega даркнет браузер https://canigocerramientos.com/ru/ssylki-nova-dlya-tor-kak-voyti-na-nova-d_1827.html
Мега Market — настоящий вход, доступ без блокировок
(Megassow, 26. 1. 2026 6:28)магазин мориарти мега токен https://casakurantu.es/ru/kak-sdelat-kraken-ssylku-nayti-zerkalo-k_7145.html
Mega Market — актуальный официальный ресурс, подключение через VPN
(Megassow, 26. 1. 2026 3:12)m3ga.at ссылка mega https://artipanalcoy.com/ru/bleksprut-ne-rabotaet-sayt-originalnaya-_4361.html
Мега Marketplace — основной onion сайт, подключение в даркнет
(Megassow, 25. 1. 2026 23:38)Пятигорск https://outsourcingheaven.com/ru/kak-iskat-lyudey-v-tg-telegram-bot-po-no_1920.html
Código promocional de MelBet: ZEVS777 - Bono de depósito de 200 €
(Stevencab, 24. 1. 2026 16:17)
La oferta de reembolso diario solo se aplica a la primera apuesta que realice despuГ©s del inicio de la oferta.
Source:
- https://theavtar.in/read-blog/129545
Código promocional de MelBet: ZEVS777 - Bono de depósito de 200 €
Código promocional de MelBet: ZEVS777 - Bono de 100 €/$
(Stevencab, 24. 1. 2026 12:47)
Alternativa a MelBet
Source:
- https://hackmd.io/@2xdScEI-QHqMrg06HDLwCg/By6oZuYSWl
Código promocional de MelBet: ZEVS777 - Bono de 100 €/$
https://poppers51.ru/
(poppers51.ru, 23. 1. 2026 11:38)
Купить попперсы в Санкт-Петербурге и Москве https://poppers51.ru/ по выгодной цене
быстрая доставка попперсов в день заказа высокое качество от производителя
CГіdigo promocional de MelBet: bono del 100% en apuestas deportivas
(Stevencab, 23. 1. 2026 11:27)
Como cualquier oferta de apuesta gratuita, las apuestas gratuitas de eSports de MelBet estГЎn sujetas a ciertas condiciones que debes cumplir para poder reclamarlas. Estas son algunas de las condiciones esenciales para las apuestas gratuitas de eSports de MelBet.
Source:
- https://matters.town/a/pn398ja99hff
CГіdigo promocional de MelBet: bono del 100% en apuestas deportivas
https://poppers51.ru/
(poppers51.ru, 23. 1. 2026 5:47)
Купить попперсы в Санкт-Петербурге и Москве https://poppers51.ru/ по выгодной цене
быстрая доставка попперсов в день заказа высокое качество от производителя
Промокод и Бонусы 2026
(Josephaxolo, 23. 1. 2026 3:17)Explore the latest here > https://sky-a.ru/logs/cli/?1xbet_promokod_bonus__4.html
https://generik78.ru/
(generik78.ru, 23. 1. 2026 1:44)
Дженерики купить в Санкт-Петербурге высокое качество
по доступным ценам.Ознакомиться с ассортиментом и сделать
заказ вы сможете перейдя по следующим ссылкам:
https://generik78.ru/sialis/kupit-vidalistu-40mg-v-sankt-peterburge
https://generik78.ru/viagra/kupit-kamagru-v-sankt-peterburge
https://generik78.ru/levitra/kupit-vardenafil-60mg-v-sankt-peterburge
https://generik78.ru/levitra
https://generik78.ru/sialis/kupit-vidalistu-10mg-v-sankt-peterburge
https://generik78.ru/
(generik78.ru, 22. 1. 2026 23:22)
Дженерики купить в Санкт-Петербурге высокое качество
по доступным ценам.Ознакомиться с ассортиментом и сделать
заказ вы сможете перейдя по следующим ссылкам:
https://generik78.ru/viagra/kupit-djenerik-viagra-150mg-v-sankt-peterburge
https://generik78.ru/dapoksetin/kupit-dapoksetin-90mg-v-sankt-peterburge
https://generik78.ru/viagra/kupit-cenforce-200-v-sankt-peterburge
https://generik78.ru/levitra/kupit-vilitru-10mg-v-sankt-peterburge
https://generik78.ru/sialis/kupit-tadalafil-10mg-v-sankt-peterburge
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 | 61 | 62
Мега Darknet — настоящий onion сайт, доступ через Onion
(Megassow, 26. 1. 2026 19:55)