One of our clients is a Philatelic Auctioneer based in Cardiff, South Wales and sells items to a world-wide audience. Auctions run in Lots of almost 1000 items at a time. We were asked if it would be possible to create a PDF version of the Auction Catalogue both for the website and to send to the printers for hard copy versions for those clients who don’t use the internet. The catalogue is comprised of Images and Text. The source file was Excel and the images could optionally come from both the internet or locally.
Of course, anything is possible and we set about writing a custom application to fulfil the request.

Challenges along the way included:
Below is some technical detail for anyone with programming experience who is looking into doing something similar.
Dusted of our copy of Visual Basic 6, it’s getting on a bit now but we still love it…
We did some research into components and code that would be needed for creating PDF files, manipulating images and downloading files. The following were used and are well documented:
Private Declare Function URLDownloadToFile Lib "urlmon" Alias "URLDownloadToFileA" _ (ByVal pCaller As Long, ByVal szURL As String, ByVal szFileName As String, _ ByVal dwReserved As Long, ByVal lpfnCB As Long) As Long Public Function DownloadFile(URL As String, LocalFilename As String) As Boolean Dim lngRetVal As Long lngRetVal = URLDownloadToFile(0, URL, LocalFilename, 0, 0) If lngRetVal = 0 Then DownloadFile = True End Function
David Crowell has very generously made his ActiveX component ‘PhotoTrue’ available as freeware. It is a powerful control that was solid and easy to use.
Image processing functions include: Rotate, Crop, Flip, Adjust Gamma, Adust brightness and contrast, Make greyscale, Blur, Overlay one image on another, Quick resize, Re-sample (higher quality resize), Drawing lines and text, Swap colour channels.
We used the mjwPDF Class by downloading the Advanced PDF VB Tutorial source code from near the bottom of the guide here: http://www.vb6.us/tutorials/visual-basic-tutorial-pdf-advanced . This is a good Class and proved simple to use.
