Tuesday, April 5, 2016

I have been using iTextSharp to merge multiple PDF files

A few years ago, I was wondering if there was any easy way to merge my PDF files all together into one single file. I knew there were a few commercial products out there, but I wanted something letting me handle the page number freely.

That was the reason why I developed this PDF_MergeFiles using iTextSharp, an opensource .NET library.  I am sure iTextSharp has added many new features since then, but I here post my codes hoping they will be useful to you.

public static void PDF_MergeFiles(string targetFile, string[] sourceFiles,
int pageFrom = 1)

  targetFile = a target file name with a full path  (C:\temp\myFile.pdf)
  sourceFiles = must be provided as an array of string, each file name with a full path
  pageFrom = 1, the target file will have a page number from the first page 

Place two source files in your project to consume these static methods. Also, iTextSharp DLL files must be part of your project too.

All files can be found from here at my git repositories, risknet.

Tuesday, March 29, 2016

eileensnotes in GitHub & going back to BootStrap

For my first Ruby on Rails applicaiton, eileensnotes, this Zurb Foundation web UI simply worked great.

After trying and playing with other tools and gems for my new projects, I have decided to go back to Bootstrap 3 and Simple Form for Ruby on Rails application.

Therefore, I will gradually update healthrecord.com and eileensnotes.com to use a new version of Bootstrap.

Also, as I promised before, I just opened a complete set of source codes for eileensnotes.com and they are accessible as of today from my github repository.

I will keep you posted.

Sunday, March 27, 2016

I am back!

Dear my online friends,

I am finally back!

It's been a while since I posted the last article onto this blog, but I am finally back to restart sharing with you my knowledge and what I have learned from the field.

As always, I will greatly appreciate it you leave any comments or feedback for any posts. Also, please feel free to ask any questions in public/private and I will do my best to post my answers onto this site. From now on, I will actively use github to share my source code of any modules that might be more useful to you too.

For anyone who is learning Ruby on Rails, I am about to share my source code for eileensnotes and will post all files into my github account. This was my first Rails' application when I was learning RoR version 2. I am sure you will clone the site in a much better way.

Let's try to get together online often here again!

Thank you