Tag: PDF

Working with PDFs in Ubuntu

Ubuntu is by far the best operating system in existence.  One of the things that hasn’t been broadcast around much is how Ubuntu is also awesome for business.

If you run a business (or work in one) you will know that PDF files are one of the most standard documents that you work with, or would like to work with.  Here is a bullet proof list of things that I’m always dealing with and that Ubuntu solves:

  • people sending .jpg or .tiff or .png files instead of PDFs (unprofessional but a reality)
  • PDF files being way too big which is unfair to bandwidth, especially if someone will be downloading on a mobile (good percentage chance)
  • I need to split a bunch of pages, do something, and then glue them back together again and I don’t want to print it all and scan it
  • I need to watermark or stamp a PDF with something
  • I need to create a PDF from a word processing document or spreadsheet

These are just some of my regular issues, but great news!  All of them will be solved for you in this post, once and for all, and for free.

How to Compress a Big PDF File Without Killing the Quality

This one took me a while, but all you have to do is:

  1. open a terminal (if you don’t know how, click here)
  2. Navigate with the terminal to where your over-sized PDF file is (If you don’t know how, go to the section on “File & Directory Commands” on this page.)
  3. In the gobbly-gook that is sitting in step #4 below, change the ‘OUTPUTFILENAME’ to the name you want the resulting file to be named and the INPUTFILENAME to the name of the file that is too big and is sitting in the directory you just navigated to.
  4. copy this gobbly gook into your computer clipboard AFTER doing step #3 to it.  I would recommend pasting it to a separate text editor (like body of an email) first, do your changes, and then re-pasting it to the terminal) :  gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/default     -dNOPAUSE -dQUIET -dBATCH -dDetectDuplicateImages     -dCompressFonts=true -r150 -sOutputFile=OUTPUTFILENAME.pdf INPUTFILENAME.pdf
  5. Copy your updated version of the gobbly-gook to the computer’s clipboard
  6. Paste it to the terminal with this *different* version of control V.  If you use the normal paste, it won’t work.  Do this: control + Shift (same time) then press ‘v’ and it will paste to the terminal.
  7. press the enter key and the process will run

You should now have a smaller PDF file that didn’t lose too much quality.  There are other versions of this command above which I found killed the quality too much. This one was great for me.

How to Convert a .jpg or a .tiff or a .png File to a PDF File

  1. Open a terminal (if you don’t know how, click here)
  2. Navigate with your terminal to where your .jpg or a .tiff or a .png files are (If you don’t know how, go to the section on “File & Directory Commands” on this page.)
  3. type ‘convert’ and then start typing the name of the file you want to convert.  *TIP: after you start typing the file name, you can press ‘tab’ and it will auto fill.  If it doesn’t completely auto fill it means there is another file name there similar so you have to type a few more letters and then ‘tab’ again.  This saves much time and errors.
  4. start typing the name of the file you want the newly created PDF to be named.  Likely it will be the same as the photo name which is great and convenient because you can use the same TIP above with the tab button and it will auto-fill it quickly.  Caution: if you use auto-fill make sure you change the last three letters to ‘.pdf’ so that it will actually open as a pdf!
  5.  Here is what an example command will look like before you press enter: convert photo_document.png photo_document.pdf
  6. Press enter

If you know how to do basic terminal navigation, this is truly a lightening fast process and super useful.  That said, there is probably a light conversion app out there that does this on Ubuntu and I’d like not to use the terminal if possible so please share

How to Take a Multi-Page PDF File and Split Them into Individual Files

  1. go to the Ubuntu software center search and get “PDF Sam” pdf_sam
  2. Use the ‘split’ feature
  3. Mess around with all the options (I don’t have time to do a full tutorial here)
  4. Enjoy!

How to Take a Multi-Page PDF File and Split Them at a Certain Point in the File

 

  • go to the Ubuntu software center search and get “PDF Sam” pdf_sam
  • Use the ‘split’ feature
  • Make sure you choose the ‘split after these pages’ and the file will ‘cut’ right there.  I haven’t tried it but I bet you could put a comma in there after each page number you want to split at and split a whole series of pages….
  • Enjoy!

 

How to Watermark or Stamp or Batch Adjust Multiple Pages on a PDF in 10 Easy Steps

Tutorial about how to stamp.

Tutorial about how to watermark.

How to Rotate All Pages in a Multi Page PDF File

I wrote this tutorial earlier for this one here.

How to Turn Anything You Can Print into a PDF Document (ie. Emails, web pages, etc)

I wrote this tutorial earlier for this one here.

Tags : , , , , , , , , , ,

How to Watermark Document with Ubuntu

