Tuesday, July 31, 2012

How to create interactive PDF forms

If you’re like me then you like everything from your website down to your legal contracts to look well designed and function to your client’s liking — which in most cases is… easily!
The problem with creating forms and other documentation for a client to fill out is most are created in Microsoft Word, or other form of word processors, because we’re afraid the client won’t have the right software to open, add to it and return it.
In doing so, the design is compromised because of word processor’s inability to function like professional design software. While MS Word is typically found on most computers and regarded as the most compatible document to send someone to fill out and return, that doesn’t mean you can’t have your cake (aka “good design capabilities”) and eat it too (aka “compatibility).

Adobe Acrobat Professional to the rescue!

Adobe Acrobat Professional gives you the ability to turn your previously designed, standard PDF file into an interactive form that clients can download, easily fill out, print or effortlessly return to you by email. All they need is the free Adobe Acrobat Reader, which can be download here. And most clients I’ve spoke with already have it installed. Here’s how you can create your own interactive PDF:

Create your document

First, design your documentation or form in the software of your choice. InDesign is my first choice of page layout programs, but feel free pick your own…
Once you’re completely satisfied with the design, save it as a PDF.

Open it in Acrobat Pro

From the top toolbar, choose File > Create PDF > From File… Then, choose the PDF file you created above and click Open.
pdf open in acrobat
You should now see your beautifully designed PDF open in Acrobat Pro with a toolbar that looks similar to the highlighted image above. This toolbar is where you provide interactivity to your static PDF.

Adding Interactivity

Select the Text Field Tool (pictured below):

text tool
Drag out boxed areas on your PDF where you would like the client to add their information. NOTE: Acrobat can also use its auto-detection feature to assign text box areas to predetermined underlined areas.
text field area
After each box you create, a dialog box will appear that allows you to customize the text field area. Below you can see my changes, but feel free to customize to your liking.
general
appearance
options

Adding the ‘Submit’ Button

Now that you have your text areas specified, it’s time to add a ‘submit’ button so your clients can easily email you back the completed form.
For this we need to select the Combo Box tool (highlighted below):
combo box tool
Once again, drag out an area where you would like your ‘submit’ button to appear.
combo box area
Again, a dialog box will appear. While you can customize these settings as well, the steps (images) I have listed below are essential for making the form submittal by email.
actions
Once you click ‘Add…’ a new dialog box will appear. Change these settings to:
url for submittal
Click ‘Ok’ and continue making changes to the other tabs:
submit options
click to email
Click ‘Close’. You should now have text areas and a submit button that looks similar to this:
completed form

Last Step… Customize the Form Preferences

This step is not necessary but handy!
From the menu bar choose Acrobat > Preferences… (or Edit > Preferences on a PC). From here you are able to change the default yellow highlighted text areas (seen above) to better fit the look of your form.
customize form settings
That’s it! You now have a PDF document that can be edited by your clients and quickly emailed back to you.

Saturday, May 26, 2012

Installing PDFlib on Apache/PHP running on Windows:

I just successfully installed PDFlib on windows XP running WAMP. Here is the process:Installing PDFlib on Apache/PHP running on Windows:
Here is the direct download for the currently latest version for windows:
http://www.pdflib.com/binaries/PDFlib/701/PDFlib-7.0.1p1-MSWin32-php.zip
Once you have finished downloading, extract the zip file. 
In the folder "bind" choose your php version, and open that folder. (php4 or php5)
Inside that folder, you'll have PHP sub versions, choose your sub version. If you don't know the exact PHP version you'ure using, run a php page with <?php phpinfo(); ?> in it. The PHP version will be printed right at the top of the page.
Inside the sub version folder, you'll find the pdflib's .dll file for your php version.
Copy the .dll file and save the copy in your php extensions folder. This folder is defined in php.ini as "extension_dir". So if you don't know what it is on your machine, open php.ini and search for 'extension_dir'.
On my system is was: c://wamp/php/ext/
Now open php.ini and add the extension. The format for this is:
  1. extension=file.dll

where file is the file name of the extension.
eg:
  1. extension=libpdf_php.dll

