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ářů
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/
receive sms online
(Jameszet, 21. 10. 2025 4:36)
Burner numbers online — temporary mobile numbers for signup and verification with instant SMS delivery. Stay private, stay safe. https://smb.state-journal.com/article/SMSFAST-Launches-Innovative-Temporary-Phone-Number-Service-Introduces-Industry-First-Deliverability-Scores?storyId=68b7f067c6d8ce0002ef9797
Free temp SMS service for casual signups and trials — get disposable numbers, receive SMS, and never share your real number again. https://markets.businessinsider.com/news/stocks/smsfast-launches-innovative-temporary-phone-number-service-introduces-industry-first-deliverability-scores-1035109239
Quick, anonymous, reliable: temporary phone number for verification — perfect for testing, signups, and protecting your privacy. https://business.poteaudailynews.com/poteaudailynews/news/article/marketersmedia-2025-9-3-smsfast-launches-innovative-temporary-phone-number-service-introduces-industry-first-deliverability-scores
Skip the spam — use temporary mobile numbers for signup and keep your inbox clean. Instant SMS, global coverage. https://www.theglobeandmail.com/investing/markets/markets-news/GetNews/34554708/smsfast-launches-innovative-temporary-phone-number-service-introduces-industryfirst-deliverability-scores
Need a verification code fast? Use our online SMS verification service and disposable phone numbers to verify accounts in seconds. https://smb.dailyleader.com/article/SMSFAST-Launches-Innovative-Temporary-Phone-Number-Service-Introduces-Industry-First-Deliverability-Scores?storyId=68b7f067c6d8ce0002ef9797
sms online
(Jameszet, 19. 10. 2025 11:09)
Don't give out your real number — get a temporary phone or disposable phone number and receive SMS online safely. https://www.myminifactory.com/users/tryinchcom
One-click temporary number for verifications: receive SMS online, stay private, stay fast. Perfect for testing & sign-ups. https://www.myminifactory.com/users/tryinchcom
Online phone numbers for every need — temp number, virtual phone number, receive SMS — ready when you are. https://wakelet.com/@tryinchcom
Protect your privacy with a disposable phone number — receive SMS online for logins, apps, and temporary accounts. https://wallhaven.cc/user/tryinchcom
Fast, anonymous online phone number service — get a temporary phone number, receive SMS instantly, no personal info required. https://wakelet.com/@tryinchcom
вытяжка цилиндрическая для кухни
(полновстраиваемая вытяжка для кухни , 19. 10. 2025 5:02)
Продвинутая кухня — это не просто зона для приготовления еды, а умное пространство, где всё работает точно, удобно и красиво. Именно такой подход лежит в основе магазина «Кухонные системы». На сайте https://euroshop18.ru/ собрана премиальная техника, которая делает кухню продуманной до мелочей: вытяжки, газовые и электрические панели, духовые шкафы, мойки из нержавейки и камня, смесители и аксессуары от проверенных брендов. Здесь можно собрать технику под любой стиль кухни — от современной классики до уютного скандинавского стиля.
Интернет-магазин «Кухонные системы» — это не просто виртуальный шоурум. Это опытные консультанты. Они помогают подобрать технику с учётом всех нюансов вашего проекта. Все товары — официальные, с поддержкой и доставкой по всей России. Работают и шоурумы: можно получить консультацию на месте. Для покупателей действует оплата частями, система бонусов и готовые решения для кухонных комплектов.
На https://euroshop18.ru/ вы легко найдёте всё необходимое, чтобы кухня стала удобной и стильной зоной. Здесь ценят не просто дизайн, а эргономику, надёжность и удобство. Если вы хотите создать кухню, где каждая деталь продумана, — начните с правильного выбора техники. Мы поможем создать кухню мечты где готовить — удовольствие, а жить — комфортно.
Champion
(Bernardpaf, 19. 10. 2025 4:32)Play your favorite slots at Champion Casino , hit the jackpot, and win big https://madou104.ru/rus-rus/
Модульные Диваны Ресторан
(Tyroneusale, 18. 10. 2025 18:22)
Москва Новосибирск Санкт-Петербург Пермь Краснодар Петрозаводск Архангельск Пятигорск Благовещенск Ростов-на-Дону Великий Новгород Рязань Владикавказ Саранск Вологда Севастополь Воронеж Сочи Грозный Ставрополь Москва Новосибирск Санкт-Петербург Пермь Краснодар Петрозаводск Архангельск Пятигорск Благовещенск Ростов-на-Дону Великий Новгород Рязань Владикавказ Саранск Вологда Севастополь Воронеж Сочи Грозный Ставрополь https://divanlogia.ru/catalog/myagkaya-mebel-dlya-restoranov/kresla/kreslo-ronni/
Наличие подлокотников https://divanlogia.ru/sales/?page=3
Чтобы заказать товар в магазине, свяжитесь с нашим менеджером по телефону +7 (395) 256-24-65 https://divanlogia.ru/catalog/myagkaya-mebel-dlya-restoranov/polukresla/polukreslo-bruno/
Размер: 700х500х440 https://divanlogia.ru/catalog/myagkaya-mebel-dlya-restoranov/pryamyie-divanyi/chester/
Популярные стили мягкой мебели для кафе, ресторанов и баров https://divanlogia.ru/catalog/myagkaya-mebel-dlya-restoranov/pryamyie-divanyi/malta-1,-rogozhka-03/
Товар успешно добавлен в корзину!
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
1xbet — Comment Obtenir Un Code Promo Lors De L’inscription 2026
(Barrybom, 29. 10. 2025 14:27)