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ářů
erectile therapy pump https://www.pharmaceptica.com/
Free IMVU Credits No Verification
(belleDriex, 23. 6. 2021 1:35)
https://tapas.io/jernejwigelomerk
===========
wow. i found it finally. thanks!
How To Get Free Credits On IMVU Without Surveys 2022
Free IMVU Credits Iphone 2022
IMVU Free Spin Credits
peableletapique rxpbn
(pharmaceptica, 21. 6. 2021 6:14)cialis tadalafil https://pharmaceptica.com/
Quality products and drugs only here https://bit.ly/3oZOKnO
(Fum, 20. 6. 2021 5:46)
Follow the link and choose the products for your health
https://bit.ly/3wlPWWx
XEvil 5.0: nejlepší řešení proti captcha
(LolityWap2368, 15. 6. 2021 21:09)
XEvil-nejlepší nástroj captcha solver s neomezeným počtem řešení, bez omezení počtu závitů a nejvyšší přesnosti!
XEvil 5.0 podporuje více než 12.000 typů obrázků-captcha, včetně ReCaptcha, Google captcha, Yandex captcha, Microsoft captcha, Steam captcha, SolveMedia, ReCaptcha-2 a (ano!!!) Rekaptcha-3.
1.) Pružně: můžete nastavit logiku pro nestandardní captcha
2.) Snadný: stačí spustit XEvil, stiskněte 1 Tlačítko - a to bude automaticky přijímat captcha z vaší aplikace nebo skriptu
3.) Rychlý: 0,01 sekundy pro jednoduché captcha, asi 20..40 sekund pro ReCaptcha-2 a asi 5...8 sekund pro ReCaptcha-3
Můžete použít XEvil s jakýmkoli softwarem SEO/SMM, analyzátorem kontroly hesel, jakoukoli analytickou aplikací nebo jakýmkoli vlastním skriptem:
XEvil podporuje většinu známých Anti-captcha služeb API: 2Captcha.com, RuCaptcha, AntiGate (Anti-Captcha.com), DeathByCaptcha, etc.
Máte zájem? Stačí hledat v Google "XEvil" pro více informací
Čtete to - pak to funguje! ;))
XEvil.Net
Pozdrav, LoliteWap6420
TilsPlosyIcojemiwele
(Harrywindy, 7. 6. 2021 4:23)
https://telegra.ph/Sexy-Black-Nylon-Slips-03-22
https://telegra.ph/Das-Mädchen-Ausziehen-11-02
https://telegra.ph/Teaching-Young-Girl-How-To-Fuck-04-01
https://telegra.ph/Online-Dating-EinfГјhrung-E-Mail-11-06
https://telegra.ph/Alte-Männer-Die-Sex-Mit-Jungen-11-03
https://telegra.ph/Bbw-Moms-Bilder-Nackt-03-27
https://telegra.ph/Hot-Snapchat-Nudes-Girls-03-25
https://telegra.ph/Alexa-Tomas-Und-Apolonia-Latina-Ficken-Fest-03-28
https://telegra.ph/Muschi-Besamung-11-01
https://telegra.ph/Haveing-Sex-With-A-School-Gerl-03-24
https://telegra.ph/HeiГџ-Und-Geil-Milf-Veronica-Avluv-Wird-GroГџe-03-28
https://telegra.ph/Nude-Figure-Model-Male---Sex-Photo-04-02
https://telegra.ph/Sexy-Actres-Naked-Malaysia-03-26
https://telegra.ph/Manuel-Ferrara---Alexis-Texas-And-Her-Unrivaled-03-31
https://telegra.ph/After-Awesome-Facesitting-Big-Breasted-Sexpot-03-30
https://telegra.ph/Pregnant-Irani-Download-Video-04-01
https://telegra.ph/Elli-Fox-Fox-Porno-03-26
https://telegra.ph/
https://telegra.ph/Chanel-White-HD-Porn-03-29
https://telegra.ph/Italian-Sex-Toy-Tree-04-01
https://telegra.ph/Wie-Sie-Wissen-Wenn-Sie-Sind-Dativ-Ein-Guter-03-27
https://telegra.ph/HD-Beauty-XXX-GIFS-03-31
https://telegra.ph/Malay-Hijab-Nude-Pics-03-25
https://telegra.ph/Flash-Ass-Naked-Tits-Porn-Archive-03-26
https://telegra.ph/Lesben-Alt-03-27
https://telegra.ph/Hund-Frau-Porno-11-01
https://telegra.ph/Manisha-Lamba-Naked-Pic-03-25
https://telegra.ph/Sports-Voyeur-Photos-Pics-And-Galleries-03-28
https://telegra.ph/Bitch-Nr-1-11-01
https://telegra.ph/Bangaly-Reifen-Fuking-Pics-11-03
https://telegra.ph/Lesbian-Studs-Dating-Site-03-24
https://telegra.ph/Dick-In-The-Ass-Pics-03-25
https://telegra.ph/Snow-White-Gang-Bang-Porn-04-04
https://telegra.ph/Boy-Girl-Sex-Image-11-09
https://telegra.ph/Natural-Blonde-Beauty-Lilly-Banks-Rubs-Her-Wet-04-01
https://telegra.ph/Teen-Lesben-Ficken-10-31
https://telegra.ph/Is-Garrett-Backstrom-Dating-Bella-Thorne-2012-10-30-2
https://telegra.ph/Hot-Russian-Teenager-Albina-Anal-Sex-Video-03-28
https://telegra.ph/Busty-Indischen-GF-Dusche-Nimmt-Und-Quält-03-29
https://telegra.ph/
https://telegra.ph/Xxl-Fetish-Wear-03-25
https://telegra.ph/Shower-Porn-Video-Featuring-Perky-Young-Babe-03-28
https://telegra.ph/Fake-Taxi-Video-11-01
https://telegra.ph/Erotic-Naked-Women-Online-Excelent-Porn-03-26
https://telegra.ph/Video-Spycam-Nackt-Girl-Asian-11-03
https://telegra.ph/Do-You-Like-Casual-Dating-04-04
https://telegra.ph/Sexy-Naked-Black-Girl-Anal-04-01
https://telegra.ph/Pornhub-Valentinstag-11-01
https://telegra.ph/Sexy-Nackte-Amateur-Frauen-Mit-Einer-Guten-11-04
https://telegra.ph/Maria-Conchita-Alonzo-Alle-Nackt-Bilder-03-27
Quality products and drugs only here https://bit.ly/3oZOKnO
(Fum, 18. 5. 2021 21:23)
Follow the link and choose the products for your health
https://bit.ly/3rLBBis
Adult Sex Chat - The World's Best Free Live Chats-Online
(CHYgek, 17. 5. 2021 19:00)
Adult Sex Chat - The World's Best Free Live Chats-Online
https://runetkii.com/
Trends
(Trends, 11. 5. 2021 18:35)
I'll right away grab your rss as I can not in finding your email subscription link or e-newsletter service. Do you have any? Please let me understand so that I may subscribe. Thanks. Trends rare.prizsewoman.com/trends/
Hot News american News 2021
(Michcheld, 4. 5. 2021 2:50)what is cialis made of buy cialis online legit
hello
(Albertsaste, 1. 5. 2021 2:07)
The one we are most regarding is the hot, spicy cassia cinnamon we get from our local grocery store. Its heat emanates from coumarin, this particular substance has effects it is advisable to understand if you're going also included with it as the daily supplement and not just for a flavoring.
There was hardly anybody who would not like seem beautiful. About the period time beauty slowly fades away owing to age and what's left are indication of aging. To combat these signs, people use numerous methods like anti-aging creams, Botox, amongst others. They aim to keep their beauty (which they believe is physical) intact for as long probably. This is the place where they fool themselves into believing they are a product of natural beauty. They earn to get dazzling and remain the centre of attraction.
I'm not talking about those citizens. There is a problem in our country, and throughout planet for that matter, features created more health issues for those with less. That isn't something I will deny and also argue. Things i will argue is that being health does not need to be more expensive money.
Appreciating and enjoying these healthy connections is unequalled. As life comes close with regard to an end it is the experience of these wholesome socially rich environment that discover a method to matter alot more than personal possessions.
Random House dictionary, defines "beauty" as the characteristic within a person, place, object or concept provides a perceptual example of pleasure, meaning or satisfaction to head or to your eyes, arising from sensory manifestations such as being a shape, color, personality, sound, design or rhythm.
Whilst enough time assume that poor as well as wellness disease undoubtedly matter of bad luck, that typically not situation. Of course number of obvious some the different parts of bad luck involved in ill health, like genetics, but even then taking care of your health can go some way towards overcoming your bad luck.
The beauty pageant in the late nineties created a sensation inside the world when around seven Indian girls became beauty queen while participating numerous beauty pageants. The pageant sash itself became a part model for many girls every where. The Indian girls started loving associated with them. Today there is beauty pageant being organized in every nook and corner of India, had been considered backward by western countries till 1990. Even you notice the beauty pageant being organized in the very center and small cities. The ladies of these cities do not hesitate location on the pageant sash. So the sash is really part every and every society and females love to flaunt it while enrolled in different beauty events from their college energy.
MMM 3.0 "Quantum Bitcoins" Profit 12% in 3 days
(LarryFliepsilm, 16. 4. 2021 4:44)
Quantum Fund Launches Quantum Bitcoins Program.
Go through a simple registration and you will immediately receive the status of a fund participant.
Every 3 days, the Quantum Bitcoin Fund automatically adds 12% to your Bitcoin balance in your personal Bitcoin wallet.
For example: invest 0.01 BTC today and after 72 hours you will receive 0.0112 BTC to your personal bitcoin wallet.
The program is available immediately after registration on the official website.
Official Website: https://quantumbitcoins.cc/?ref=15pVFvACjXqV2DmH8FtovsB5xarbCuJU7a
The project does not require, store or distribute your personal data.
To register in the project, you only need a bitcoin wallet.
An innovative daily referral program is available.
Invite friends and acquaintances. Get a stable income in the guaranteed profit program.
Registration here: https://quantumbitcoins.cc/?ref=15pVFvACjXqV2DmH8FtovsB5xarbCuJU7a
MMM 3.0 "Quantum Bitcoins" Profit 12% in 3 days
(LarryFliepsilm, 15. 4. 2021 4:39)
Quantum Fund Launches Quantum Bitcoins Program.
Go through a simple registration and you will immediately receive the status of a fund participant.
Every 3 days, the Quantum Bitcoin Fund automatically adds 12% to your Bitcoin balance in your personal Bitcoin wallet.
For example: invest 0.01 BTC today and after 72 hours you will receive 0.0112 BTC to your personal bitcoin wallet.
The program is available immediately after registration on the official website.
Official Website: https://quantumbitcoins.cc/?ref=15pVFvACjXqV2DmH8FtovsB5xarbCuJU7a
The project does not require, store or distribute your personal data.
To register in the project, you only need a bitcoin wallet.
An innovative daily referral program is available.
Invite friends and acquaintances. Get a stable income in the guaranteed profit program.
Registration here: https://quantumbitcoins.cc/?ref=15pVFvACjXqV2DmH8FtovsB5xarbCuJU7a
TilsPlosyIcojemiwele
(Jamiesycle, 8. 4. 2021 21:26)
https://telegra.ph/Indian-Halb-Nackten-Mädchen-11-02
https://telegra.ph/Girls-Lick-Pussies-Throught-G-Strings-03-27
https://telegra.ph/Black-Chicks-Nude-Pussy-03-24
https://telegra.ph/Thick-Brown-Girls-Naked-Fucked-From-Behind-03-24
https://telegra.ph/Miley-Cyrus-Naked-Fetish-03-24
https://telegra.ph/Nude-Women-In-Louisiana-04-02
https://telegra.ph/Junge-Sexy-Schwangere-Pornos-11-02
https://telegra.ph/Lesbians-With-Huge-Tits-Pleasure-Each-Other-03-30
https://telegra.ph/Tiny-Flat-Teen-Girl-Sex-Gif-03-24
https://telegra.ph/Sex-Porn-Irlandia-Online-04-02
https://telegra.ph/Das-Latina-Luder-Bekommt-Im-Doggybums-Die-03-24
https://telegra.ph/Girls-Rubbing-Their-Pussy-Together-03-24
https://telegra.ph/Dylan-Sprouse-Full-Penis-03-24
https://telegra.ph/Stepbro-Cups-Her-Tits-To-Prove-A-Point-03-28
https://telegra.ph/Free-Teen-Porn-Im-Jacuzzi-11-02
https://telegra.ph/Ebony-Teen-Sarah-Banks-Got-Banged-To-Give-03-31
https://telegra.ph/Mothers-Having-Hardcore-Sex-With-Her-Son-03-25
https://telegra.ph/Beschäftigt-Busty-Hottie-In-Der-Brille-Chanel-Lux-03-28
https://telegra.ph/Lizzy-London-HD-Porn-03-30
https://telegra.ph/Brunette-Schoolgirl-Gets-Jizzed-After-Hardcore-03-31
https://telegra.ph/Cougar-Mom-Amber-Lynn-Bach-Seduces-Sons-Best-03-27
https://telegra.ph/Ficken-Rasierte-Muschi-Von-Hinten-11-03
https://telegra.ph/Fcc-Amateur-Lizenzierung---Beste-Porno-11-03
https://telegra.ph/Naked-Asian-Feet-04-03
https://telegra.ph/Light-Haired-Slutty-Chick-Gets-Poked-Mish-And-03-31
https://telegra.ph/Nackt-Mädchen-Rhode-Island-11-02
https://telegra.ph/Dickbusige-Schlampe-Im-Politessen-Kostm-Kriegt-03-25
https://telegra.ph/Male-Teen-Black-Naked-04-01
https://telegra.ph/Teen-Titan-Girls-Sexy-Nackt-11-03
https://telegra.ph/Sex-Mom-And-Son-Fucking-Movies-03-23
https://telegra.ph/Porno-Sex-Ethiopian-Girl-Fuck-Wiht-Guy-04-04
https://telegra.ph/Japanese-Girl-Naked-Fuck-10-30
https://telegra.ph/Fette-Nackte-Mädchen-Mit-Haarigen-Fotzen-11-03
https://telegra.ph/Hd-Imaages-Of-World-Best-Nude-Horny-Babes-11-11
https://telegra.ph/Garters-And-High-Heels-Mature-03-24
https://telegra.ph/Emmanuelle-Chriqui-Nude-Ass-Hole-03-26
https://telegra.ph/Lesbian-Cutie-Veronika-Makes-Love-With-Her-03-30
https://telegra.ph/Jewish-Girl-Nude-Ass-04-04
https://telegra.ph/Lisa-Simpson-Virgin-Pussy-04-02
https://telegra.ph/Celine-Dion-Porn-Images-03-24
https://telegra.ph/Nackt-Missbraucht-Young-Teen-Girl-11-03
https://telegra.ph/Maria-Ozawa-Shaved-Pussy-03-27
https://telegra.ph/StraГџe-Ficken-Spycam-11-01
https://telegra.ph/Entjungfern-Video-10-31
https://telegra.ph/Pics-Of-Russian-Teens-Fucking-11-10
https://telegra.ph/Kendra-Wilkinson-Hot-Naked-Pics-04-02
https://telegra.ph/Wot-Matchmaking-Table-96-03-26
https://telegra.ph/Junge-Mädchen-Party-Sex-11-02
https://telegra.ph/Lucy-Cat-Fe-11-01
https://telegra.ph/Chubby-Amateur-Girlfriend-Gets-Pussy-Fingered-03-31
eunicesildenafilcitrate.com
(buy sildenafil generic online, 7. 4. 2021 19:49)cheapest sildenafil australia https://eunicesildenafilcitrate.com/ buy generic 100mg viagra
vegavardenafil
(vardenafil 20mg dosage, 7. 4. 2021 13:13)vardenafil- vardenafil tablet, film coated https://vegavardenafil.com/ levitra vardenafil 40 mg
elitadalafill
(tadalafil 40 mg daily, 5. 4. 2021 23:47)what is tadalafil https://elitadalafill.com/ tadalafil pills
TilsPlosyIcojemiwele
(Jamiesycle, 5. 4. 2021 13:30)
https://telegra.ph/Daddy-Fucks-Son-Gifs-03-31
https://telegra.ph/Brynn-Tyler-HD-Porn-03-29
https://telegra.ph/Trio-Lezzies-Having-Fun-In-The-Bathroom-03-29
https://telegra.ph/Adault-Porno-Teen-Hard-Crying-Images-03-25
https://telegra.ph/Studenten-Girls-Fotos-Naked-11-07
https://telegra.ph/Shelby-Chong-Young-Nude-04-01
https://telegra.ph/Super-Curvy-Appetizing-Kyra-Hot-Is-Ready-To-03-30
https://telegra.ph/Masseur-Slams-His-Dick-In-Gina-ValentinaS-Hairy-03-27
https://telegra.ph/Calum-Best-Full-Sex-04-04
https://telegra.ph/Blonde-Naked-Suicide-Girls-03-24
https://telegra.ph/Chuby-Tee-Sex-Pict-Free-Downlod-03-26
https://telegra.ph/Anal-Sex-Video-Clip-04-01
https://telegra.ph/Girls-Finger-Naked-Girls-03-24
https://telegra.ph/Two-Young-Married-Couples-Switch-Partners-03-27
https://telegra.ph/Ae-King-Hentai-Quality-Porno-11-06
https://telegra.ph/Rated-R-Pinays-Nackt-Pics-11-02
https://telegra.ph/Blowing-Young-Teen-Porn-Videos-03-28
https://telegra.ph/Japanese-Naked-Geisha-Fuck-04-01
https://telegra.ph/Fat-Girls-Getting-Fucked-By-Machines-04-04
https://telegra.ph/Young-Teen-Porn-Video---Kisses-For-Kacy---Part-5-03-28
https://telegra.ph/Gorgeous-Blonde-Performs-Cool-College-Blowjob-03-29
https://telegra.ph/Fuck-My-Wife-For-Cash-03-22
https://telegra.ph/Alice-Gorgeous-Blonde-Girlfriend-Slow-Erotic-Sex-03-27
https://telegra.ph/Ex-Girlfriend-Latina-Naked-04-01
https://telegra.ph/The-Looking-Glass-03-28
https://telegra.ph/Taxas-Patti-11-01
https://telegra.ph/Nicole-Coco-Ass-Porn-Pictures-04-04
https://telegra.ph/Ashden-Breeze-HD-Porn-03-29
https://telegra.ph/Punjabi-Girl-Boy-Free-School-Sex-11-06
https://telegra.ph/Mädchen-Mit-Großen-Nackt-Booties---Porno-Foto-11-04
https://telegra.ph/Aubrey-Lee-HD-Porn-03-30
https://telegra.ph/Cholo-With-His-Girl-Nude-03-25
https://telegra.ph/At-Home-Milf-Ass-11-12
https://telegra.ph/Dating-Zeitung-Anzeigen-11-06
https://telegra.ph/Nude-Lady-Liking-Her-Nipple-03-26
https://telegra.ph/
https://telegra.ph/Maggie-Mayhem-Porn-03-31-2
https://telegra.ph/Domina-Geschichten-11-01
https://telegra.ph/Naughty-America-Nackte-Girls-11-02
https://telegra.ph/Horny-Nurse-In-Fake-Hospital-Wants-To-Fuck-04-01
https://telegra.ph/Nackte-Frauen-Fannys-Geleckt-Werden-11-03
https://telegra.ph/Teen-Female-Blonde-Hot-04-02
https://telegra.ph/Suck-Old-Men-Sex-03-27
https://telegra.ph/Dating-Websites-Usernames-03-24
https://telegra.ph/Hillary-Fisher-Porno-Star-03-26
https://telegra.ph/Youporncom-11-01-15
https://telegra.ph/Vanessa-Hudgens-U-Close-Pussy-03-26
https://telegra.ph/Uncle-And-Girl-Sex-Photo-11-09
https://telegra.ph/Young-Fatties-Pussy-Nackt-11-02
https://telegra.ph/Hardcore-Pamila-Anderson-Photo-03-26
tocovid
(AngelRoumn, 28. 3. 2021 4:23)asokoro general hospital https://fmohconnect.gov.ng/
List of best online forex brokers
(ForexPsync, 16. 3. 2021 1:41)En iyi forex ticaret kitapları. https://tr.forex-trading-is.com
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
peableletapique pamoe
(pharmacepticacom, 24. 6. 2021 10:03)