Pdfinator v0.1 – Convert Images to PDFs

There are number of ways to generate pdf’s from different file types. LibreOffice offers pdf generation from office documents for a long time and there is a simple terminal command to convert images to pdfs with ImageMagick.

But nevertheless there are instances, where people would like to have a simple pdf converter with a graphical interface. Tom Lechner and I sat together and worked on this idea together with input from Mario Behling.

So, here it is: Pdfinator

Create a pdf from a number of images. It uses ImageMagick convert to make non-jpegs into jpegs for inclusion.

You find the code on github here: https://github.com/mariobehling/pdfinator

We will be offereing packages for different Linux distributions soon too.

Pdfinator v0.1 - convert images to pdfs

 

For your reference there is also this way, if you want to try to generate PDFs or images from command line. 

 

You simply follow the steps below:

1. Install ImageMagick e.g. in Ubuntu – https://help.ubuntu.com/community/ImageMagick


2. Open the terminal and go to the directory of the files, e.g. /home/fossasiauser/Documents

  • cd /home/hongphuc/Documents

3. To convert pdfs to images, use the terminal and type

  • convert hongphuc.pdf hongphuc.jpg

4. To convert images to pdfs use the following command

  • convert *.jpg hongphuc.pdf
Continue ReadingPdfinator v0.1 – Convert Images to PDFs

Tom Lechner Libre Graphics Artist and Developer in Vietnam

We invited Tom Lechner, Libre Graphics artist and developer of the desktop publishing software Laidout, to spend the summer vacation with us in Vietnam to work on some Libre Graphics projects together and to work on training materials.

Hong Phuc Dang and Tom Lechner

 

Many designers hesitate to switch to Libre Graphics tools as they have been mainly trained with proprietary tools.

We often hear from designers that for example Gimp does not offer the same features as Photoshop. Well, rather than thinking to exchange an application designers should also think about opening up the way they creatively work. In fact Open Source tools can offer even more possibilities to be creative, but you need to stop thinking in categories of programmes or applications. Open Source programmes can incorporate new features easily by including existing libraries.

In the Linuxworld there are many tools available that can be accessed by command line as well. You could write your own script and change an enourmeous amount of images. Well, those are the few things we are exploring together with Tom this summer.

 

Vietnam Impressions by Libre Graphics Artist Tom Lechner

Links:

* Tom Flickr Stream for Vietnam: flickr.com/photos/tomlechner/sets/72157630879789412/with/7865406572/

* Website: tomlechner.com

Continue ReadingTom Lechner Libre Graphics Artist and Developer in Vietnam

How to create a Fedora spin – Developer Meet Up in Hong Kong

Hon Nguyen (Vietnam), Dicky (Hong Kong), Hong Phuc (Vietnam) (from right to left)

Dicky (Hong Kong) and Mathieu Bridon (France)

At our meet ups at GNOME.Asia in Hong Kong it was great to meet developers from different continents. One thing we were particularly interested in is, how to create a custom Linux based on Fedora Linux.

Well, we were lucky to meet Mathieu Bridon (Blog). There are some pictures below. Even though some pictures might look just like socializing in a pub, we actually took quite late until the eve to learn about using Kickstart files to create our own custom Linux. Thank you! So the how to of Mathieu below first.

== Building your downstream distro ==

From a Fedora system:
    # yum install spin-kickstarts pungi

