Add PDF with Java Grammar