Now you have to restart apache, and you should have pdflib installed. I tested this using:
  1. <?php
  2. if (class_exists('PDFlib')) {
  3. echo 'PDF Lib supported';
  4. } else {
  5. echo 'PDF Lib not supported';
  6. }
  7. ?>

I don't know about XAMP, you you might have the pdflib extension already added to your extensions directory. If so, then all you have to do is add the lineextension=libpdf_php.dll to php.ini

Thursday, May 24, 2012

Creating Image Maps in Dreamweaver CS5




Adding images to your site is one of the simplest and easiest ways of making your web content come to life. I’d say it’s almost mandatory, actually. After all, what better way to ensure your content resonates with your viewers than to provide visual aids and imagery? You can add further interactivity to your site, however, by making your images more than static visual aids, but a dynamic, multi-part navigation system that can link to other pages on your site. These types of images are called image maps.

What are image maps?

An image map allows a regular image to serve as a type of navigation system. We can use an actual map as a perfect example of this. For instance, when users click on certain locations–sometimes called hotspots--on the image, they can be taken to pages related to those locations.
For example, Southwest Airlines’ Route Map page displays a map of the United States. The cities that Southwest flies to are indicated with a small circle. When users click on a circle or city name, they are taken to a page about that city through the use of an image map.
Image Map Example

How to make an image map

You can make any image an image map by designating clickable areas on it and giving it a link or an action. To create an image map, insert an image (Insert –> Image) on a page and select it in Design View. The image map tools are available in the Properties Inspector as seen below:
Image Map Buttons
Clickable hotspots can be created in three shapes:
  • Rectangles
  • Circles
  • Polygons
Once a hotspot has been placed on an image, the link location must be completed. Each hotspot may link to a different page.
And that’s all there is to it!
Have you thought of any creative or brilliant image to make into image maps? A map of the world, perhaps, or even a photograph of people? Please share if you have!

Monday, April 23, 2012

How Can I Start and Shut Down My Computer Automatically on a Schedule?

On Windows

To automatically start your computer up at a specific time of day, you'll actually need to edit your BIOS settings. To do this:
  • Boot up your computer and enter your BIOS setup. Usually this involves pressing the Delete key as your computer boots (your computer should say Press DEL to Enter Setup or something similar as you turn it on).
  • Navigate to the Power Options. If your BIOS supports it, there should be a function for automatically starting up your computer at a certain time of day. Mine was called "Resume by Alarm", but yours might be called something different.
  • Enable that setting and set the time you want your computer to start every day. Save and Exit the BIOS, and your computer should follow that schedule from now on.
You probably shut down your computer when you're done using it at the end of the day, but if not, you can set it to shut itself down on a schedule. This is easy to do with Windows Task Scheduler:
  1. Hit the Start menu and type in "task scheduler". Open up Task Scheduler from your results.
  2. In the right pane, hit Create Task. Give it a name, and under the General tab, check "Run with highest privileges". Also check "Run whether user is logged on or not", if you ever leave your computer logged out.
  3. Head to the Settings tab and check "Stop the task if it runs longer than" and set it to "1 hour". This won't stop your computer from sleeping, but will stop your computer from thinking a task is still running.
  4. Head to the Actions tab, hit New, and choose "Start a Program" as your action. Set the Program to shutdown and the arguments to -s.
  5. Lastly, head to the Triggers tab and click New. Change the schedule to fit whatever you want (say, Daily at 12:00AM), and hit OK. Hit OK again at the next window and your task should be saved in Task Scheduler.
That's it. Now your computer should shut down and wake up on your own schedule.

On a Mac

This process is much easier on a Mac than on Windows. To set it up on OS X:
  1. Open up System Preferences and click Energy Saver.
  2. In the bottom right corner, click the Schedule button.
  3. Check the box next to "Start up or wake" to schedule when your computer turns on and the checkbox beneath it to schedule when you computer goes to sleep, restarts, or shuts down. You can set the schedules for specific days, every day, just weekdays, or weekends only.
  4. Once you've made all your choices, click the OK button.
