Stream based PDF library