See the kickstarts used to create the various Fedora spins in:
    /usr/share/spin-kickstarts/*

Use that as examples, the actual kickstart doc is at:
    http://fedoraproject.org/wiki/Anaconda/Kickstart

Then once you have your kickstart file:
    # pungi -c [your kickstart file]

(see pungi -h for all the options)

== Avoiding trademark issues ==

Replace fedora-logos by generic-logos to avoid the Fedora trademarks.

Clone the git repository for the package spec file:
$ fedpkg clone -a generic-logos
$ cd generic-logos

Fetch the source tarball:
$ fedpkg sources

Make your own tarball following the layout and file names.

Rename the spec file (and change the Name: tag):
Name:       xmario-logos
Version:    17.0.0
[… snip …]
Source0:    https://fedorahosted.org/released/%{name}/%{name}-%{version}.tar.bz2

See how the tarball is named like the spec file?

Rebuild:
$ fedpkg mockbuild

== Caching packages ==

1. Synchronize the whole repository:
$ yum install yum-utils
$ reposync -r fedora -r updates -p /path/to/repository_cache

2. Keep in cache the packages you install:
  1. set keepcache=1 in /etc/yum.conf
  2. install, update,…
  3. $ find /var/cache/yum -name ‘*.rpm’

3. Download packages:
$ yum install yum-utils
$ yumdowloader foo
$ yumdownloader –resolve foo

Some different approaches to repo caching:
http://yum.baseurl.org/wiki/YumMultipleMachineCaching

 

If you need to make an install media (not live), you’ll have to maintain
a trivial patch to anaconda.

$ fedpkg clone -a anaconda
$ cd anaconda
$ fedpkg prep
$ cd anaconda-$version
$ git init
$ git add .
$ git commit -m prepped
$ cp pyanaconda/installclasses/{fedora.py,xmario.py}

Replace all occurences of “fedora” by “xmario” in the file you copied,
and give it a **higher** priority (bigger number) than all other install
classes so that yours is used.

Create a patch that adds your modifications. I like to use git for that,
but you can just use the diff command if you prefer:
$ git commit -a -m “Create our install class for X-Mario”
$ git format-patch HEAD~1
$ mv 0001-*.patch ..
$ cd ..

Add the patch to the spec file header:
    [… snip …]
    Patch1000000: 0001-blabla.patch
    [… snip …]

Apply at the end of %setup:
    %patch1000000 -p1

Bump the “Release:” tag and add a changelog message in %changelog.

Commit to git:
$ git add 0000*.patch anaconda.spec
$ git commit -m “Bla bla bla commit message”

Rebuild:
$ fedpkg mockbuild

More about fedpkg:
http://fedoraproject.org/wiki/Using_Fedora_GIT

Mathieu Bridon and Sammy Fung (HK)

Continue ReadingHow to create a Fedora spin – Developer Meet Up in Hong Kong

FOSSASIA community meetup at GNOME.Asia 2012

GNOME.Asia Hong Kong 2012

 

FOSSASIA members had a wonderful get together at GNOME.Asia 2012 in Hong Kong. 

About GNOME.Asia Summit. The event is Asia’s GNOME user and developer conference, spreading the knowledge of GNOME across Asia. The event focuses primarily on the GNOME desktop and other devices that use GNOME, and also covers GNOME-based applications and GNOME development platform tools.

It brings together the GNOME community in Asia to provide a forum for users, developers, foundation leaders, governments and businesses to discuss both the present technologies and future developments.

The FOSSASIA team presented the two projects: crypto-stick and the x-mario gaming distribution.

A big thanks for this fantastic event goes to the local and global organization team and the GNOME Foundation, in particular to Max, Haggen So and Sammy Fung.

Hong Phuc Dang also received travel sponsorship from the GNOME Foundation and thus increased the participation numbers from Vietnam to three contributors.

 

GNOME.Asia Hong Kong 2012

Continue ReadingFOSSASIA community meetup at GNOME.Asia 2012

Crypto Stick project presented by Quan Nguyen at GNOME.Asia

We are a group of four people representing the FOSSASIA organization at GNOME.Asia. Hon Nguyen, one of the developer of Crypto Stick also gave a presentation at the event in Hong Kong.

Quan Nguyen at GNOME.Asia 2012 in Hong Kong

Hong Phuc DANG (left) and Hon Nguyen (right) taking photos during GNOME.Asia 2012

Continue ReadingCrypto Stick project presented by Quan Nguyen at GNOME.Asia

Mekong Delta Map Sprint

When it comes to Free and Open Source Software there are a lot of useful tools out there to make use of maps. But how useful is it, if there is no map data?

This was the reason for focusing our attention on maps of the Mekong Delta. For two months we cooperated with companies and universities in the Mekong Delta and we welcomed 10 students to work with us to improve the maps in the area. We did with different tools including Open Source Android apps and satellite images.

Check out the OSM Beginner’s Guide to become a map contributor as well!

Everyone loves pics. So here are a few pictures of the hard-working students.

Continue ReadingMekong Delta Map Sprint

FOSSASIA accepted as Google Summer of Code organization

FOSSASIA has been accepted as mentor organization for the Google Summer of Code 2012. It is fantastic to join the international free software community in the study program and we are looking forward to student applications.

Applications can be added through the GSoC website. Please also introduce your ideas on the mailing list and add them to the ideas page. If you are proposing an idea for a subproject like Cryptostick, people on the list will direct you to specific contact points if needed. 

FOSSASIA is acting as an umbrella organization for projects related to Asian users and the community in the region. We welcome applications from student projects around the world who work on software tools benefiting users in the region.

The FOSSASIA Google Summer of Code program is looking for applications including: 

  • software development for projects supporting social change; 
  • internationalization projects benefitting users in the region, e.g. support for Asian fonts in applications and enhancing user experience; 
  • software for secure communication and user security including support for international Asian users; 
  • decentral systems for new use cases in emerging regions; 
  • educational development projects; 
  • localized free software distributions (e.g. regional Linux distributions); 

If you are a student there are important links to follow:

Continue ReadingFOSSASIA accepted as Google Summer of Code organization

FOSSASIA Summit 2011 Wrap Up

The FOSSASIA OpenTechSummit 2011 was held at Van Lang University in Ho Chi Minh City (Saigon), Vietnam from November 11 to 12, 2011.

The event attracted 798 participants in 2 days including students, developers, business professionals and government officials. Ninety percent of the participants were local from Vietnam. There were a total of 24 speakers, 60% were local speakers and 40% of them were from other countries, including USA, France, Denmark, Cambodia, Germany, and Singapore. There were 26 talks and many workshops took place over the two days of the event.

It has been a great event. Thank you for joining the community at Van Lang University in Ho Chi Minh City 2011!

 

Continue ReadingFOSSASIA Summit 2011 Wrap Up