There are a lot of tools available online to extract images from a PDF, but most of them are shareware or trialware. If you need just a single image, you can right click it in Adobe acrobat reader and copy paste it into Microsofts paint, Paint.net
or (overkill) Adobe Photoshop. But if you have a PDF with several pages and several images on each page, you’d like to have it automated. That’s when you start your search for a good free/low cost utility. Or, you can write your own! Much more fun guaranteed!
It’s easier then you
might think. Start Visual Studio 11
and file –> new project (or ctrl + shift + n) I have selected .Net Framework 4, because not all pc’s which will use this utility have .Net 4.5 installed.
The user interface of the utility
My WinForm design looks like this:
So the UI ‘flow’ is a top down, simple thing.
When you fire up the utility, it only shows the top button which opens a openFileDialog and after hitting the OK button of that dialog, it makes the next button visible. That second button displays a folderBrowserDialog and after that OK button, it shows...(Read whole news on source site)
One of the common problems that I run into when consulting with clients, or just whenever I am talking to developers in general is the notion of common infrastructure. “We are going to spend some time building a common infrastructure which we can then use on all of our applications.” I made that mistake myself with Rhino Commons, and again very recently with RaccoonBlog (look at the code, you see the Loci stuff, that is stuff that is used from another project). Why is that a problem? Well, for the simplest reason of all. Different projects have different needs. A
common infrastructure that tries to accommodate them all is going to be much more complex. Not only that, it is going to be much more brittle. If I am modifying it in the context of project A, can I really say that I didn’t break something for project B? Let us take a simple example, executing tasks. In RaccoonBlog, we need tasks merely to handle comments and email (long running background tasks). In another application, we need to do retries, and we need to get notifications if after N retries, the task have failed. In a third project, we need...(Read whole news on source site)
This post is the last one for the week. Morning Brew tradition dictates that public holidays here in the UK are my days off (and a chance for a lie in), so the Easter break means that there will be no post on Friday or Monday, with The Morning Brew returning on Tuesday 10th [...]
We needed to test code which uses the current date. To create unit tests it is desirerable to test with different dates. To do this we needed something to mock .net class DateTime. First thing that came to mind was to create our own interface to get the system time and implement different versions. But [...]
Share on Facebook
Last night we had our first Manchester meeting in the Hive in the centre of town. The meeting was well attended for a first one with over 35 people. The organisation and the upmarket venue and food put us in London to shame! Carlos Oliveira, Director of Shaping Cloud put the meeting on. Carlos is [...]
Azure. From the abstract page:
In this fourth webcast episode, we talk about debugging your application. We look at debugging locally and how the emulator works for local development, and we talk about configuring diagnostic data to capture logs and performance counters. For the especially tricky troubleshooting issues, we discuss IntelliTrace, an advanced debugging tool, to gather more information about your application—essentially building a timeline of events that can be examined to quickly find the root of a problem. We also look at remote desktop options for troubleshooting.
WATCH THE WEBCAST at 12:00pm EDT 4/5/2012
If you can’t make this one,...(Read whole news on source site)
The NHibernate Designer is a great way to design data models for use with the NHibernate object-relational mapper. But once you’ve captured your data model, you may be interested in generating other code from it — anything from data transfer objects (DTOs) right through to scaffolding for a simple admin site. In some cases you [...]
A beta release of the TFS 11 Power Tools has been released. This release can run side-by-side with the TFS 2010
Power Tools (with some caveats – see below). The features included with this release are: TFS 11 Power Tools
Team Foundation Power Tool Command Line (tfpt.exe) Team Explorer Enhancements Windows Shell Extensions (*note: depending on which versions of the TFS Power Tools you install (e.g. TFS 2010 or TFS 11 Beta) the last one installed wins – i.e. you can’t have Windows Shell Extensions for
both versions) Process Template Editor Test Attachment Cleaner Best Practices Analyzer TFS PowerShell
Commands Build Extensions
– provides the ability to execute Ant or Maven 2 builds from Team Foundation Server 11 Beta and publish the results of the build along with any associated JUnit test results back to Team Foundation Server. MSSCCI (32-bit)
& MSSCCI (64-bit)
- enables integrated use of Team Foundation Version Control with products that do not support Team Explorer integration. There are a few known...(Read whole news on source site)
The fs module provides both synchronous and asynchronous ways of reading files. The readFile method reads the contents of the file asynchronously.
fs = require('fs');
fs.readFile(file, [encoding], [callback]);
where file is the name of the file to read, encoding is an optional parameter that specifies the type of encoding to read the file. Possible encodings are 'ascii', 'utf8', and 'base64'. If no encoding is provided, the default is utf8.callback is a function to call when the file has been read and the contents are ready - it is passed two arguments, error and data. If there is no error, error will be null and data will contain the file contents;
otherwise err contains the error message.
Similarly the writeFile method writes content to a file specified in the function. Read more
...(Read whole news on source site)
Today we are going to build a neat HTML5 file uploader using ASP.NET Web API and jQuery. We are also going to include knockout.js to keep the list of uploaded files updating smoothly in real time. In addition to all … Continue reading →