How2do?
place what you want to duplicate in the crafting table
exit the crafting table
pick up the item
you should also notice there is one of the same item that you can't pick up. This is the duplicate item. Put the regular ones away to pick up the duplicate.
right click on the duplicate. You just got an extra copy.
repeat for infinite everything.