This post includes a quick how-to tutorial and an entire kit in a .zip file to get you started right.  To simply watermark your documents, all you need is my .pdf files in the kit and a couple of free apps from the Ubuntu Software Center.  If you want to change the way I’ve laid it out, I’ve also included the GIMP source file so you can just open it, swap out the stamp you want with what I’ve done and export it to .pdf, followed with Bob being your Uncle.

  • Install PDF Chain from Ubuntu software centre
  • (not sure if this is mandatory or not) Install pdftk from software center.  I am pretty sure that PDF Chain is just a nice cover for this so it might automatically install it when you install PDF Chain.  If something doesn’t wor correctly after doing #1 above, then install this.
  • Save my kit to your computer somewhere where you’ll remember it
  • Follow instructions pdf chain documentation for ‘background/stamp’ . Note the other cool features it has as well!

*Note: the source file *must* be a PDF to overlay it in the new PDF

*Note: be careful about your output file name.  It’s very easy to accidentally over-write your source PDF with the stamped one which you might not want to do.  I recommend saving to a totally different folder called ‘watermarked’ or ‘stamped’ or something.

++++++++++++++++++++++++++++++++++++++++

HERE IS THE KIT

confidential-watermark-graphics

++++++++++++++++++++++++++++++++++++++++

Hope that helps and keep on spreading Ubuntu!

Tags : , , , , , , ,

How to Completely Remove Unsafe Microsoft Windows and Replace with Safe Ubuntu

So you have a Microsoft Windows computer.  You finally realize that the reason you have no hair on your head is because you pulled it all out at your computer.  It is full of viruses, malware, and a host of other programs attempting in vain to stop these from making their home on your machine.  Also, you heard the news that Windows is fully compromised and that none of your data is safe so long as you are using a Windows machine.

You are ready for a change, but you don’t know what to do, or the person who suggested this to you is far away from you and unable to drop by your place to make it happen.

Don’t worry.  That’s what this blog post is about.

Since you may need to be completely offline, or without a second computer to read this tutorial on, you may want to print this guide.  The only part not available currently is the video in step 6.

>>PRINTABLE PDF VERSION OF THIS GUIDE-UPDATED-150117<<

1. Back up the files you don’t want to lose on an external drive

Before you begin, you will need to back up all your photos and other documents from the machine you are about to wipe.  This process takes time so it is a good idea to start right away.  It is strongly recommended that you purchase a USB drive of however many gigabytes you need to save all your documents.  You will be surprised at how small your files are unless you have a lot of videos.  For the average ‘simple user’ you can probably survive with an 8 gigabyte drive, but for people with a bunch of videos you will probably need to consider buying a huge external drive of a Terabyte or so.  This is a great tool to have regardless because you will use it in the future to do back ups of your computer on.  Also, the amount of money you are going to save on virus software when you switch to Ubuntu will pay for your drive many times over over the years!  A quick checklist of files you might want to keep:

  • emails (if you use an email client like Outlook or Thunderbird): if you have a scary webmail account like hotmail your emails will be sitting unsafely there so you won’t need to back them up
  • photos
  • word processing documents (resumes, letters, legal docs, etc)
  • PDFs (ie. invoices, e-bills, etc)
  • videos (ie. videos from your phone you dumped there, movies, etc)

2. Obtain a 2 gig+ usb drive

Great! All your files are saved safely on your external drive.  Now you need a *second* and *dedicated* drive which will be used for the installation of Ubuntu.  Yes, it’s possible also to use a DVD or CD rom but since you may need to adjust things after installing, we have found the USB drive to be the cheapest and most flexible tool over the long term.  Plus, you end up with a second USB drive which you can use for transporting files around (one for you, one for the spouse, for example).  So, stick with our suggestion ok? The great news is that as of today’s date, you can do this with a 2gig USB drive or less which is either free or *extremely* cheap.  In fact, most people you know will have one lying around on their desk they will lend you.  Advise them to wipe sensitive data off the drive before giving it to you, of course!

3. Download and install the program called Unetbootin