Note that if you're setting schedules on a Mac laptop, it will need to be connected to power for these schedules to function.
There are a number of different ways you could do this, too, like using previously mentionedWakeupOnStandby, but this is a nice low hassle method that doesn't require any extra software.

Saturday, April 21, 2012

Application Not Responding? Here’s How to Kill Processes with PowerShell


pshelltwo
Ever have one of those days where programs just aren’t cooperating?  You try terminating a program, but it doesn’t respond?   PowerShell can give you some extra fire power on those
days.

How Do I Stop A Program In PowerShell?

1.  The long command name stop-process can be shortened to kill.
2.  If you know the numeric process that you’re wanting to stop, you can enter it.  However,
 like most Window’s users, we know the name of the program we want to stop, so entering
the name would be more convenient.  The code below shows the next step (entering –processname to specify to PowerShell that it is going to stop a process with a name of
what we want).
kill -processname
3.  Next, we need to know the name of the process we want to stop.  If we want to stop
Chrome, for instance, we would enter:
kill -processname chrome
If we hit enter (and Chrome was open), the program would end.  Important note: some processes aren’t named what you think.  You can locate the name of the processes by
starting task manager and reviewing the processes.
Notice that Google Chrome is listed as chrome, while the calculator is listed as calc. 
In order to stop the calculator we would type:
kill -processname calc
4.  If we want to stop multiple process such as Chrome, calculator and Excel, we would
separate the processes by a comma:
kill -processname chrome, calc, excel
The above command would kill Google Chrome, the calculator and Microsoft Excel.

Monday, March 26, 2012

How to Remotely Shut Down or Restart Windows PCs



image
Windows includes Shutdown.exe, a simple utility for remotely shutting down or restarting Windows computers on your local network. To use Shutdown.exe, you must first configure the PCs you want to shut down or restart remotely.
Once you’ve configured the PCs, you can use a graphical user interface or command to restart the PCs from another Windows system. You can even remotely shut down or restart the PCs from a Linux system.
Configuration
The remote registry service must be enabled on each computer you want to shut down remotely – it’s disabled by default.
To enable it, first launch the Services control panel on the computer you want to shut down remotely. To do this, click the Start button, type services.msc into the Start menu and press Enter.
Locate the “Remote Registry” service in the list, right-click it and select Properties.

From the properties window, set the Startup type to Automatic and click the Start button to launch the service.

Next, you’ll have to open the required port in the computer’s firewall. Click Start, type “Allow a program” and press Enter. In the window that appears, click the “Change settings” button. Scroll down in the list and enable the “Windows Management Instrumentation (WMI)” exception.

Your user account must also have administrator permissions on the remote computer. If it doesn’t, the shutdown command will fail due to lack of permissions.
Remote Shut Down
To shut down the computer, launch a Command Prompt window on another computer (click Start, type Command Prompt, and press Enter). Type the following command into the command prompt window for a graphical interface:
shutdown /i
From the remote shutdown dialog window, you can add one or more computer names and specify whether you want to shut down or restart the system. You can optionally warn users and log a message to the system’s event log.

Not sure what the name of the remote computer is? Click Start on the remote computer, right-click Computer in the Start menu, and select Properties. You’ll see the computer’s name.

You can also use a command instead of the graphical interface. Here’s the equivalent command:
shutdown /s /m \\chris-laptop /t 30 /c “Shutting down for maintenance.” /d P:1:1

Shut Down From Linux
Once you’ve set up the computer, you can also shut it down from a Linux system. This requires the samba-common package installed – you can install it on Ubuntu with the following command:
sudo apt-get install samba-common
Once you have, use the following command from a terminal:
net rpc shutdown -I ip.address -U user%password
Replace “ip.address” with the numerical address of the Windows computer, “user” with the username of an account that has administrator privileges on the remote computer, and “password” with the user account’s password. You can add a “-r” option to the command if you want the computer to restart instead of shutting down.

If you have remote desktop access, you can also access the desktop and shut down or restart that way. The shutdown.exe command is a faster way of doing the same thing designed for system administrators – you can shut down or reboot multiple computers much faster than you could by logging into them one-by-one.