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ářů
娛樂城: 娛樂和賭場體驗的完美融合
娛樂城是一個綜合性的賭場娛樂平台,提供各種類型的賭博遊戲和娛樂活動。賭場遊戲包括各種桌上遊戲、機台遊戲和體育博彩等,而娛樂活動則包括音樂會、表演、電影等。娛樂城的目標是為參與者提供最優質的賭場和娛樂體驗。
賭場保證提款
娛樂城的賭場保證提款,通過金融交易處理系統提供最快的存款、取款和信用轉換,讓您不必擔心賭場不付錢給您。這個保證是基於娛樂城對自己產品的自信和對客戶的尊重。如果您在娛樂城中贏得了大獎,您可以在短時間內得到您的獎金,而不必等待很長時間。
娛樂城24小服務
娛樂城提供24小時的客服服務,專業的客服人員會為您解答任何問題。此外,娛樂城還提供專業的客服培訓和遊戲學習,不斷為參與者提供應對和處理遊戲信息最有效的方法。這些服務都旨在提供最優質的客戶體驗。
賭場遊戲
娛樂城的賭場遊戲包括各種桌上遊戲、機台遊戲和體育博彩等。扶餘娛樂城是其中一個傑出的例子,提供各種運動和體育項目的投注服務,包括NBA、MLB、世界杯、台灣運動會、美式足球、冰球、籃球、棒球、足球、網球、綜合格鬥、拳擊、高爾夫、北京賽車運動等重要賽事。
真人荷官
在富友賭場,您可以享受豪華的賭場和一流的真人荷官。 真人
Porn xxx PICS
(Ronaldmus, 13. 3. 2023 23:46)
Source:
- https://pornpics.onl
hot porn videos
lucrare de licenta
(Eugenered, 12. 3. 2023 20:39)
Scriere de disertație personalizată: Un ghid cuprinzător pentru studenți
Ești student în România și te lupți cu disertația sau teza ta? Nu ești singur. Mii de studenți de la universități de top din România apelează la noi pentru lucrari de licenta personalizate, licențe neplagiate și lucrari de licenta de top. În acest articol, te vom îndruma cum să alegi cel mai bun editor pentru lucrarea ta de disertație, cum să alegi cel mai bun site pentru licențe neplagiate și tot ce trebuie să știi despre licențierea proiectelor, a tezelor de licență și a tezelor de licență.
Cum să alegi cel mai bun editor pentru lucrarea de licență
Alegerea celui mai bun editor pentru lucrarea ta de licență poate fi o sarcină descurajantă. Iată câteva sfaturi pentru a vă ajuta să luați o decizie în cunoștință de cauză:
1. Experiență: Căutați editori care au experiență în domeniul dvs. de studiu. Aceștia ar trebui să aibă o înțelegere profundă a subiectului și să fie capabili să ofere un feedback perspicace.
2. Calificări: Asigurați-vă că editorul are calificările și acreditările necesare pentru a vă edita teza. Aceștia ar trebui să dețină o diplomă într-un domeniu relevant și să aibă experiență în editarea lucrărilor academice.
3. Recenzii și evaluări: Verificați recenziile și evaluările editorului de la clienții anteriori. Acest lucru vă va da o idee despre calitatea muncii și profesionalismul lor.
4. Timpul de predare: Asigură-te că editorul îți poate livra teza editată în termenul stabilit.
5. Preț: Alegeți un editor care oferă prețuri rezonabile fără a face compromisuri în ceea ce privește calitatea.
Cum să alegi cel mai bun site pentru licențe neplagiate
Prezentarea unei lucrări plagiate poate avea consecințe grave asupra carierei tale academice. Iată cum să alegi cel mai bun site pentru licențe neplagiate:
1. Reputația: Căutați site-uri cu o bună reputație pentru furnizarea de licențe neplagiate. Puteți verifica recenziile și evaluările lor de la clienții anteriori.
Join the Cutting-Edge of Trading with Binary Options
(OlpSmity, 10. 3. 2023 18:53)
Hi!
Turn your savings into profits with binary options trading! Our platform offers a range of assets, fast trades and secure transactions, with returns up to 800%. Start with just $200 and experience the thrill of investing.
WARNING! If you are trying to access the site from the following countries, you need to enable VPN which does not apply to the following countries!
Australia, Canada, USA, Japan, UK, EU (all countries), Israel, Russia, Iran, Iraq, Korea, Central African Republic, Congo, Cote d'Ivoire, Eritrea, Ethiopia, Lebanon, Liberia, Libya, Mali, Mauritius, Myanmar, New Zealand, Saint Vincent and the Grenadines, Somalia, Sudan, Syria, Vanuatu, Yemen, Zimbabwe.
https://cutt.us/IpLTD
Sign up and start earning from the first minute!
Thanks, I've been looking for this for a long time
(KkkzellIdemi, 10. 3. 2023 10:48)Thanks, +
slot dana
(Eugenered, 10. 3. 2023 8:59)
Slot777 adalah situs slot online terpercaya di Indonesia yang menawarkan permainan slot dengan deposit pulsa tanpa potongan. Dengan adanya metode deposit pulsa, pemain dapat dengan mudah mengisi saldo dan bermain di mana saja. Selain itu, situs ini juga menawarkan berbagai provider slot terbaru seperti Pragmatic, Habanero, dan PGsoft.
Selain Slot777, ada juga situs slot online terpercaya lainnya seperti Slot88 yang menyediakan permainan slot dengan tingkat kemenangan yang tinggi. Situs ini juga menawarkan berbagai game slot seperti Slot88 Hong Long Meng, Slot88 Qixi, dan Slot88 Lucky Bats.
Namun, pemilihan situs slot online harus dilakukan dengan hati-hati karena banyak situs yang justru membuat pemain kalah terus. Oleh karena itu, disarankan untuk memilih situs slot yang resmi dan terpercaya seperti Slot777 dan Slot88. Dengan begitu, pemain dapat memainkan permainan slot dengan aman dan meraih kemenangan yang tinggi.
slot dana
(Eugenered, 9. 3. 2023 14:06)
Slot777 adalah situs slot online terpercaya di Indonesia yang menawarkan permainan slot dengan deposit pulsa tanpa potongan. Dengan adanya metode deposit pulsa, pemain dapat dengan mudah mengisi saldo dan bermain di mana saja. Selain itu, situs ini juga menawarkan berbagai provider slot terbaru seperti Pragmatic, Habanero, dan PGsoft.
Selain Slot777, ada juga situs slot online terpercaya lainnya seperti Slot88 yang menyediakan permainan slot dengan tingkat kemenangan yang tinggi. Situs ini juga menawarkan berbagai game slot seperti Slot88 Hong Long Meng, Slot88 Qixi, dan Slot88 Lucky Bats.
Namun, pemilihan situs slot online harus dilakukan dengan hati-hati karena banyak situs yang justru membuat pemain kalah terus. Oleh karena itu, disarankan untuk memilih situs slot yang resmi dan terpercaya seperti Slot777 dan Slot88. Dengan begitu, pemain dapat memainkan permainan slot dengan aman dan meraih kemenangan yang tinggi.
slot dana
(Eugenered, 8. 3. 2023 19:16)
Slot777 adalah situs slot online terpercaya di Indonesia yang menawarkan permainan slot dengan deposit pulsa tanpa potongan. Dengan adanya metode deposit pulsa, pemain dapat dengan mudah mengisi saldo dan bermain di mana saja. Selain itu, situs ini juga menawarkan berbagai provider slot terbaru seperti Pragmatic, Habanero, dan PGsoft.
Selain Slot777, ada juga situs slot online terpercaya lainnya seperti Slot88 yang menyediakan permainan slot dengan tingkat kemenangan yang tinggi. Situs ini juga menawarkan berbagai game slot seperti Slot88 Hong Long Meng, Slot88 Qixi, dan Slot88 Lucky Bats.
Namun, pemilihan situs slot online harus dilakukan dengan hati-hati karena banyak situs yang justru membuat pemain kalah terus. Oleh karena itu, disarankan untuk memilih situs slot yang resmi dan terpercaya seperti Slot777 dan Slot88. Dengan begitu, pemain dapat memainkan permainan slot dengan aman dan meraih kemenangan yang tinggi.
https://telegra.ph/Referalka-dragon-mani-02-20#Рефералка драгон мани
(BrianWrosy, 7. 3. 2023 21:57)
https://telegra.ph/Referalnyj-kod-dragon-mani-02-20#Реферальный код драгон мани
MOM TAKES A DRIVE A HORSE MAKING LOVE PORN
(TimothyTycle, 7. 3. 2023 21:30)
Jean, his ma's younger sister, arrived at the legislative body luminous and early on Saturday morning.
"Hi squirt," she said. Rick didn't begrudge the slam it was a moniker she had given him when he was born. At the in unison a all the same, she was six and contemplation the name was cute. They had unendingly been closer than most nephews and aunts, with a customary miniature piece cogitating function she felt it was her bit to help accept misery of him. "Hi Jean," his mammy and he said in unison. "What's up?" his care for added.
"Don't you two muse on, you promised to ease me filch some furniture in sight to the сторидж discharge at Mom and Dad's farm. Didn't you attired in b be committed to some too Terri?"
"Oh, I thoroughly forgot, but it doesn't upset as it's all separated in the aid bedroom." She turned to her son. "Can you usurp Rick?"
"Yeah," He said. "I've got nothing planned seeking the day. Tod's out of hamlet and Jeff is laid up in bed, so there's no at one to hang pass‚ with."
As brawny as Rick was, it was motionless a lot of handiwork to weight the bed, case and boxes from his aunts house and from his own into the pickup. When all is said after two hours they were gracious to go. Rick covered the anxiety, because it looked like дождь and even had to shake up a link of the boxes favoured the truck locale it on the heart next to Jean.
"You're affluent to experience to participate in on Rick's lap," Jean said to Terri, "There won't be sufficient lodgings otherwise."
"That pleasure be alright, won't it Rick?" his nurturer said.
"Well as prolonged as you don't weigh a ton, and abduct up the whole side of the business," he said laughing.
"I'll enjoy you positive I weigh a specific hundred and five pounds, unfledged bloke, and I'm exclusive five foot three, not six foot three." She was grinning when she said it, but there was a dwarf bit of boast in her voice. At thirty-six, his mother had the body and looks of a high coterie senior. Although infrequent extreme devotees girls had 36C boobs that were robust, undeviating and had such flagrant nipples, with the addition of a horde ten ass. Business his notice to her council was not the kindest crap she could be subjected to done.
He settled himself in the tokus and she climbed in and, placing her feet between his, she lowered herself to his lap. She was wearing a unimportant summer clothe and he had seen not a bikini panty cortege and bra under it. He directly felt the fervour from her masses flow into his crotch area. He turned his intellect to the parkway ahead. Jean pulled away, and moments later they were on the fatherland approach to the arable, twenty miles away.
https://squirting.world/videos/31706/18-year-old-indian-girl-fucking-with-two-boys/
situs slot
(Dwaynedwema, 7. 3. 2023 15:25)
Jenis-jenis Mesin Slot Online Terbaru Gampang Menang
Mesin slot online merupakan salah satu jenis permainan judi online yang paling populer saat ini. Game slot online menawarkan berbagai jenis mesin slot yang berbeda, dari mesin slot online jackpot hingga mesin slot online progressive. Berikut adalah beberapa jenis mesin slot online terbaru yang harus diketahui para pemain.
Mesin Slot Online Jackpot
Mesin slot online jackpot menjadi tujuan utama banyak orang yang ingin memenangkan uang besar di perjudian online. Game slot online menawarkan bonus jackpot yang cukup tinggi dibandingkan dengan jenis permainan judi online yang lainnya. Peluang untuk memenangkan bonus tersebut cukup tinggi, dan biasanya akan memberikan total perkalian ribuan kali dari modal yang telah dikeluarkan selama pertaruhan berlangsung.
Mesin Slot Online Progressive
Jenis mesin slot online progressive adalah jenis mesin slot yang fokus pada jumlah pemain yang memainkan mesin slot jackpot dalam waktu tertentu. Semakin banyak orang yang memainkan dan memasang taruhan pada mesin slot jackpot progressive tersebut, maka nilai bonus jackpot akan terus bertambah tanpa batasan. Ketika waktu habis, mesin slot akan di-reset dan pertaruhan akan dimulai dari awal.
Kesimpulan
Jika Anda ingin memenangkan uang besar di perjudian online, maka mesin slot online jackpot dan mesin slot online progressive adalah jenis mesin slot yang harus dipertimbangkan. Pelajari cara bermain mesin slot sebelum memulai pertaruhan, dan pastikan Anda memilih situs slot online terpercaya untuk memastikan keselamatan dan kenyamanan selama bermain.
https://peterp.dk/start/jump.php?url=https://mtsn2brebes.sch.id/wp-includes/SimplePie/situs/daftar-slot-gacor/
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
娛樂城
(Eugenered, 14. 3. 2023 0:01)