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ářů
Late-model loli por*n
afpo.eu/999
go.euserv.org/1ao
orb11ta.help
(EdwardThulk, 6. 11. 2025 18:11)https://orb11ta.help/ now go on!!! orb11ta.help orb11ta
Досуг Балашиша
(DamonRek, 5. 11. 2025 0:23)
Вызвать шлюху в Балашихе: Эксклюзивные модели по вашему выбору
Информацию можно узнать здесь: https://shluhi-balashiha.ru/
Плиты Шпонированные
(Gabrielnor, 4. 11. 2025 12:30)
Кромка из шпона от 50 руб./рулон https://evroshpon.ru/magazin/product/532604851
Kredyt we frankach
(Wybielanieped, 2. 11. 2025 23:12)
Hey, just wanted to say a whacking big thanks as a replacement for your wondrous plea!
I really valuable the chance and essay you stow into review such a sparkling and particularized response. You explained the aggregate in a path that in actuality makes brains, and I ended up culture way more than I expected. It’s not again you give up across such a productive and well-thought-out answer, so I reasonable wanted to take in you be acquainted with it didn’t go unnoticed.
The examples and tips you shared were super helpful, and I’m undeviating this wishes succour a lot of other people who come across this drift too. It’s great to behold people like you fascinating the all at once to allocate your consciousness and facilitate others out.
Also, amuse by my instal: https://higieniajamyustnej.pl/ Thanks again for the treatment of being so benevolent with your beat and adroitness — in effect regard highly it!
Системы Видеонаблюдение
(LloydAmoft, 1. 11. 2025 12:54)
Специалисты нашей организации готовы выполнить сервис и ремонт в Москве по всей России https://ftnet.ru/izhevsk
Это обеспечивает техническую поддержку и обслуживание оборудования по единому стандарту, вне зависимости от местоположения вашего автопарка https://ftnet.ru/nerchinsk
Датчик работы ДВС https://ftnet.ru/gaz-na-auto-renault-logan/
Новая модель ГЛОНАСС-трекера под постановление №2216 и №1378, c широким функционалом https://ftnet.ru/ekaterinburg
Нецелевое использование транспорта https://ftnet.ru/zherdevka
Для пользования программой мониторинга транспорта, и выявления махинаций https://ftnet.ru/1c/
Бесплатный тест-драйв https://ftnet.ru/chaykovskiy
VIP Automated Trading Software
(aitredo, 29. 10. 2025 17:32)
Moment to start earning with maximum quality automated trading software based on neural networks, with huge win-rate
https://aitredo.com
TG: @aitredo
WhatsApp: +972557245593
Email: sales@aitredo.com
Актуальный Промокод 1xBet 2026 — Получите до 32 500 руб
(Eltoncrype, 29. 10. 2025 16:26)
В обзоре сервисов для игроков мы подробно разбираем типы бонусов, включая фрибеты и депозитные поощрения; в соответствующем абзаце приведена ссылка на https://www.apelsin.su/wp-includes/articles/promokod_240.html, который может помочь новым пользователям при регистрации. Также, даём советы по безопасности и ответственному подходу к ставкам.
1xbet — Comment Obtenir Un Code Promo Lors De L’inscription 2026
(Barrybom, 29. 10. 2025 14:27)
Code promo pour 1xBet : utilisez-le une fois lors de l'inscription et obtenez un bonus de 100% pour l'inscription jusqu'a 130€. Renforcez votre solde facilement en placant des paris avec un multiplicateur de cinq fois. Le code bonus est valide tout au long de l'annee 2026. Pour activer ce code, rechargez votre compte a partir de 1€. Decouvrez cette offre exclusive sur ce lien — https://www.atrium-patrimoine.com/wp-content/artcls/?code_promo_196.html.
Загородный дом под ключ в Ленобласти — расчёт стоимости бесплатно
(Denisnub, 27. 10. 2025 9:48)Строительство домов – это долгосрочная инвестиция в комфорт и качество жизни. Мы предлагаем возведение коттеджей и загородных домов в Санкт-Петербурге и Ленобласти по доступным ценам. Каждый проект включает расчет стоимости строительства, детализированный прайс-лист и учет всех материалов. Используем кирпич, пеноблок, газобетонные блоки, выполняем штукатурку, кладку стен https://builder-spb.ru и перегородок. Смета формируется прозрачно: цена за штуку блока или рубль за квадратный метр. Подрядчики работают на высоком профессиональном уровне, обеспечивая надежность каждой конструкции.
Забери 175 фриспинов и до 1250Dol
(WilliammuG, 27. 10. 2025 5:01)
Регистрируйся сейчас и получай приветственный пакет — до 55 фриспинов и до 1150Dol бонуса!
Лучшие игры, быстрые выплаты и честный сервис на
https://timenewsworld.link/bi4khhl
Unlock 250 Free Spins & a Cash Bonus up to 1950€
(Gregoryknise, 27. 10. 2025 0:50)
Register now and receive a welcome package:
up to 100 free spins and as much as 800EURO bonus funds!
Huge range of games, instant winnings, and a trusted casino experience await at
https://allfreeslots.shop/b819e2q
Бронирование Номеров
(GeraldExini, 26. 10. 2025 5:10)
Дивноморское (117 отелей)
Объект проверен https://rich-house.su/contacts/
Войти и сэкономить https://rich-house.su/booking/
Бесплатная отмена https://rich-house.su/photos/
1 балл = 1 рубль https://rich-house.su/rooms/
Оплата на сайте https://rich-house.su/restaurants/
Лампы Belt Light
(Bruceguews, 26. 10. 2025 4:42)
Светильники для улицы можно прикрепить к стенам дома https://xn----8sbbqwjb8ce.xn--p1ai/
В монтаже сложностей никаких нет, для крепления можно использовать дюбеля или анкеры https://xn----8sbbqwjb8ce.xn--p1ai/
Но, выбирайте светильники для улицы, которые имеют соответствующие отверстия для крепления https://xn----8sbbqwjb8ce.xn--p1ai/
Это очень важный параметр, определяющий доступные варианты освещения в конкретных условиях https://xn----8sbbqwjb8ce.xn--p1ai/
Для одних можно использовать проводку из дома, а другим потребуется проложить отдельный кабель или установить автономную систему на солнечных батареях https://xn----8sbbqwjb8ce.xn--p1ai/
Выделяют 4 группы https://xn----8sbbqwjb8ce.xn--p1ai/
Для освещения жилых помещений мы рекомендуем использовать светодиодные лампы или светильники с мягким теплым или нейтральным свечением https://xn----8sbbqwjb8ce.xn--p1ai/
Научно доказано, что именно такое свечение наиболее благоприятно влияет на нервную систему и успокаивает ее https://xn----8sbbqwjb8ce.xn--p1ai/
Уличный светильник из коллекции по достоинству оценят любители классики https://xn----8sbbqwjb8ce.xn--p1ai/
Основание из алюминия цвета старинной позолоты напоминает об античных временах https://xn----8sbbqwjb8ce.xn--p1ai/
Под стать ему – форма стеклянного плафона, традиционная для интерьеров дворцовых замков https://xn----8sbbqwjb8ce.xn--p1ai/
Такой светильник идеально дополнит изысканный экстерьер загородного дома, дизайн которого ориентирован на благородную классику https://xn----8sbbqwjb8ce.xn--p1ai/
Рекомендуемая площадь освещения порядка 5 кв https://xn----8sbbqwjb8ce.xn--p1ai/
м https://xn----8sbbqwjb8ce.xn--p1ai/
Если вы ищете низкую цену на Уличный светильник Фабур 804010401, то интерне https://xn----8sbbqwjb8ce.xn--p1ai/
https://xn----8sbbqwjb8ce.xn--p1ai/
Для большей надёжности материал можно обработать специальной смесью или не размещать близко к поверхности источник пламени https://xn----8sbbqwjb8ce.xn--p1ai/
Это кратковременный светильник, за которым надо следить https://xn----8sbbqwjb8ce.xn--p1ai/
Идеальным будет сочетание пластика и гирлянд, они не нагреваются и не могут повредить поверхность материала https://xn----8sbbqwjb8ce.xn--p1ai/
Устойчивость к атмосферным воздействиям: влагозащищенный осветительный прибор для улицы не выйдет из строя из-за дождя, а прочный корпус предотвратит его повреждение от сильного ветра https://xn----8sbbqwjb8ce.xn--p1ai/
Перевозка Груза
(Robertfeece, 24. 10. 2025 12:18)
Не является публичной офертой https://drogal.ru/glossary/logisticheskaya-deyatelnost/
Получить коммерческое предложение https://drogal.ru/glossary/delimii-gruz/
Выбор авто для перевозки грузов https://drogal.ru/portfolio_tags/takelazhnye-raboty-foto/
Более 238 000 тонн перевезенных грузов https://drogal.ru/portfolio-items/izgotovlenie-yashchikov-iz-osb/
Демонтажные работы https://drogal.ru/glossary/marshrutnaya-otpravka/
В январе 2016 года нам понадобились услуги такелажа высокой сложности https://drogal.ru/transportnaya-tara-i-upakovka/
Необходимо было перевезти 10 цистерн для хранения этилового спирта объемом в 500 литров https://drogal.ru/glossary/skladskoi-tovarooborot/
Сложность задачи состояла в необходимости согласования провоза негабарита через Садовое кольцо https://drogal.ru/glossary/massa-gruza/
Специалисты компании Такелажники https://drogal.ru/voprosi-otveti/s-kakimi-gruzami-vi-rabotaete/
ру выполнили всю работу точно в срок, взяв на себя все хлопоты, связанные с получением разрешительных документов https://drogal.ru/uslugi/upakovka/upakovka-kartin-dlya-perevozki/
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
Mod loli
(Randykib, 8. 11. 2025 17:38)