Go to this website (http://unetbootin.sourceforge.net) and download the appropriate (in the case of this tutorial Windows) version of the software.  This software will be used to change your dedicated install drive into one that will boot when you turn your computer on (like a bootable CD rom).  Here are two screenshots to make it more simple:

unetbootin-download-page-windows

 

unetbootin-download-exe

4. Install Unetbootin

Go find that file you just downloaded to your computer.  Double click it.  Follow all the instructions and give it all the power it needs to get installed.  Windows may fight.  You fight back!

5. Download the latest Ubuntu from the official Ubuntu.com website

Here is an illustrated step-by-step.  Of course if you have money, I encourage you to give some money but it is not mandatory whatsoever.  In this example I’m showing skipping straight to the download.

 

ubuntu-dot-com-main

 

ubuntu-get-ubuntu-now

 

ubuntu-32-64-bit-option

 

ubuntu-take-me-to-download

 

ubuntu-thank-you-for-downloading

6. Create the Bootable USB Drive Using Unetbootin

So you have your 2gigabyte (or bigger) dedicated USB drive as described in step 2.

You’ve downloaded and installed Unetbootin in step 3 and 4

You’ve now got the ISO file on your harddrive from steps 5

Now you need to make your USB drive think that it is a bootable CD ROM (essentially).  Instead of me sending you a bunch of screenshots, just watch this video that Lecture Snippets created because the flow is still exactly the same even though the numbers have changed.  Just follow his instructions as he puts his own downloaded ISO image onto his USB drive.

NOTE! Make sure that ALL USB DRIVES EXCEPT YOUR DEDICATED UBUNTU 2GIG+ DRIVE ARE REMOVED FROM YOUR MACHINE.  Just check.  Trust us.

7. Reboot and make sure your computer BIOS is set to boot first from the USB drive

When Unetbootin is finished, it will give you the option of rebooting now.  Likely you did it and didn’t know that you had to go in and change some BIOS settings.  No problem.  All you have to do is reboot your computer (again) and press the correct keyboard key for your particular computer.  In many cases its F12 or F10, etc.  Usually you can find this key displayed on the black screen right before your computer boots into your operating system.  It only shows up for a few seconds so it may take you several reboots to read the keyboard key you need.  What you are looking for is ‘Bios settings’ or ‘Change boot order’ or something like that.  It might take you a few tries but you’ll get it.  Online search engines will also likely have it if you know your computer mother board model number.

8. Choose the ‘Install Ubuntu’ option when you see the Unetbootin blue screen.

When you end up on the Unetbootin blue screen, this means ‘success’!  This means you are so close to finished you can taste it.  Great work so far!  In this case we are going to wipe away that pesky Windows operating system forever so choose the ‘install Ubuntu’ option.  It will start the installation process which is amazingly easy and clean.  Just answer all the questions and make sure you have a hard-wired internet connection.  If you don’t, you may have to find one.  At some point you are going to need to update the operating system so you might as well do it at the same time as your install so you are starting on the right foot.

9. Watch this quick familiarization video

This is a nice quick familiarization tour of your new found joy.  Give it a quick watch so you  know some basic stuff to get around.

10. Get connected to a local Ubuntu Community!

In the Vancouver area here, there is a big Ubuntu Vancouver meetup group as well as an Ubuntu Delta group.  This connection will help you greatly realize the full potential of the Ubuntu Project which is, please note, much more than just an operating system.

Tags : , , , , , , ,

How to Easily Take Website Pages to Go with Built in Ubuntu Features

Want to read an article later and not use your data plan? Going somewhere and want to look at a website page without worrying about an internet connection?  Can’t seem to find the time to read an article in the near future but worry the article might be gone when you get around to reading it?  If you are using Ubuntu, you’re already set up for an ultra simple solution to grab ‘n’ go websites.

In my case, I just wanted to take a bunch of articles and read them on my tablet or netbook up at my parents cabin where the internet is either spotty or notty.  At first I started downloading Firefox add-ons and this and that but it turns out the most simple and effective solution was sitting there ready to go: the ‘print to file’ option when you print *anything* in Ubuntu.  Ubuntu, because it’s just plain awesome out of the box, comes with the ability to print anything to PDF.  So, the solution is this simple:

1. Go to the website you want to have as a PDF

2. Choose to print the page (I use the control + P buttons because it’s rocket fast)

3. Choose ‘print to file’ option

4. KEY STEP!! Rename the file now.  It defaults to some ‘mozilla’ file name and will remember your last file name so every time you save a new article/page you have to remember to change the name or they will all end up in your last folder with the same name.  Makes for an annoying time.  NOTE: When you rename the file, do *not* erase the final .pdf tag or the file might have issues.

 

pdf-to-go-rename-file
5. Change the directory where you want it to go.  Customize this exactly by using the ‘other’ option in the dropdown list as in the following image:
pdf-to-go-dropdown
That’s it. Your file will be waiting for you in that directory and then all you have to do is get the file to your other device.  In my case I just email it to my tablet, or use a usb stick and transfer it around from devices.  In the case of most reasonable devices (Apple products are not reasonable, FYI) you can just plug it right into your computer (ie phone, tablet) and transfer the PDF like that.
One other enhancement I did was add a firefox add-on called ‘image block 2.1’ which can be turned on and off from a simple button at the top right side of firefox.  What this does is block all images from loading on the page which makes, in my opinion, a much better PDF to read later.  Here is a screenshot of the benefit.  The one on the left is without using the image blocker and the one on the right is using it.
pdf-to-go-image-no-image

Hope that helps and keep on stopping the suffering by sharing Ubuntu!

Tags : , , , , , , , , , , ,