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ářů
I tested this Astronaut flight casino game recently and it totally caught me, link https://crushtop.org . The concept feels simple: the astronaut goes higher while the multiplier increases, and I need to withdraw prior to the crash. Larger volatility equals higher reward, and timing becomes key.
Initially I played small, mostly in order to understand the flow, but after some rounds I quickly felt a moment. The adrenaline feels intense every moment, especially as the multiplier starts climbing. The design looks minimalistic, nothing useful confuses, and everything runs perfectly.
I tried from mobile and the game performed great. Payments felt fast, which feels important to me. I didn’t notice anything shady during play. Overall, the Astronaut crash experience feels engaging. When someone like quick multiplier games, it is definitely worth checking out.
Only remember: bet smart.
Промокод и Бонусы 2026
(Clintonerymn, 31. 12. 2025 18:10)Посмотри официальный ресурс компании : https://consolit.ru/
Продвижение Сайтов Самому
(Buddybiobe, 29. 12. 2025 18:48)
5-ое место в рейтинге SEO-компаний https://proffseo.ru/prodvizhenie-sajtov-po-rf
Удобная витрина для ваших товаров или услуг https://proffseo.ru/
Результаты:
Как определяется регион пользователя?
Компания «Пиксель Плюс» рекомендует вам обращаться по вопросам регионального продвижения к знатокам своего дела https://proffseo.ru/prodvizhenie-angloyazychnykh-sajtov
От выбора грамотной стратегии и присвоения правильных регионов полностью зависит итоговый результат https://proffseo.ru/prodvizhenie-sajtov-po-rf
Каждый случай — частный и, проанализировав ваш сайт и сферу деятельности, мы сможем предложить оптимальную стратегию его «раскрутки» по одному или нескольким регионам https://proffseo.ru/privacy
Стоит понимать, что работа по SEO в нескольких регионах будет более трудоемкой, а значит, потребуются дополнительные расходы https://proffseo.ru/prodvizhenie-sajtov-po-rf
Скидка 100% на первый месяц продвижения сайта!
Is This A Cry For Help Excerpt Pdf
(isthisacryforhelppesorm, 26. 12. 2025 14:25)The Is This a Cry for Help PDF is available for download. This file is quick. Secure your download today and enjoy. https://isthisacryforhelppdf.site/ Is This A Cry For Help Filetype:pdf
With The Fire On High Novel Free
(withthefireonhighpesorm, 26. 12. 2025 3:06)For a reading experience that is full of flavor and feeling, choose this book. The PDF format ensures you can read Emoni's story anywhere. With the Fire on High is a testament to the idea that talent is distributed equally, even if opportunity is not. https://withthefireonhighpdf.site/ Where Does With The Fire On High Take Place
Clap When You Land Electronic Book
(clapwhenyoulandpdfesorm, 26. 12. 2025 2:46)The narrative explores the questions of who we are and where we come from. The characters are deep and the story is moving. You can easily find a digital PDF version of this book to read. https://clapwhenyoulandpdf.site/ Clap When You Land By Elizabeth Acevedo
loveshop.world
(Williamlab, 25. 12. 2025 17:20)Hello. https://loveshop.world/ loveshop is back
New Book Releases 2025 Pdf
(bornoftroublepdfesorm, 25. 12. 2025 17:16)Born of Trouble is a hauntingly beautiful exploration of loss and love. This poetic and powerful story is now available as a pdf. Let the words wash over you and the emotions take hold as you navigate this incredible work of fiction. Secure your copy. https://bornoftroublepdf.site/ Born Of Trouble Pdf
Mega Darknet — настоящий onion сайт, ссылка без капчи
(Megassow, 22. 12. 2025 20:41)мега даркнет рутор https://transportestransfeli.com/
An Archive Of Romance Complete Pdf
(anarchiveofromanceesorm, 22. 12. 2025 16:12)The thrill of a plot twist is even better when you don't see it coming. An archive of romance offers thousands of stories filled with surprises. I avoid spoilers and just dive straight into the PDF, letting the narrative unfold and sweep me off my feet. https://anarchiveofromancepdf.top/ An Archive Of Romance Novel Download
Archive Of Romance Download
(anarchiveofromanceesorm, 22. 12. 2025 6:57)I love the instant access to new releases. An archive of romance updates fast. I check for the newest PDF uploads every Friday, treating myself to the latest stories for my weekend reading sessions. https://anarchiveofromancepdf.top/ An Archive Of Romance Dark Academia Pdf
You Can Scream Full Book Pdf
(youcanscreampdfesorm, 21. 12. 2025 19:32)If you need a PDF that makes you scream, you can download it here. It is a quality file. The text is clear and sharp. reliable and professional. https://youcanscreampdf.top/ How To Get You Can Scream Pdf Free
Anatomy Of An Alibi Ashley Elston Summary
(anatomyofanalibipdesorm, 21. 12. 2025 18:15)The Anatomy of an Alibi PDF available. Download novel. version perfect. https://anatomyofanalibipdf.top/ Anatomy Of An Alibi Release Date
Alcott Hall Leaked Pdf
(alcotthallpdfesorm, 21. 12. 2025 13:29)Discover the secrets of the past with the Alcott Hall PDF. This document is a thorough guide to the estate's history. Secure your digital copy now and enjoy the ability to research and read about this fascinating location from anywhere. https://alcotthallpdf.top/ Alcott Hall Epub
You Can Scream Pdf File
(youcanscreampdfesorm, 21. 12. 2025 7:22)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/
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
Test crazy Astronaut Multiplier Mission and Win and Epic Rewards with Astronaut Multiplier Journey and Win
(Carlevess, 1. 1. 2026 0:48)