Fixed bugs in PDF Source and Demo