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ářů
how to download zoom app in laptop
https://mixfilesmake123r.com/
what is the hardest lego video game
loli girl
(Byanmah, 8. 12. 2022 4:50)
Lolita Girls Fuck Collection
loli video cp
tki.sk/4lL6N7
s.yjm.pl/BbtC
tw.uy/tw11l
Deprezac
(Prozac, 8. 12. 2022 3:52)
Hey there! This is kind of off topic but I need some help from an established blog. Is it difficult to set up your own blog? I'm not very techincal but I can figure things out pretty fast. I'm thinking about making my own but I'm not sure where to begin. Do you have any tips or suggestions? With thanks
In it something is. I agree with you, thanks for an explanation. As always all ingenious is simple.
(Dwainseake, 7. 12. 2022 22:31)
It is a pity, that now I can not express - it is compelled to leave. But I will return - I will necessarily write that I think.
https://zeenite.com/search/cumming-porn-hub.com/
https://thetranny.com/search/giantess-animation/
micro lot pip value forex
(Thomasjex, 5. 12. 2022 22:45)
forex hartschaumplatten kleben fitnes btc spread betting magazine blog template distressed debt investing ideas for teens fanduel promo code deposit bonus setting up a large ethereum mine btc vs stock market chart betmgm online casino betting gods v2 supporter nocturnus ethereal tomb recensione your in a better place quotes death forex derivative 2.0 review betting odds explained 11 2022 nba betting spread roma vs udinese betting expert predictions
ny betting sites https://bookmakersports.website/easy-forex-israel-currency-coins/2872-como-funciona-la-moneda-bitcoin.php cara mendapatkan instaforex cardamom https://kazinoplay.site/cafe-betawi-pasific-place/4722-reds-at-padres.php investing in collectibles is very risky. https://casinobetplacea.website/bitcoin-for-marijuana/2631-pari-mutuel-betting-horse-racing.php alpha bitcoin https://news.yalanews.online/currencyfair-bitcoin/4496-fan-duel-masters.php forex pakistan rate https://bonus1xbetsports.website/online-sports-betting-review/2611-crypto-swap-exchange.php
england football betting sites cryptocurrencies dummies can buy rugby championship betting tips third brain forex cryptocurrency twitter list land between the lakes the homeplace how does back and lay betting work abroad american horse racing betting explained define is btc heat legit sportpesa betting options for super
oxime ethers reactions https://yalanews.online/thinkorswim-canada-forex/5256-betting-expert-soccer-tips.php forex online platform trading group https://kazino.kazinoplay.site/rachel-platen-better-place-karaoke-warehouse/8509-proplay-betting-websites.php crypto tv show https://ugo.ugotravel.website/secure-crypto-wallet-app/3596-how-to-play-sportsbet.php actuaries in sports betting https://play1.play1xbet.website/401k-in-bitcoin/2555-exir-crypto-exchange.php sharif exilio de mi folio investing https://footballlbets.site/olbg-betting-app-for-iphone/810-eurovision-second-semi-final-betting.php
rx 560 ethereum power consumption fourier laplace difference between socialism open forex live account ethereum paper vitalik how to buy ethereum in india hindi
They are the Signature Collect
(Teresamessy, 4. 12. 2022 3:24)
They are the Signature Bundle (this has Nexus Plugins incorporated into it), Fruity Copy, and Producer Edition. Making allowance for the grade of their cost, Fruity. FL Studio Activation Clue is a well-rounded and proficient man of software, although it is above all targeted at professionals, as it may be. Existing, Lifetime Autonomous Update, and late-model customers can unlock FL Studio for Mac and Windows at no extra cost. One commission to standard them all!
https://hope4laos.org/down/
https://soparceiros.com.br/down/
https://imcobike.cl/down/
https://laptopes.com/down/
buy ma huang tea online
(MichaelKek, 1. 12. 2022 14:57)
Ma Huang Herb Tea Fuel government seeking trading
Source:
- https://ephedramahaung.com/
buy ma huang tea online
Ideal states
(HarryTap, 1. 12. 2022 10:17)In difficult times of change, there is consistently something good and pretty. Quantum cure - the medicine of the future. Jump to - https://t.me/quantummedicinehealy
standard father
(Chrisgeomo, 27. 11. 2022 11:09)https://www.kazaindia.com/forum/yoga-forum/bitstarz-na-russkom-bitstarz-bono-sin-deposito-for-existing-players Bitstarz на русском, bitstarz bono sin depósito for existing players The second and third deposits are matched by 50%, with the same limit of 0.The only downfall to this brilliant online casino is the fact that it doesn’t offer sports betting section.Indeed, there are more than 15,000 live betting events hosted every month at Coinbet24. https://www.drnickbrown.com/forum/general-discussions/no-deposit-bonus-codes-for-bitstarz No deposit bonus codes for bitstarz These bitcoin casinos no deposit bonus codes can often be found at the casinos themselves, and you simply need to enter them into the relevant spot at the site to claim the offer.What games are available on bitcoin casinos? https://www.shany-cctv.com.cn/forum/welcome-to-the-forum/bitstarz-limassol-bitstarz-kein-einzahlungsbonus-20-tours-gratuits Bitstarz limassol, bitstarz kein einzahlungsbonus 20 tours gratuits https://pl.nipponcha.jp/forum/meinhuoramu/bitstarz-no-deposit-bonus-2022 Bitstarz no deposit bonus 2022 Transactions and Payment Policies.Saarimaa and his Thai girlfriend Chonnikan Kaeokaseeonly received only 345 million shares, prompting them to file a complaint with the police in January 2018.The value of Bitcoin in Canada has come a long way in the country’s economy, and it would not be surprising if it will be adopted in the near future. https://www.sungateconstruction.ca/forum/welcome-to-the-forum/20-besplatnye-vrashcheniya-bitstarz-bitstarz-bonus-code-july-2022 20 бесплатные вращения bitstarz, bitstarz bonus code july 2022 In addition to hundreds of excellent games powered by some of the best software providers, Casino Adrenaline offers a simple and exciting gaming experience.When signing up, it’s important not use a password that you use at other sites. https://www.tumblingcreekbulldogges.com/forum/general-discussions/bitstarz-bezdepozitnyy-bonus-for-existing-players Bitstarz бездепозитный бонус for existing players "Er!d!@eo!u"
Google fair-minded get across
(Kennithoxype, 23. 11. 2022 18:22)I obligation nearly, as a lot as I enjoyed reading what you had to announce ', I couldnt advise but escape weight after a while. Its as if you had a wonderful grip on the subject incident, but you forgot to contain your readers. Conceivably you should conceive of upon this from far more than one angle. Or peradventure you shouldnt generalise so considerably. Its better if you believe around what others may make to impart instead of just prevalent in return a gut feedback to the subject. Regard as fro adjusting your own believed treat and giving others who may read this the good of the doubt. https://googleh51.com
triangular ancient
(Chrisgeomo, 23. 11. 2022 14:19)https://www.heart2heartmessages.com/forum/general-discussion/bitstarz-no-deposit-30-bitstarz-kazino-otzyvy Bitstarz no deposit 30, bitstarz казино отзывы Sometimes, the number of gratis spins can reach 25!They are categorized into sections: slots, roulette, poker, video poker, casual, cards, lottery, craps, and live casino games developed by Ezugi.To start accumulating bitcoins in your portfolio, you’ll have to buy some, which you can do through different banking options. https://www.peaceofvisionllc.com/forum/self-help-forum/bitstarz-zabyl-parol Bitstarz забыл пароль With this bonus you also get 200 free spins to use in the game Book of Pyramids.Exclusive bonus deals are bolded in the table below. https://www.the-ish-girl.com/forum/design-forum/30-freispiele-no-deposit-bitstarz 30 freispiele no deposit bitstarz https://www.nashprecisionengineering.com/forum/welcome-to-the-forum/bitstarz-49-com-bitstarz-kazino Bitstarz 49.com, bitstarz казино From football and basketball to darts and cricket, you’ll find nearly any sport on the Unikrn website, and with fair odds.Gambling with big money (free money) is always quite amusing!For larger amounts, it can take up to a week for the funds to be transferred. https://www.emeraldqueen.info/forum/wellness-forum/bitstarz-tiradas-gratis-30 Bitstarz tiradas gratis 30 Here you can read more about me more about me.In most cases, you’d see an option/interface similar to the following screenshot (or atleast a button saying “Provably fair”) next to the game you’re playing. https://www.audiolook.org/forum/foruma-hos-geldiniz/bitstarz-locked-by-bonus-bitstarz-bezdepozitnyy-bonus Bitstarz locked by bonus, bitstarz бездепозитный бонус
publish discussion
(MichaelGek, 22. 11. 2022 15:05)https://indivan.com/activity/p/7470/ БитÑтарз отзывы казино контрольчеÑтноÑти.рф With their loyalty program, members earn 1 loyalty point for every.CLAIM BONUS Choose between 100% up to 40mBTC + 100 free spins on Princess of Sky using bonus code "LOKI100" or a 50% highroller bonus up to 400mBTC using bonus code "LOKIHR" 50 times.Sports&Casino 2 in 1 Fast payouts Chat support Read Review. https://member.upscale-women.com/activity/p/7064/ Best penny slots at parx Players can contact Cbet in several ways, including live chat, contact form, or on Instagram and Twitter.In addition, we evaluate whether the casino has unique gambling games. https://tucsonyoungprofessionals.com/activity/p/49929/ Easy way to make money on big fish casino
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
what does video editing software mean
(MatthewAdvag, 8. 12. 2022 14:20)