Saving histograms into a pdf / png format directly from ROOT

Does it happen with all files, or only with one?

If only with one, it seems that this particular ROOT file is corrupt. See: Corrupted ROOT files without reason ?! - #15 by linev

Also, please check if you have read permission on this file/folder.