Project the pinhole as large as you can get it with your slide projector or enlarger and ratio the diameter of the projected image with something of known length projected to the same enlargement. This gives the actual pinhole diameter. The diameter of the pinhole is not all that critical as long as it's very small and reasonably clean-edged.