PDF Hacks

PDF Hacks

Freely Rotate PDF Page Online-Google App Engine Application

Rotate PDF Page Online(PdfRotate)

RubyPDF release the 3rd Google App Engine Application, PDFRotate Online, wit it, you can freely rotate PDF page online, the rotate angles support 90, 180 and 270 degrees.

Rotate PDF Page Online(PdfRotate)

If you want offline version, please check pdfrotate.

January 12, 2010 Posted by | Uncategorized | , , , , , , , , | Leave a comment

First PDF Password Remover application hosted on Google App Engine

RubyPDF Software released the First PDF Password Remover application hosted on Google App Engine, bases on iText(version 2.1.7, but with many modification). with it, you can easily remove the user password or owner password online, and it is free.

  • remove restrictions on any secured PDF document (you should have the right to do it, for example, if you forgot the password). Any Acrobat version up to 9 is supported, even with 128-bit AES or 128-bit RC4 encryption. PDF restrictions removal is an instant process. Unlocked file can be opened in any PDF viewer without any restrictions so you may edit/copy/print it.
  • remove the PDF open password. Decryption of the file with password for opening is guaranteed for PDF files Any Acrobat version up to 9 is supported, even with 128-bit AES or 128-bit RC4 encryption,but you must know the password first.

For details, please visit RubyPDF PDF Password Remover Online.

December 23, 2009 Posted by | PDF News, Software | , , , , , | Leave a comment

Using Ruby Java Bindings on Dreamhost and Fill PDF Form with iText

I am familiar with iText , but not familiar with Ruby, I know Dreamhost supports Ruby on Rails(ROR), but never have a chance to run a real application, though I have a Dreamhost space.

Getting rjb, also known as “Ruby Java Bindings’ to work in a Dreamhost account can be somewhat problematic. Fortunately, it is also fairly straightforward. You just have to install all the dependencies in the user directory.

In my case, I was setting up a Rails Application that used the iText Java library to fill in PDF documents for user download. Of course, the server environment was not using Sun Java and the Java headers were not present, so gem install rjb failed. Joy.

The first course of action was to do a local install of Java.

Download jdk-6u7-linux-x64.bin and jre-6u7-linux-x64.bin from the Sun Java site. Then create an ~/opt directory and extract the JRE and JDK (you will need to chmod u+x both files then call them from the command line). Move the resulting folders to ~/opt . I renamed the folders to jdk and jre for simplicity.

Now you ensure that user gems are enabled in cPanel. Then add the following 3 lines to ~/.bash_profile

export JAVA_HOME=/home/username/opt/jdk
export GEM_PATH=/home/username/ruby/gems
export GEM_HOME=/home/username/ruby/gems

Run source ~/.bash_profile to load the paths.

Now you can run gem install rjb without any problems. You will likely have to re-install Rails and other gems because we will be telling our Rails app to load gems from the user directory. Just use the regular gem install syntax.

Add the following 2 lines to your config/environment.rb at the top

ENV[‘GEM_PATH’]=’/home/username/ruby/gems’
ENV[‘JAVA_HOME’]=’/home/username/opt/jdk’

That’s pretty much it.

I will concede that these probably aren’t the best instructions, but this is the real meat of the solution. If you keep getting “no such file to load” errors, you will need to extract the gems to the vendor/plugins directory. cd RAILS_ROOT/vendor/plugins and gem unpack gem_name for each problematic gem. I believe this is an issue with Passenger.

Please correct me if I am wrong about any of this, it was a very long day!

source: http://blog.patrick-morgan.net/2008/10/using-ruby-java-bindings-on-dreamhost.html

August 18, 2009 Posted by | Hacks, Linux, Tutorials | , , , , , , , , , | 1 Comment

Split and Merge PDF Documents with Free and Open Source Pdfsam

pdfsam is an open source tool (GPL license) designed to handle pdf files. It requiers a Java Virtual Machine 1.4.2 or higher and it’s released in 2 versions, basic and enhanced.

pdfsam means PDF Split and Merge,  is an easy to use tool to merge and split pdf documents. Console and GUI versions are available.

pdfsam also supports Extract sections of a pdf document, Encrypt pdf documents and set permissions, Dencrypt pdf documents, Extract attachments from your pdf documents and so on.

For details, please visit,

Split and Merge PDF Document with pdfsam

August 13, 2009 Posted by | Open Source, Software | , , , , , , , | 1 Comment

How to use iText in Action

About iText in Action


iText in Action will teach you about PDF, Adobe’s Portable Document Format, from a Java developer’s point of view. You’ll learn how to use iText in a Java/J2EE application for the production and/or manipulation of PDF documents. Along the way, you’ll become acquainted with lots of interesting PDF features and discover e-document functionalities you may not have known about before.

In addition to the many small code samples, iText in Action includes lots of XML-based, ready-made solutions that can easily be adapted and integrated into your projects.

If you’re a .NET developer using the C# or J# port of iText, iTextSharp or iText.NET, you can also benefit from this book, but you’ll have to adapt the examples.

How to use iText in Action

You can read this book chronologically, starting with the introductory part 1. Part 2 describes useful basic building blocks, and part 3 gets into iText’s core PDF functionality. You’ll finish with part 4, which discusses the interactive features of PDF.

If you haven’t convinced your project manager yet that PDF is the way to go, you’ll certainly benefit from reading chapters 1 and 3. It sums up some reasonable arguments that will help you help your manager make policy decisions regarding e-documents. Section 1.3 contains a roadmap to the ready-made solutions that are demonstrated throughout the book. The main function of this section is to offer you a menu composed of a series of screenshots, showing all kinds of documents: documents with flowing text, graphics, bookmarks, and so on. If you see something you like, you can use this book as a kind of ‘cookbook’ and jump to the ‘recipe’ that was used to create a similar document.

Readers who are new to iText will need to take the “Hello World” crash course in chapter 2. This chapter shows that iText can be used in many different ways. The first three chapters often refer to sections in parts 2, 3, and 4, where you’ll find an in-depth explanation of the specific functionality that is being introduced in one of the many “Hello World” examples.

You can also read iText in Action in random order or thematically, starting from the table of contents or the roadmap in chapter 1. Once you’re well acquainted with iText, you’ll probably use iText in Action as a reference manual, browsing for the many small standalone code samples that can be applied directly to your own code.

for details, please visit here.

P.S.

if you want to buy it online, please visit iText in Action on Amazon.

August 9, 2009 Posted by | Books | , , , , , , , , , | Leave a comment

PDF Books-iText in Action: Creating and Manipulating PDF

iText in Action: Creating and Manipulating PDF (Paperback)
iText in Action

Imagine a publisher who wants to “stamp” his ebooks on the fly with the name of the buyer (to discourage sharing). Such a publisher would (and we know one who does) use iText for the task. Developers looking to enhance web- and other applications with dynamic PDF document generation and/or manipulation will find this book unique in content and readability. Based on ongoing examples that encourage learning “in action,” they will finally understand PDF and learn how to build applications that produce professional, high-quality PDF documents. While the basic functionality of iText is easy to acquire, this book lowers the learning curve for more advanced functionality. It explains how to use iText to create/manipulate PDF documents on-the-fly in one or more of the following situations:

  • Due to time or size, the PDF documents can’t be produced manually
  • The content of the document must be calculated or based on user input.
  • The content needs to be customized or personalized.
  • The PDF content needs to be served in a web environment.
  • Documents are to be created in “batch process” mode.

  • Product Details

    • Paperback: 656 pages
    • Publisher: Manning Publications (December 8, 2006)
    • Language: English
    • ISBN-10: 1932394796
    • ISBN-13: 978-1932394795
    • Product Dimensions: 9.2 x 7.4 x 1.4 inches

    All the examples are written in Java, but they can be easily adapted to .NET by developers using one of the .NET ports: iTextSharp (C#) or iText.NET (#J). While iText is a free Java library and the examples are written from the point of view of the Java developer, nine out of ten examples can be run by .NET developers with only minimal changes.

    About the Author
    Bruno Lowagie has been programming since he was twelve years old. He has a degree in civil architectural engineering and is the initial developer and one of the current maintainers of iText. He works at Ghent University, Belgium.

    August 9, 2009 Posted by | Books | , , , , , | 1 Comment